Skip to content

Commit

Permalink
Small changes from a review.
Browse files Browse the repository at this point in the history
  • Loading branch information
joka921 committed May 31, 2024
1 parent 209104e commit 600ac23
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 186 deletions.
11 changes: 4 additions & 7 deletions src/parser/sparqlParser/SparqlQleverVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,10 @@ std::pair<vector<SparqlTripleSimple>, ParsedQuery::GraphPattern> Visitor::visit(
registerIfVariable(triple.p_);
registerIfVariable(triple.o_);

if (triple.p_.isVariable() || triple.p_.isIri()) {
return SparqlTriple::fromSimple(triple);
} else {
// The predicate comes from a rule in the grammar (`verb`) which only
// allows variables and IRIs.
AD_FAIL();
}
// The predicate comes from a rule in the grammar (`verb`) which only
// allows variables and IRIs.
AD_CORRECTNESS_CHECK(triple.p_.isVariable() || triple.p_.isIri());
return SparqlTriple::fromSimple(triple);
};
GraphPattern pattern;
pattern._graphPatterns.emplace_back(BasicGraphPattern{
Expand Down
Loading

0 comments on commit 600ac23

Please sign in to comment.