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/
n12http://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/
n8http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n11http://rdfs.org/sioc/services#
n9http://vos.openlinksw.com/dataspace/person/dav#
siocthttp://rdfs.org/sioc/types#
n4http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n13http://vos.openlinksw.com/dataspace/owiki#
n18http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtJenaSPARQLExample12/sioc.
xsdhhttp://www.w3.org/2001/XMLSchema#
n16http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n9:this
foaf:made
n2:VirtJenaSPARQLExample12
Subject Item
n8:this
sioc:creator_of
n2:VirtJenaSPARQLExample12
Subject Item
n12:item
n11:services_of
n2:VirtJenaSPARQLExample12
Subject Item
n13:this
sioc:creator_of
n2:VirtJenaSPARQLExample12
Subject Item
n4:VOS
sioc:container_of
n2:VirtJenaSPARQLExample12
atom:entry
n2:VirtJenaSPARQLExample12
atom:contains
n2:VirtJenaSPARQLExample12
Subject Item
n2:VirtJenaSPARQLExample12
rdf:type
sioct:Comment atom:Entry
dcterms:created
2019-09-23T08:28:38.748657
dcterms:modified
2019-09-23T08:30:05.293551
rdfs:label
VirtJenaSPARQLExample12
foaf:maker
n9:this n16:this
dc:title
VirtJenaSPARQLExample12
opl:isDescribedUsing
n18:rdf
sioc:has_creator
n8:this n13:this
sioc:content
---+ Virtuoso Jena Provider - SPARQL Example 12 <verbatim> import org.apache.jena.query.*; import org.apache.jena.graph.Triple; import org.apache.jena.graph.Node; import org.apache.jena.graph.Graph; import org.apache.jena.rdf.model.*; import org.apache.jena.rdf.model.RDFNode; import org.apache.jena.vocabulary.DC; import java.util.Iterator; import virtuoso.jena.driver.*; public class VirtuosoSPARQLExample12 { /** * 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]; Model m = VirtModel.openDatabaseModel("my:test", url, "dba", "dba"); m.removeAll(); Resource r1 = m.createResource("http://example.org/book#1") ; Resource r2 = m.createResource("http://example.org/book#2") ; r1.addProperty(DC.title, "SPARQL - the book") .addProperty(DC.description, "A book about SPARQL") ; r2.addProperty(DC.title, "Advanced techniques for SPARQL") ; String prolog = "PREFIX dc: <"+DC.getURI()+"> \n" ; // Query string. String queryString = prolog + "SELECT ?title WHERE {?x dc:title ?title}" ; System.out.println("Execute query=\n"+queryString) ; System.out.println() ; Query query = QueryFactory.create(queryString) ; System.out.println("\n==CASE 1 ==Parse ARQ Execute ARQ GraphStore Virtuoso"); //NOTE: query is parsed & executed by ARQ, so it works slow // and you can't use Virtuoso SPARQL features QueryExecution qexec = QueryExecutionFactory.create(query, m) ; // Or QueryExecutionFactory.create(queryString, model) ; System.out.println("Titles: ") ; try { ResultSet rs = qexec.execSelect() ; for ( ; rs.hasNext() ; ) { QuerySolution rb = rs.nextSolution() ; RDFNode x = rb.get("title") ; if ( x.isLiteral() ) { Literal titleStr = (Literal)x ; System.out.println(" "+titleStr) ; } else System.out.println("Strange - not a literal: "+x) ; } } finally { qexec.close() ; } } } </verbatim>
sioc:id
c70fab136899dabb3fe8e7206e45b905
sioc:link
n2:VirtJenaSPARQLExample12
sioc:has_container
n4:VOS
n11:has_services
n12:item
atom:title
VirtJenaSPARQLExample12
atom:source
n4:VOS
atom:author
n9:this
atom:published
2019-09-23T08:28:38Z
atom:updated
2019-09-23T08:30:05Z
sioc:topic
n4:VOS