Skip to content

Commit

Permalink
Add information whether or not a cached graph was used #149
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Sep 2, 2024
1 parent 87733d4 commit cc2fa56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ private void createAuditGraph(DatasetGraph dg, Properties p, boolean b) {
auditGraph.addProperty(RDF.type, ResourceFactory.createResource(SD.concat("NamedGraph")));
auditGraph.addProperty(ResourceFactory.createProperty(SD.concat("name")), g.getURI());
auditGraph.addLiteral(VOID.triples, dg.getGraph(g).size());
// auditGraph.addLiteral(VOID., dg.getGraph(g).size());
auditGraph.addLiteral(auditGraph.getModel().createProperty(Triplifier.FACADE_X_CACHED_GRAPH), b);
}
dg.addGraph(nodeGraph, audit.getGraph());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public void Audit_JSON2() throws URISyntaxException {
"PREFIX void: <http://rdfs.org/ns/void#>\n" +
"SELECT DISTINCT ?g ?triples WHERE { " +
"{" +
"SERVICE <x-sparql-anything:namespace=http://www.example.org#,audit=1,location="
"SERVICE <x-sparql-anything:namespace=http://www.example.org#,audit=true,location="
+ location + "> { graph ?g {[] ?p [] } . graph xyz:audit { ?g void:triples ?triples } } " +
"} UNION {" +
"SERVICE <x-sparql-anything:namespace=http://www.example.org#,audit=1,location="
"SERVICE <x-sparql-anything:namespace=http://www.example.org#,audit=true,location="
+ location + "> { graph ?g {[] a [] } . graph xyz:audit { ?g void:triples ?triples } } " +
"" +
"}}");
Expand Down

0 comments on commit cc2fa56

Please sign in to comment.