I am using python to insert data into blazegraph. I saw in the documentation of SparqlWrapper that I can set the defaultGraph as its parameter.
wrapper = SPARQLWrapper("http://localhost:9999/blazegraph/namespace/kbss/sparql", defaultGraph='http://example.org/defaultName')
However, data still gets inserted into the default named graph bd:nullGraph. How could I solve this issue and insert data into http://example.org/defaultName?
I also tried like this:
from SPARQLWrapper import SPARQLWrapper, JSON
from rdflib.plugins.shared.jsonld.keys import JSON
sparql = SPARQLWrapper("http://localhost:9999/blazegraph/namespace/kbss/sparql", defaultGraph='http://example.org/default')
queryString = '''
INSERT { <http://example/egbook3> <http://purl.org/dc/elements/1.1/title> "This is an example title". } where {}
'''
sparql.addParameter("default-graph-uri", 'http://example.org/default')
sparql.setQuery(queryString)
sparql.method = 'POST'
sparql.query()
But still the same result-inserting data into the bd:nullGraph.