This HTML5 document contains 37 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/
n13http://bit.ly/
n21http://www.w3.org/TR/2010/WD-sparql11-query-20100126/#
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n15http://vos.openlinksw.com/dataspace/services/wiki/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
n22http://virtuoso.openlinksw.com/tutorials/sparql/SPARQL_Tutorials_Part_9/SPARQL_Tutorials_Part_9.
n19http://docs.openlinksw.com/virtuoso/rdfsparql.
n23http://www.w3.org/TR/rdf-sparql-protocol/
dchttp://purl.org/dc/elements/1.1/
n5http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n16http://rdfs.org/sioc/services#
n12http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtTipsAndTricksSPARQL11Subquery/sioc.
n10http://vos.openlinksw.com/dataspace/person/dav#
siocthttp://rdfs.org/sioc/types#
n20http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n6http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n7http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n14http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n10:this
foaf:made
n2:VirtTipsAndTricksSPARQL11Subquery
Subject Item
n5:this
sioc:creator_of
n2:VirtTipsAndTricksSPARQL11Subquery
Subject Item
n15:item
n16:services_of
n2:VirtTipsAndTricksSPARQL11Subquery
Subject Item
n6:this
sioc:creator_of
n2:VirtTipsAndTricksSPARQL11Subquery
Subject Item
n20:VOS
sioc:container_of
n2:VirtTipsAndTricksSPARQL11Subquery
atom:entry
n2:VirtTipsAndTricksSPARQL11Subquery
atom:contains
n2:VirtTipsAndTricksSPARQL11Subquery
Subject Item
n2:VirtTipsAndTricksSPARQL11Subquery
rdf:type
sioct:Comment atom:Entry
dcterms:created
2017-06-13T05:39:51.051807
dcterms:modified
2017-06-13T05:39:51.051807
rdfs:label
VirtTipsAndTricksSPARQL11Subquery
foaf:maker
n10:this n14:this
dc:title
VirtTipsAndTricksSPARQL11Subquery
opl:isDescribedUsing
n12:rdf
sioc:has_creator
n5:this n6:this
sioc:content
%META:TOPICPARENT{name="VirtTipsAndTricksSPARQL11FeaturesExamplesCollection"}% ---+Virtuoso SPARQL 1.1. Subqueries Usage Examples ---++What? This guide contains Virtuoso SPARQL 1.1. Subqueries Usage example queries which you can run against any SPARQL endpoint that supports SPARQL 1.1 and the ability to allow a verified user perform INSERT operations. ---++Why? Using subqueries provides good readability. Certain types of problems can be stated more concisely, and more efficiently, with subqueries. ---++How? Here are some examples showcasing Virtuoso's support for this functionality: 1 Assume the following Raw Data Representation in Turtle: <verbatim> <http://people.example/alice> <http://people.example/name> "Alice", "Alice Foo", "A. Foo" . <http://people.example/alice> <http://people.example/knows> <http://people.example/bob> , <http://people.example/carol> . <http://people.example/bob> <http://people.example/name> "Bob", "Bob Bar", "B. Bar" . <http://people.example/carol> <http://people.example/name> "Carol", "Carol Baz", "C. Baz" . </verbatim> 1 Beautified Raw Data Representation in Turtle (from above) using Namespace Prefix: <verbatim> <#alice> <#name> "Alice" . <#alice> <#name> "Alice Foo" . <#alice> <#name> "A. Foo" . <#alice> <http://xmlns.com/foaf/0.1/knows> <#bob>, <#carol> . <#bob> <#name> "Bob" . <#bob> <#name> "Bob Bar" . <#bob> <#name> "B. Bar" . <#carol> <#name> "Carol" . <#carol> <#name> "Carol Baz" . <#carol> <#name> "C. Baz" . </verbatim> 1 Load the sample data: <verbatim> INSERT { GRAPH <urn:sparql:tests:subquery> { <#alice> <#name> "Alice" . <#alice> <#name> "Alice Foo" . <#alice> <#name> "A. Foo" . <#alice> <http://xmlns.com/foaf/0.1/knows> <#bob>, <#carol> . <#bob> <#name> "Bob" . <#bob> <#name> "Bob Bar" . <#bob> <#name> "B. Bar" . <#carol> <#name> "Carol" . <#carol> <#name> "Carol Baz" . <#carol> <#name> "C. Baz" . } } </verbatim> 1 Query the graph data by using a sub-query in the SPARQL query statement: <verbatim> SELECT ?y ?minName WHERE { <#alice> <http://xmlns.com/foaf/0.1/knows> ?y . { SELECT ?y (MIN(?name) AS ?minName) WHERE { ?y <#name> ?name . } GROUP BY ?y } } </verbatim> 1 [[http://bit.ly/YohiXp][View the SPARQL Query Definition via SPARQL Protocol URL]]; 1 [[http://bit.ly/11eCdM5][View the SPARQL Query Results via SPARQL Protocol URL]] ---++Related * [[http://www.w3.org/TR/2010/WD-sparql11-query-20100126/#subqueries][SPARQL 1.1 Subqueries]] * [[http://www.w3.org/TR/rdf-sparql-protocol/][SPARQL Protocol (HTTP based Query Service)]] * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[VirtTipsAndTricksSPARQL11FeaturesExamplesCollection][Virtuoso SPARQL 1.1 Usage Examples Collection]] * [[http://virtuoso.openlinksw.com/tutorials/sparql/SPARQL_Tutorials_Part_9/SPARQL_Tutorials_Part_9.html][Virtuoso SPARQL 1.1 Syntax Tutorial]] * [[http://docs.openlinksw.com/virtuoso/rdfsparql.html][Virtuoso Documentation]]
sioc:id
3a51ee8add90751d883f5ba6f163c61c
sioc:link
n2:VirtTipsAndTricksSPARQL11Subquery
sioc:has_container
n20:VOS
n16:has_services
n15:item
atom:title
VirtTipsAndTricksSPARQL11Subquery
sioc:links_to
n7:VirtTipsAndTricksGuide n13:YohiXp n13:11eCdM5 n19:html n2:VirtTipsAndTricksSPARQL11FeaturesExamplesCollection n21:subqueries n22:html n23:
atom:source
n20:VOS
atom:author
n10:this
atom:published
2017-06-13T05:39:51Z
atom:updated
2017-06-13T05:39:51Z
sioc:topic
n20:VOS