--- a/server/src/tests/Controllers/DiscourseControllerTest.php Mon Oct 03 16:32:41 2016 +0200
+++ b/server/src/tests/Controllers/DiscourseControllerTest.php Tue Oct 04 11:58:39 2016 +0200
@@ -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)");