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/
n7http://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#
n6http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n14http://vos.openlinksw.com/dataspace/person/dav#
n9http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n10http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
siochttp://rdfs.org/sioc/ns#
n12http://vos.openlinksw.com/dataspace/person/owiki#
n4http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtJenaSPARQLExample8/sioc.
Subject Item
n14:this
foaf:made
n2:VirtJenaSPARQLExample8
Subject Item
n15:this
sioc:creator_of
n2:VirtJenaSPARQLExample8
Subject Item
n7:item
n6:services_of
n2:VirtJenaSPARQLExample8
Subject Item
n10:this
sioc:creator_of
n2:VirtJenaSPARQLExample8
Subject Item
n9:VOS
sioc:container_of
n2:VirtJenaSPARQLExample8
atom:entry
n2:VirtJenaSPARQLExample8
atom:contains
n2:VirtJenaSPARQLExample8
Subject Item
n2:VirtJenaSPARQLExample8
rdf:type
atom:Entry sioct:Comment
dcterms:created
2018-11-24T15:49:24.216307
dcterms:modified
2018-11-24T15:52:19.660098
rdfs:label
VirtJenaSPARQLExample8
foaf:maker
n12:this n14:this
dc:title
VirtJenaSPARQLExample8
opl:isDescribedUsing
n4:rdf
sioc:has_creator
n10:this n15:this
sioc:content
<verbatim> import org.apache.jena.query.*; import org.apache.jena.rdf.model.RDFNode; import virtuoso.jena.driver.*; public class VirtuosoSPARQLExample8 { /** * 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 */ System.out.println("\nexecute: CLEAR GRAPH <http://test1>"); String str = "CLEAR GRAPH <http://test1>"; VirtuosoUpdateRequest vur = VirtuosoUpdateFactory.create(str, set); vur.exec(); System.out.println("\nexecute: INSERT INTO GRAPH <http://test1> { <aa> <bb> 'cc' . <aa1> <bb1> 123. }"); str = "INSERT INTO GRAPH <http://test1> { <aa> <bb> 'cc' . <aa1> <bb1> 123. }"; vur = VirtuosoUpdateFactory.create(str, set); vur.exec(); /* STEP 3 */ /* Select all data in virtuoso */ System.out.println("\nexecute: SELECT * FROM <http://test1> WHERE { ?s ?p ?o }"); Query sparql = QueryFactory.create("SELECT * FROM <http://test1> WHERE { ?s ?p ?o }"); /* STEP 4 */ QueryExecution vqe = VirtuosoQueryExecutionFactory.create (sparql, set); ResultSet results = vqe.execSelect(); 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 + " . }"); } System.out.println("\nexecute: DELETE FROM GRAPH <http://test1> { <aa> <bb> 'cc' }"); str = "DELETE FROM GRAPH <http://test1> { <aa> <bb> 'cc' }"; vur = VirtuosoUpdateFactory.create(str, set); vur.exec(); System.out.println("\nexecute: SELECT * FROM <http://test1> WHERE { ?s ?p ?o }"); vqe = VirtuosoQueryExecutionFactory.create (sparql, set); results = vqe.execSelect(); 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 + " . }"); } } } </verbatim>
sioc:id
3b9ae178b00c177b6a748002653025cc
sioc:link
n2:VirtJenaSPARQLExample8
sioc:has_container
n9:VOS
n6:has_services
n7:item
atom:title
VirtJenaSPARQLExample8
atom:source
n9:VOS
atom:author
n14:this
atom:published
2018-11-24T15:49:24Z
atom:updated
2018-11-24T15:52:19Z
sioc:topic
n9:VOS