Browse Source

updated sparql query

master
ppound 6 years ago
parent
commit
9d3e7cdb03
  1. 8
      src/Graph/FdgGraph.php

8
src/Graph/FdgGraph.php

@ -24,10 +24,10 @@ class FdgGraph extends GraphParser {
$municipality = ($municipality == NULL || $municipality == 'NULL') ? '' : $municipality = ($municipality == NULL || $municipality == 'NULL') ? '' :
'Filter (?municipality="' . $municipality . '"^^xsd:string)'; 'Filter (?municipality="' . $municipality . '"^^xsd:string)';
$sparqlQuery = 'SELECT DISTINCT ?municipalityIRI ?scientificNameIRI ?name ?municipality where { $sparqlQuery = 'SELECT DISTINCT ?municipalityIRI ?scientificNameIRI ?name ?municipality where {
?s <dwciri:municipality> ?municipalityIRI . ?s <http://rs.tdwg.org/dwc/iri/municipality> ?municipalityIRI .
?s <dwciri:scientificName> ?scientificNameIRI . ?s <http://rs.tdwg.org/dwc/iri/scientificName> ?scientificNameIRI .
?s <dwc:scientificName> ?name . ?s <http://rs.tdwg.org/dwc/terms/scientificName> ?name .
?s <dwc:municipality> ?municipality ' . ?s <http://rs.tdwg.org/dwc/terms/municipality> ?municipality ' .
$scientificName . ' ' . $municipality . ' ' . $scientificName . ' ' . $municipality . ' ' .
'}'; '}';
// TODO: discover or store sparql endpoint somehow. // TODO: discover or store sparql endpoint somehow.

Loading…
Cancel
Save