Error in using sparql DELETE query using rdflib python -


I am trying to use the triangle rdflib library from the RDF graph, but did not succeed in doing this . My query is learned from follwong. Plugin ('sparkle', 'rdflib.query.Result', ' 'Rdfextras.sparql.query', 'SPARQLQueryResult') bdel = graph.query ("" "PREFIX bibo:

This is giving the following error, thanks in advance for any query to solve this problem.

  Pipering. Perpendicular Expectations: Expected "SELECT" (116 in four), (line: 4, colonel: 17)    As mentioned, it seems that you are trying to use  graph.query  which actually expects 'SELECT' only. 

Versions of SPARQL queries To run any SPARQL update, you must use graph.processUpdate () would be required. For your example, with the following:

  process update (graph, "" "PREFIX bibo: ?}} {  

Hope it helps!

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -