Package de.fuberlin.wiwiss.d2rq.jena

Examples of de.fuberlin.wiwiss.d2rq.jena.GraphD2RQ.find()


    Node predicate = DC.date.asNode();
    Node object = Node.createLiteral("2003", null, XSDDatatype.XSDgYear);
    Triple pattern = new Triple(subject, predicate, object);

    // Query the graph
    Iterator<Triple> it = g.find(pattern);
   
    // Output query results
    while (it.hasNext()) {
      Triple t = it.next();
        System.out.println("Published in 2003: " + t.getSubject());
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.