This HTML5 document contains 29 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
dctermshttp://purl.org/dc/terms/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n17http://vos.openlinksw.com/dataspace/services/wiki/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
dchttp://purl.org/dc/elements/1.1/
n15http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n16http://rdfs.org/sioc/services#
n13http://vos.openlinksw.com/dataspace/person/dav#
siocthttp://rdfs.org/sioc/types#
n12http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtJenaSPARQLExample9/sioc.
n5http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n8http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n7http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n13:this
foaf:made
n2:VirtJenaSPARQLExample9
Subject Item
n15:this
sioc:creator_of
n2:VirtJenaSPARQLExample9
Subject Item
n17:item
n16:services_of
n2:VirtJenaSPARQLExample9
Subject Item
n8:this
sioc:creator_of
n2:VirtJenaSPARQLExample9
Subject Item
n5:VOS
sioc:container_of
n2:VirtJenaSPARQLExample9
atom:entry
n2:VirtJenaSPARQLExample9
atom:contains
n2:VirtJenaSPARQLExample9
Subject Item
n2:VirtJenaSPARQLExample9
rdf:type
atom:Entry sioct:Comment
dcterms:created
2017-06-13T05:43:52.579121
dcterms:modified
2017-06-13T05:43:52.579121
rdfs:label
VirtJenaSPARQLExample9
foaf:maker
n7:this n13:this
dc:title
VirtJenaSPARQLExample9
opl:isDescribedUsing
n12:rdf
sioc:has_creator
n8:this n15:this
sioc:content
%META:TOPICPARENT{name="VirtJenaProvider"}% %VOSWARNING% ---+ Virtuoso Jena Provider - SPARQL Example 9 <verbatim> import com.hp.hpl.jena.query.*; import com.hp.hpl.jena.rdf.model.RDFNode; import com.hp.hpl.jena.graph.Triple; import com.hp.hpl.jena.graph.Node; import com.hp.hpl.jena.graph.Graph; import com.hp.hpl.jena.rdf.model.*; import java.util.Iterator; import virtuoso.jena.driver.*; public class VirtuosoSPARQLExample9 { /** * Executes a SPARQL query against a virtuoso url and prints results. */ public static void main(String[] args) { String url; if(args.length == 0) url = "jdbc:virtuoso://localhost:1111"; else url = args[0]; /* STEP 1 */ VirtGraph set = new VirtGraph (url, "dba", "dba"); /* STEP 2 */ String str = "CLEAR GRAPH <http://test1>"; VirtuosoUpdateRequest vur = VirtuosoUpdateFactory.create(str, set); vur.exec(); str = "INSERT INTO GRAPH <http://test1> { <http://aa> <http://bb> 'cc' . <http://aa1> <http://bb> 123. }"; vur = VirtuosoUpdateFactory.create(str, set); vur.exec(); /* Select all data in virtuoso */ Query sparql = QueryFactory.create("SELECT * FROM <http://test1> WHERE { ?s ?p ?o }"); VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (sparql, set); ResultSet results = vqe.execSelect(); System.out.println("\nSELECT results:"); while (results.hasNext()) { QuerySolution rs = results.nextSolution(); RDFNode s = rs.get("s"); RDFNode p = rs.get("p"); RDFNode o = rs.get("o"); System.out.println(" { " + s + " " + p + " " + o + " . }"); } sparql = QueryFactory.create("DESCRIBE <http://aa> FROM <http://test1>"); vqe = VirtuosoQueryExecutionFactory.create (sparql, set); Model model = vqe.execDescribe(); Graph g = model.getGraph(); System.out.println("\nDESCRIBE results:"); for (Iterator i = g.find(Node.ANY, Node.ANY, Node.ANY); i.hasNext();) { Triple t = (Triple)i.next(); System.out.println(" { " + t.getSubject() + " " + t.getPredicate() + " " + t.getObject() + " . }"); } sparql = QueryFactory.create("CONSTRUCT { ?x <http://test> ?y } FROM <http://test1> WHERE { ?x <http://bb> ?y }"); vqe = VirtuosoQueryExecutionFactory.create (sparql, set); model = vqe.execConstruct(); g = model.getGraph(); System.out.println("\nCONSTRUCT results:"); for (Iterator i = g.find(Node.ANY, Node.ANY, Node.ANY); i.hasNext();) { Triple t = (Triple)i.next(); System.out.println(" { " + t.getSubject() + " " + t.getPredicate() + " " + t.getObject() + " . }"); } sparql = QueryFactory.create("ASK FROM <http://test1> WHERE { <http://aa> <http://bb> ?y }"); vqe = VirtuosoQueryExecutionFactory.create (sparql, set); boolean res = vqe.execAsk(); System.out.println("\nASK results: "+res); } } </verbatim>
sioc:id
5fa4cbb40dfe90d693450694bd4460f2
sioc:link
n2:VirtJenaSPARQLExample9
sioc:has_container
n5:VOS
n16:has_services
n17:item
atom:title
VirtJenaSPARQLExample9
atom:source
n5:VOS
atom:author
n13:this
atom:published
2017-06-13T05:43:52Z
atom:updated
2017-06-13T05:43:52Z
sioc:topic
n5:VOS