python - Error in query while inserting data using RDFlib to GraphDB -


i parse database rdflib graph. want insert triples graph graphdb triple store. code works fine when execute on older version of graphdb-lite hosted on sesame. however, error while executing same query on standalone graphdb 7.0.0. graph partially parsed before error raised , inserted triples show in triple store.

this part of code:

graphdb_url = 'http://my.ip.address.here:7200/repositories/test3/statements' ##insert sesame         s,p,o in graph1:             pprint.pprint ((s,p,o))             querystringupload = 'insert data {%s %s %s}'  %(s,p,o)             # querystringupload = 'delete {?s ?p ?o .}'             # print querystringupload             sparql = sparqlwrapper(graphdb_url)             sparql.method = 'post'             sparql.setquery(querystringupload)             sparql.query()  

following error:

arqlwrapper.sparqlexceptions.querybadformed: querybadformed: bad request has been sent endpoint, sparql query bad formed.   response: malformed query: lexical error @ line 1, column 93.  encountered: "/" (47), after : "purl.org" 

what causing error , how resolve it?

it syntax error. had uris starting http:/ instead of http:// in places.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -