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

Examples of com.hp.hpl.jena.rdf.model.impl.StatementImpl


    Resource c = model.createResource(ns+"C")
    Property p1 = model.createProperty(ns+"P1");
    Property p2 = model.createProperty(ns+"P2");
    Literal l = model.createLiteral("VAL");
   
    Statement s1 = new StatementImpl(c, p1, l);
    Statement s2 = new StatementImpl(c, p2, l);

    model.add(s1);
    model.add(new StatementImpl(p2, RDF.type, OWL.DatatypeProperty));
    model.add(new StatementImpl(p2, OWL.equivalentProperty, p1));

    StmtIterator iter = model.listStatements(c, null, l);

    List<Statement> results = new ArrayList<Statement>();
    while(iter.hasNext()) {
View Full Code Here


    Resource c = model.createResource(ns+"C")
    Property p1 = model.createProperty(ns+"P1");
    Property p2 = model.createProperty(ns+"P2");
    Literal l = model.createLiteral("VAL");
   
    Statement s1 = new StatementImpl(c, p1, l);
    Statement s2 = new StatementImpl(c, p2, l);

    model.add(s1);
    model.add(new StatementImpl(p2, RDF.type, OWL.DatatypeProperty));
    model.add(new StatementImpl(p2, OWL.equivalentProperty, p1));

    StmtIterator iter = model.listStatements(c, null, l);

    List<Statement> results = new ArrayList<Statement>();
    while(iter.hasNext()) {
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.rdf.model.impl.StatementImpl

Copyright © 2018 www.massapicom. 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.