This HTML5 document contains 31 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/
n9http://docs.openlinksw.com/virtuoso/rdfandsparql.
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n16http://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/
n11http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n17http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n4http://vos.openlinksw.com/dataspace/person/dav#
n15http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtTipsAndTricksGuideConstructINSERTStatement/sioc.
n7http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n13http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n12http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n4:this
foaf:made
n2:VirtTipsAndTricksGuideConstructINSERTStatement
Subject Item
n11:this
sioc:creator_of
n2:VirtTipsAndTricksGuideConstructINSERTStatement
Subject Item
n16:item
n17:services_of
n2:VirtTipsAndTricksGuideConstructINSERTStatement
Subject Item
n13:this
sioc:creator_of
n2:VirtTipsAndTricksGuideConstructINSERTStatement
Subject Item
n7:VOS
sioc:container_of
n2:VirtTipsAndTricksGuideConstructINSERTStatement
atom:entry
n2:VirtTipsAndTricksGuideConstructINSERTStatement
atom:contains
n2:VirtTipsAndTricksGuideConstructINSERTStatement
Subject Item
n2:VirtTipsAndTricksGuideConstructINSERTStatement
rdf:type
atom:Entry sioct:Comment
dcterms:created
2017-06-13T05:48:37.465120
dcterms:modified
2017-06-13T05:48:37.465120
rdfs:label
VirtTipsAndTricksGuideConstructINSERTStatement
foaf:maker
n4:this n12:this
dc:title
VirtTipsAndTricksGuideConstructINSERTStatement
opl:isDescribedUsing
n15:rdf
sioc:has_creator
n11:this n13:this
sioc:content
---+How can I use INSERT via CONSTRUCT Statements? ---++What? Use of SPARUL to add triples to a Named Graph. ---++Why? Imagine a situation where you seek to create mappings between datasets across Linked Data Spaces. For example, we have two datasets across the schema.org and schema.rdfs.org data spaces and we seek to mint owl:equivalentClass and owl:equivalentProperty relations across the aforementioned data spaces in a third dataspace hosted by a Virtuoso instance. ---++How? You can write an ordinary CONSTRUCT statement, ensure that it generates the triples intended to be added, and then replace the leading CONSTRUCT keyword with the INSERT INTO <destination-graph> phrase. The example below shows how CONSTRUCT is used to manufacture the triples required by the Virtuoso hosted dataset. ---+++Example 1 Assume the following CONSTRUCT statement: <verbatim> CONSTRUCT { ?s <http://www.w3.org/2002/07/owl#equivalentClass> `iri (bif:replace(?o,'http://schema.rdfs.org/', 'http://schema.org/'))` } FROM <http://www.openlinksw.com/schemas/rdfs> WHERE { ?s <http://www.w3.org/2002/07/owl#equivalentClass> ?o }; </verbatim> 1 Execute the CONSTRUCT query from the <code>htp://cname/sparql</code> SPARQL endpoint. 1 View the generated triples to ensure they are correct. 1 Replace CONSTRUCT with INSERT INTO: <verbatim> SPARQL INSERT INTO <http://www.openlinksw.com/schemas/rdfs> { ?s <http://www.w3.org/2002/07/owl#equivalentClass> `iri (bif:replace(?o,'http://schema.rdfs.org/', 'http://schema.org/'))` } FROM <http://www.openlinksw.com/schemas/rdfs> WHERE { ?s <http://www.w3.org/2002/07/owl#equivalentClass> ?o } ; </verbatim> ---+++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]. * [[http://docs.openlinksw.com/virtuoso/rdfandsparql.html][RDF Data Access and Data Management]]. * [[VirtTipsAndTricksGuideConstructPreparedStatement][Usage of CONSTRUCT with Prepared Statements]].
sioc:id
6023271ec08e0129b7dcea488a081efb
sioc:link
n2:VirtTipsAndTricksGuideConstructINSERTStatement
sioc:has_container
n7:VOS
n17:has_services
n16:item
atom:title
VirtTipsAndTricksGuideConstructINSERTStatement
sioc:links_to
n9:html n2:VirtTipsAndTricksGuideConstructPreparedStatement
atom:source
n7:VOS
atom:author
n4:this
atom:published
2017-06-13T05:48:37Z
atom:updated
2017-06-13T05:48:37Z
sioc:topic
n7:VOS