diff --git a/src/Graph/FdgGraph.php b/src/Graph/FdgGraph.php index e715d10..dccc847 100644 --- a/src/Graph/FdgGraph.php +++ b/src/Graph/FdgGraph.php @@ -24,10 +24,10 @@ class FdgGraph extends GraphParser { $municipality = ($municipality == NULL || $municipality == 'NULL') ? '' : 'Filter (?municipality="' . $municipality . '"^^xsd:string)'; $sparqlQuery = 'SELECT DISTINCT ?municipalityIRI ?scientificNameIRI ?name ?municipality where { - ?s ?municipalityIRI . - ?s ?scientificNameIRI . - ?s ?name . - ?s ?municipality ' . + ?s ?municipalityIRI . + ?s ?scientificNameIRI . + ?s ?name . + ?s ?municipality ' . $scientificName . ' ' . $municipality . ' ' . '}'; // TODO: discover or store sparql endpoint somehow.