Examples of createURI()


Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

     * example
     */
    // _:blankNodeWerner
    // <http://xmlns.com/foaf/0.1/homepage>
    // <http://www.blue-agents.com> .
    model.addStatement(werner, foafHomepage, model.createURI("http://www.blue-agents.com"));
    // _:blankNodeWerner
    // <http://xmlns.com/foaf/0.1/title>
    // "Mr" .
    model.addStatement(werner, foafTitle, "Mr");
    // _:blankNodeWerner
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

    // "Max Voelkel" .
    model.addStatement(max, foafName, "Max V�lkel");
    // _:blankNodeMax
    // <http://www.w3.org/2000/01/rdf-schema#seeAlso>
    // <http://www.aifb.uni-karlsruhe.de/WBS/mvo/foaf.rdf.xml> .
    model.addStatement(max, RDFS.seeAlso, model.createURI("http://www.xam.de/foaf.rdf.xml"));
   
    // link via foaf:knows
    // _:blankNodeWerner
    // <http://xmlns.com/foaf/0.1/knows>
    // _:blankNodeMax.
View Full Code Here

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

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

    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

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

    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

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

    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

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

    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

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

    // 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

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

    // 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

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

    /*
     * 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
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.