--- a/server/src/tests/Controllers/DiscourseControllerTest.php Sun Oct 16 22:23:31 2016 +0530
+++ b/server/src/tests/Controllers/DiscourseControllerTest.php Sun Oct 16 23:19:57 2016 +0530
@@ -29,10 +29,10 @@
public function testIndexQuery() {
- $query = preg_replace('/\s+/', ' ', "select (?o as ?res) (COUNT(?s) as ?count) where {
+ $query = preg_replace('/\s+/', ' ', "SELECT (?o AS ?res) (COUNT(?s) AS ?count) WHERE {
?s a <http://www.europeana.eu/schemas/edm/ProvidedCHO>.
?s <http://purl.org/dc/elements/1.1/type> ?o.
- filter(uri(?o) in (<".implode('>,<', array_keys(config('corpusparole.corpus_discourse_type'))).">))
+ FILTER(uri(?o) in (<".implode('>,<', array_keys(config('corpusparole.corpus_discourse_type'))).">))
}
GROUP BY ?o
ORDER BY DESC(?count)");