-
Notifications
You must be signed in to change notification settings - Fork 579
Open
Labels
SPARQLbugSomething isn't workingSomething isn't workingconcept: RDF datasetRelates to the RDF datasets concept.Relates to the RDF datasets concept.concept: default graphconfirmation neededThe issue raises a potential bug that needs to be confirmed.The issue raises a potential bug that needs to be confirmed.
Description
Hi, I tried to create a Dataset and query it with SPARQL, however I had no success. I retraced my steps to the SPARQL query example, which worked, however when I changed the container from Graph
to Dataset
, it stopped working. Curiously, it seems to work just fine with ConjunctiveGraph
. My code looks like this:
from rdflib.graph import ConjunctiveGraph, Dataset, Graph
foaf="""[content of examples/foaf.n3]"""
#ds = Graph()
#ds = ConjunctiveGraph()
ds = Dataset()
ds.parse(data=foaf, format="n3")
for row in ds.query("SELECT ?s WHERE { [] foaf:knows ?s .}"):
print(row)
I looked through open issues, and this one seems the most similar, but I don't think it is related, because when I parse it with Dataset, I can enumerate it and see that the data was in fact loaded (not sure if correctly, though).
Metadata
Metadata
Assignees
Labels
SPARQLbugSomething isn't workingSomething isn't workingconcept: RDF datasetRelates to the RDF datasets concept.Relates to the RDF datasets concept.concept: default graphconfirmation neededThe issue raises a potential bug that needs to be confirmed.The issue raises a potential bug that needs to be confirmed.