SmartDataAnalytics / RdfProcessingToolkit

Command line interface based RDF processing toolkit to run sequences of SPARQL statements ad-hoc on RDF datasets, streams of bindings and streams of named graphs with support for processing JSON, CSV and XML using function extensions
https://smartdataanalytics.github.io/RdfProcessingToolkit/
Other
40 stars 3 forks source link

Relative IRIs in SERVICE clauses may become rewritten #8

Closed Aklakan closed 2 years ago

Aklakan commented 5 years ago

http://www.scholarlydata.org/sparql/ has a graph <conference-ontology>. This query yields no results when run from sparql integrate:

CONSTRUCT { ?s ?p ?o } { SERVICE <http://www.scholarlydata.org/sparql> { graph <conference-ontology> { ?s ?p ?o } } }

As this is graph name is a relative IRI, it is likely that sparql-integrate always expands it, making it impossible to query for it. Needs investigation of a workaround.

Aklakan commented 2 years ago

iri:asGiven works as a workaround:

PREFIX iri: <http://jsa.aksw.org/fn/iri/>
SELECT * {
  BIND(iri:asGiven('conference-ontology') AS ?graph)
  SERVICE <http://www.scholarlydata.org/sparql/> { GRAPH ?graph { ?s ?p ?o } }
}