Package org.ontoware.rdf2go.model

Examples of org.ontoware.rdf2go.model.Model.createURI()


    reasoning = Reasoning.rdfs;
    model = modelFactory.createModel(reasoning);
    model.open();

    // using reasoning (here: assuming RDFS semantics)
    URI A = model.createURI("urn:A");
    URI B = model.createURI("urn:B");
    URI C = model.createURI("urn:C");
    model.addStatement(B, RDFS.subClassOf, A);
    model.addStatement(C, RDFS.subClassOf, B);
    // now let's see who is a superclass of C:
View Full Code Here


    model = modelFactory.createModel(reasoning);
    model.open();

    // using reasoning (here: assuming RDFS semantics)
    URI A = model.createURI("urn:A");
    URI B = model.createURI("urn:B");
    URI C = model.createURI("urn:C");
    model.addStatement(B, RDFS.subClassOf, A);
    model.addStatement(C, RDFS.subClassOf, B);
    // now let's see who is a superclass of C:
    System.out.println("All superclasses of "+C+":");
View Full Code Here

    model.open();

    // using reasoning (here: assuming RDFS semantics)
    URI A = model.createURI("urn:A");
    URI B = model.createURI("urn:B");
    URI C = model.createURI("urn:C");
    model.addStatement(B, RDFS.subClassOf, A);
    model.addStatement(C, RDFS.subClassOf, B);
    // now let's see who is a superclass of C:
    System.out.println("All superclasses of "+C+":");
    ClosableIterator<? extends Statement> it = model.findStatements(C, RDFS.subClassOf, Variable.ANY);
View Full Code Here

    model.open();
    assert model.isOpen();

    // creating URIs
    String foafURI = "http://xmlns.com/foaf/0.1/";
    URI max = model.createURI("http://xam.de/foaf.rdf.xml#i");
    URI currentProject = model.createURI(foafURI + "#term_currentProject");
    URI name = model.createURI(foafURI + "#term_name");
    URI semweb4j = model.createURI("http://semweb4j.org");

    // adding a statement to the model
View Full Code Here

    assert model.isOpen();

    // creating URIs
    String foafURI = "http://xmlns.com/foaf/0.1/";
    URI max = model.createURI("http://xam.de/foaf.rdf.xml#i");
    URI currentProject = model.createURI(foafURI + "#term_currentProject");
    URI name = model.createURI(foafURI + "#term_name");
    URI semweb4j = model.createURI("http://semweb4j.org");

    // adding a statement to the model
    model.addStatement(max, currentProject, semweb4j);
View Full Code Here

    // creating URIs
    String foafURI = "http://xmlns.com/foaf/0.1/";
    URI max = model.createURI("http://xam.de/foaf.rdf.xml#i");
    URI currentProject = model.createURI(foafURI + "#term_currentProject");
    URI name = model.createURI(foafURI + "#term_name");
    URI semweb4j = model.createURI("http://semweb4j.org");

    // adding a statement to the model
    model.addStatement(max, currentProject, semweb4j);
    model.addStatement(max, name, "Max Völkel");
View Full Code Here

    // creating URIs
    String foafURI = "http://xmlns.com/foaf/0.1/";
    URI max = model.createURI("http://xam.de/foaf.rdf.xml#i");
    URI currentProject = model.createURI(foafURI + "#term_currentProject");
    URI name = model.createURI(foafURI + "#term_name");
    URI semweb4j = model.createURI("http://semweb4j.org");

    // adding a statement to the model
    model.addStatement(max, currentProject, semweb4j);
    model.addStatement(max, name, "Max Völkel");
View Full Code Here

    /*
     * before we can do anything useful, we have to define the uris we want
     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
View Full Code Here

     * before we can do anything useful, we have to define the uris we want
     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
View Full Code Here

     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
   
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.