@Test public void testNoSP() throws Exception { String text = "CONSTRUCT {\n" + " owl:Thing a owl:Class ." + " owl:Nothing a owl:Class ." + " owl:Nothing rdfs:subClassOf owl:Thing ." + "} WHERE { }"; ParsedQuery query = new SPARQLParser().parseQuery(text, null); AntecedentVisitor visitor = new AntecedentVisitor(); query.getTupleExpr().visit(visitor); Set<StatementPattern> expected = Sets.newHashSet(); Assert.assertEquals(expected, visitor.getAntecedents()); }
public Set<StatementPattern> getAntecedents() { return antecedentStatementPatterns; }
AntecedentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getAntecedents() { return antecedentStatementPatterns; } }
AntecedentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getAntecedents() { return antecedentStatementPatterns; }  }
AntecedentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getAntecedents() { return antecedentStatementPatterns; }  Set<StatementPattern> getAntecedents(); @Override void meet(StatementPattern sp); }
AntecedentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getAntecedents() { return antecedentStatementPatterns; }  Set<StatementPattern> getAntecedents(); @Override void meet(StatementPattern sp);  }