Package de.fuberlin.wiwiss.d2rq.jena

Examples of de.fuberlin.wiwiss.d2rq.jena.ModelD2RQ.listStatements()


  public static void main(String[] args) {
    // Set up the ModelD2RQ using a mapping file
    ModelD2RQ m = new ModelD2RQ("file:doc/example/mapping-iswc.ttl");
   
    // Find anything with an rdf:type of iswc:InProceedings
    StmtIterator paperIt = m.listStatements(null, RDF.type, ISWC.InProceedings);
   
    // List found papers and print their titles
    while (paperIt.hasNext()) {
      Resource paper = paperIt.nextStatement().getSubject();
      System.out.println("Paper: " + paper.getProperty(DC.title).getString());
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.