In thingweb-repository in file ThingDescriptionCollectionHandler.java on line 173:
tdb = dataset.getDefaultModel();
tdb.createResource(resourceUri.toString()).addProperty(DC.source, data);
Question: I am trying to write a SPARQL query to run against the default graph of a dataset to check if the data is present and return that data resourceUri from the graph.
I tried to follow different tutorials of writing a SPARQL query but did not succeed so far. Any suggestion how to write a query against dataset default graph and which parameters are there in Jena RDF Dataset that can be queried?
I think you want something like:
SELECT ?s ?p ?o
WHERE {GRAPH <urn:x-arq:DefaultGraph> { ?s ?p ?o.} }
You should take a look at this part of the docs. Jena special graph names
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.