user6713064 user6713064 - 1 year ago 87
Python Question

Adding triple containing blank node to Stardog with RDFLib

I'm using the RDFLib Python library to manipulate a Stardog database. How do I add a blank node? I'm trying

, but I get an exception "SPARQLStore does not support Bnodes!". What is the alternative?

Answer Source

This is a restriction of RDFLib's SPARQLStore implementation, which you seem to be using. See the docs.

You may be able to accomplish this by using SPARQLWrapper to insert the triples directly without using the RDFLib interface.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download