Niharika Roy
Niharika Roy

Reputation: 113

How can I access an ontology from RDFLib?

How can I connect to a triple store and access an ontology through the RDFLib Python API?

The triple store I am using is Blazegraph. I know how to access Virtuso, but about Blazegraph I am not sure.

Upvotes: 1

Views: 519

Answers (2)

Brad Bebee
Brad Bebee

Reputation: 146

You'll want to use the Blazegraph SPARQL Endpoint to configure it.

For the default namespace, using the executable jar this is:

http://localhost:9999/bigdata/sparql

With a specific namespace (kb in this example), it is:

https://localhost:9999/bigdata/namespace/kb/sparql

Upvotes: 1

Jörn Hees
Jörn Hees

Reputation: 3428

You probably want to access the triple store via SPARQL with SPARQLWrapper.

Upvotes: 0

Related Questions