From 9d3e7cdb0304e369eba2ceb06522a7326f0aa8ea Mon Sep 17 00:00:00 2001 From: ppound Date: Fri, 19 Feb 2021 14:58:25 -0400 Subject: [PATCH] updated sparql query --- src/Graph/FdgGraph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.