You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
Right now the 'plugins.stores.sparqlstore' module has a big warning saying "The SPARQL Store does not support blank-nodes!" because they can't be expressed in SPARQL.
Playing with the 4Store triple store, I've found that it does actually let you represent blank nodes in SPARQL by using a special URI form, like this: <bnode:b000012>
In the process of getting the rdflib-web module to browse a 4Store triple store using the 'plugins.stores.sparqlstore' module, I hacked support for these blank nodes into the code, and it seems to be working fine. Without this change, rdflib-web can't be used on my data, it raises an exception as soon as it starts due to there being blank nodes in the data.
I noticed that the sparqlstore constructor takes a 'bNodeAsURI' flag which is completely unused, I thought maybe this is what it's meant for so I used that as a way of enabling this functionality.
The text was updated successfully, but these errors were encountered:
initBindings, contexts, addN, remove, add_graph and remove_graph now call the
node_to_sparql customizable function. Some support for BNode graph names added.
Add-on for RDFLib#513, see also RDFLib#511, RDFLib#512
joernhees
added a commit
to joernhees/rdflib
that referenced
this issue
Mar 9, 2016
query (initBindings), contexts, addN, remove, add_graph and remove_graph now call
node_to_sparql. Some support for BNode graph names added.
Add-on for RDFLib#513, see also RDFLib#511, RDFLib#512
query (initBindings), contexts, addN, remove, add_graph and remove_graph now call
node_to_sparql. Some support for BNode graph names added.
Add-on for RDFLib#513, see also RDFLib#511, RDFLib#512
Hello!
Right now the 'plugins.stores.sparqlstore' module has a big warning saying "The SPARQL Store does not support blank-nodes!" because they can't be expressed in SPARQL.
Playing with the 4Store triple store, I've found that it does actually let you represent blank nodes in SPARQL by using a special URI form, like this:
<bnode:b000012>
In the process of getting the rdflib-web module to browse a 4Store triple store using the 'plugins.stores.sparqlstore' module, I hacked support for these blank nodes into the code, and it seems to be working fine. Without this change, rdflib-web can't be used on my data, it raises an exception as soon as it starts due to there being blank nodes in the data.
I noticed that the sparqlstore constructor takes a 'bNodeAsURI' flag which is completely unused, I thought maybe this is what it's meant for so I used that as a way of enabling this functionality.
The text was updated successfully, but these errors were encountered: