Examples of SailConnection


Examples of org.openrdf.sail.SailConnection

    }

    @Test
    public void getGetVertex() throws Exception {
        GraphSail gSail = (GraphSail) sail;
        SailConnection sc = gSail.getConnection();
        try {
            sc.begin();

            Vertex type = gSail.getVertex(RDF.TYPE);
            assertNull(type);

            sc.addStatement(RDF.TYPE, RDFS.LABEL, new LiteralImpl("type"));

            type = gSail.getVertex(RDF.TYPE);
            assertNotNull(type);
            assertEquals(RDF.TYPE.stringValue(), type.getProperty(GraphSail.VALUE));
        } finally {
            sc.rollback();
            sc.close();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.