Skip to content

Commit

Permalink
fixup! jena-fuseki-access - Propagate request/service context
Browse files Browse the repository at this point in the history
  • Loading branch information
vtermanis committed Jul 14, 2022
1 parent e2fde2c commit 62b4adc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
import java.util.Collections;
import java.util.function.Predicate;

import org.apache.jena.fuseki.servlets.HttpAction;
import org.apache.jena.graph.Node;
import org.apache.jena.query.Query;
import org.apache.jena.query.QueryExecution;
import org.apache.jena.query.QueryExecutionFactory;
import org.apache.jena.sparql.core.DatasetGraph;
import org.apache.jena.sparql.core.DatasetGraphSink;
import org.apache.jena.sparql.core.Quad;
Expand All @@ -41,6 +44,11 @@ public Collection<Node> visibleGraphs() {
@Override
public boolean visableDefaultGraph() { return false; }

@Override
public QueryExecution createQueryExecution(HttpAction action, Query query, DatasetGraph dsg) {
return SecurityContext.super.createQueryExecution(action, query, DatasetGraphSink.create());
}

@Override
public Predicate<Quad> predicateQuad() { return q -> false; }

Expand Down

0 comments on commit 62b4adc

Please sign in to comment.