PropertyGraphSail extends SailBase { void setFirstClassEdges(final boolean firstClassEdges) { this.firstClassEdges = firstClassEdges; } PropertyGraphSail(final Graph graph);  PropertyGraphSail(final Graph graph,
                             final boolean firstClassEdges); boolean isWritable(); SailConnection getConnectionInternal(); ValueFactory getValueFactory(); static final String EDGE_NS; static final String ONTOLOGY_NS; static final String PROPERTY_NS; static final String RELATION_NS; static final String VERTEX_NS; static final URI EDGE; }
@Test public void testSimpleEdges() throws Exception { sail.setFirstClassEdges(false); sc.close(); sc = sail.getConnection(); for (Statement st : get(null, null, null)) { System.out.println("st: " + st); } assertEquals(30, sc.size()); assertEquals(30, count(null, null, null)); assertEquals(6, count(null, RDF.TYPE, vertex)); assertEquals(0, count(null, RDF.TYPE, edge)); assertEquals(0, count(null, label, null)); assertEquals(0, count(null, head, null)); assertEquals(0, count(null, tail, null)); assertExpected(get(marko, null, null), vf.createStatement(marko, id, vf.createLiteral("1")), vf.createStatement(marko, RDF.TYPE, vertex), vf.createStatement(marko, age, vf.createLiteral(29)), vf.createStatement(marko, name, vf.createLiteral("marko")), vf.createStatement(marko, knows, vadas), vf.createStatement(marko, created, lop), vf.createStatement(marko, knows, josh)); assertExpected(get(marko, knows, null), vf.createStatement(marko, knows, vadas), vf.createStatement(marko, knows, josh)); assertExpected(get(marko, null, josh), vf.createStatement(marko, knows, josh)); assertExpected(get(marko, knows, josh), vf.createStatement(marko, knows, josh)); assertExpected(get(marko, name, vf.createLiteral("marko")), vf.createStatement(marko, name, vf.createLiteral("marko"))); assertExpected(get(null, null, josh), vf.createStatement(marko, knows, josh)); assertExpected(get(null, knows, josh), vf.createStatement(marko, knows, josh)); assertExpected(get(null, knows, null), vf.createStatement(marko, knows, vadas), vf.createStatement(marko, knows, josh)); }