Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.ReifiedStatement.addProperty()


        Statement stmt = model.createStatement(ResourceFactory
                                               .createResource("urn:test:t1"), RDFS.label, "foo1");
       
        model.add(stmt);
        ReifiedStatement rs = stmt.createReifiedStatement();
        rs.addProperty(ResourceFactory.createProperty("urn:property:foo"),"Foo");

        System.out.println("Model:");
        model.write(System.out, "N-TRIPLES");
        System.out.println();
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.