Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed Oct 27, 2024
1 parent 25df806 commit e5c13d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,17 @@ public SparqlFragment getTargetQueryFragment(StatementMatcher.Variable subject,
rdfsSubClassOfReasoner, stableRandomVariableProvider,
inheritedVarNames);

String oneOrMore = subject.asSparqlVariable() + " (" + sparqlPathString + ")* " + pathStart.asSparqlVariable()
String twoOrMore = subject.asSparqlVariable() + " (" + sparqlPathString + ")+ " + pathStart.asSparqlVariable()
+ " .\n" +
targetQueryFragmentMiddle.getFragment() + "\n" +
pathEnd.asSparqlVariable() + " (" + sparqlPathString + ")* " + object.asSparqlVariable() + " .\n";

SparqlFragment oneOrMoreBgp = SparqlFragment.bgp(List.of(), oneOrMore,
SparqlFragment twoOrMoreBgp = SparqlFragment.bgp(List.of(), twoOrMore,
targetQueryFragmentMiddle.getStatementMatchers());

var temp = inheritedVarNames;

return SparqlFragment.union(List.of(targetQueryFragmentExactlyOne, oneOrMoreBgp),
return SparqlFragment.union(List.of(targetQueryFragmentExactlyOne, twoOrMoreBgp),
(connectionsGroup, dataGraph, path, currentStatementMatcher, currentStatements) -> {

Stream<EffectiveTarget.SubjectObjectAndMatcher> statementsAndMatcherStream1 = targetQueryFragmentExactlyOne
Expand Down

0 comments on commit e5c13d4

Please sign in to comment.