Closed zwelz3 closed 3 years ago
Why does overwriting the sparql attribute of a query class cause the query to fail if a PREFIX isn't specified? The namespace may be in initNs or graph.namespaces, but the process doesn't recognize them.
sparql
PREFIX
initNs
graph.namespaces
Example:
# this doesn't work without PREFIX RDF2NX.node_properties.sparql = """ PREFIX voc: <https://swapi.co/vocabulary/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?iri ?predicate ?value { ?iri ?predicate ?value. VALUES (?predicate){ (rdfs:label) (voc:starship) } } """
Why does overwriting the
sparql
attribute of a query class cause the query to fail if aPREFIX
isn't specified? The namespace may be ininitNs
orgraph.namespaces
, but the process doesn't recognize them.Example: