@Test public void testMultiProjection() { Extension extension = new Extension(new SingletonSet(), new ExtensionElem(new ValueConstant(RDF.TYPE), "rdftype"), new ExtensionElem(new ValueConstant(OWL.OBJECTPROPERTY), "owlprop"), new ExtensionElem(new ValueConstant(OWL.EQUIVALENTCLASS), "owleqcls"), new ExtensionElem(new ValueConstant(OWL.CLASS), "owlclass")); MultiProjection projection = new MultiProjection(extension, Arrays.asList( new ProjectionElemList( new ProjectionElem("cls", "subject"), new ProjectionElem("rdftype", "predicate"), new ProjectionElem("owlclass", "object")), new ProjectionElemList( new ProjectionElem("prop", "subject"), new ProjectionElem("rdftype", "predicate"), new ProjectionElem("owlprop", "object")), new ProjectionElemList( new ProjectionElem("owleqcls", "predicate"), new ProjectionElem("cls", "object")))); ConstructConsequentVisitor visitor = new ConstructConsequentVisitor(); projection.visit(visitor); Set<StatementPattern> expected = Sets.newHashSet( new StatementPattern(s(null), p(RDF.TYPE), o(OWL.CLASS)), new StatementPattern(s(null), p(RDF.TYPE), o(OWL.OBJECTPROPERTY)), new StatementPattern(s(null), p(OWL.EQUIVALENTCLASS), o(null))); Assert.assertEquals(expected, visitor.getConsequents()); }
public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; } }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  Set<StatementPattern> getConsequents(); Set<StatementPattern> getBnodes(); @Override void meet(Projection projection); @Override void meet(MultiProjection projection); }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  Set<StatementPattern> getConsequents(); Set<StatementPattern> getBnodes(); @Override void meet(Projection projection); @Override void meet(MultiProjection projection);  }