-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
We do have RDFs in the Oxigraph database and we want to use py-brickschema module for processing these data. I do have two questions:
1, I was able to obtain the content of the database using HTTP POST with a SPARQL query. I do have Python string with triplets formatted as CSV, XML, or JSON. How it can be imported into a Graph? Below is a code snippet using XML format that is not working. What is wrong here?
headers = {"Accept" : "application/sparql-results+xml", "Content-Type" : "application/x-www-form-urlencoded"}
query = {"query" : 'select ?s ?p ?o where { ?s ?p ?o . } limit 1000 '}
response = requests.post(api_url, data=query, headers=headers)
g = Graph(load_brick=True)
g.parse(data=response.content, format="application/rdf+xml")
2, Is there a way how to directly connect to the remote Oxigraph database from py-brickschema (instead of exporting triples using query as pointed out in 1,)?
Metadata
Metadata
Assignees
Labels
No labels