Package org.ontoware.rdf2go.impl.jena26

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


    DumpUtils.dump(model, null);
   
    // queries
    // get all persons
   
    ClosableIterator<? extends Statement> it = model.findStatements(Variable.ANY, RDF.type,
            foafPerson);
    while(it.hasNext()) {
      Resource person = it.next().getSubject();
      System.out.println(person + " is a person");
     
View Full Code Here


    while(it.hasNext()) {
      Resource person = it.next().getSubject();
      System.out.println(person + " is a person");
     
      // get foaf:name
      ClosableIterator<? extends Statement> it2 = model.findStatements(person, foafName,
              Variable.ANY);
      while(it2.hasNext()) {
        System.out.println(person + " has the foaf:name " + it2.next().getObject());
      }
    }
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.