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

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

PrefixNamespace IRI
n13http://docs.openlinksw.com/virtuoso/sparqlextensions.html#
dctermshttp://purl.org/dc/terms/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n5http://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#
n4http://rdfs.org/sioc/services#
n17http://vos.openlinksw.com/dataspace/person/dav#
siocthttp://rdfs.org/sioc/types#
n11http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n12http://vos.openlinksw.com/dataspace/owiki#
n21http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph/sioc.
xsdhhttp://www.w3.org/2001/XMLSchema#
n7http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n10http://vos.openlinksw.com/dataspace/person/owiki#
n14http://www.w3.org/TR/2010/WD-sparql11-update-20100126/#
siochttp://rdfs.org/sioc/ns#
Subject Item
n17:this
foaf:made
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
Subject Item
n8:this
sioc:creator_of
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
Subject Item
n5:item
n4:services_of
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
Subject Item
n12:this
sioc:creator_of
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
Subject Item
n11:VOS
sioc:container_of
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
atom:entry
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
atom:contains
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
Subject Item
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
rdf:type
sioct:Comment atom:Entry
dcterms:created
2017-06-13T05:41:54.066726
dcterms:modified
2017-06-13T05:41:54.066726
rdfs:label
VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
foaf:maker
n10:this n17:this
dc:title
VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
opl:isDescribedUsing
n21:rdf
sioc:has_creator
n12:this n8:this
sioc:content
%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+ How can I Delete Triple Patterns that are Not Scoped to a Named Graph? Presuming this triple exists in one or more graphs in the store: <verbatim> { <http://kingsley.idehen.net/dataspace/person/kidehen#this> <http://xmlns.com/foaf/0.1/knows> <http://id.myopenlink.net/dataspace/person/KingsleyUyiIdehen#this> } </verbatim> The SQL query below will delete that triple from all graphs in the store: <verbatim> DELETE FROM DB.DBA.RDF_QUAD WHERE p = iri_to_id ('http://xmlns.com/foaf/0.1/knows') AND s = iri_to_id ('http://kingsley.idehen.net/dataspace/person/kidehen#this') AND o = iri_to_id ('http://id.myopenlink.net/dataspace/person/KingsleyUyiIdehen#this') ; </verbatim> According to [[http://www.w3.org/TR/2010/WD-sparql11-update-20100126/#t414][SPARQL 1.1 Update]], the <code>FROM</code> clause which scopes the query to a single graph is optional. Thus, the SQL query above can be rewritten to the SPARQL query below, again deleting the matching triple from all graphs in the store: <verbatim> DELETE { GRAPH ?g { <http://kingsley.idehen.net/dataspace/person/kidehen#this> <http://xmlns.com/foaf/0.1/knows> <http://id.myopenlink.net/dataspace/person/KingsleyUyiIdehen#this> } } WHERE { GRAPH ?g { <http://kingsley.idehen.net/dataspace/person/kidehen#this> <http://xmlns.com/foaf/0.1/knows> <http://id.myopenlink.net/dataspace/person/KingsleyUyiIdehen#this> } } </verbatim> ---++ Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparulexamples14][How can I delete triples from a graph?]] * [[VirtTipsAndTricksGuideDeleteLargeGraphs][How can I delete triples from a "Large" graph?]] * [[http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparulexamples15][How can I copy triples from one graph to another?]] * [[http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparulexamples16][How can I move triples from one graph to another?]] * [[http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparulexamples10][How can I drop a graph?]] * [[VirtTipsAndTricksDeleteGraphProc][How can I delete graphs using stored procedure?]]
sioc:id
1113dfddf2c9ab4b6abb023c84a7e098
sioc:link
n2:VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
sioc:has_container
n11:VOS
n4:has_services
n5:item
atom:title
VirtTipsAndTricksDeleteTriplesPatternsNotScopedNamedGraph
sioc:links_to
n7:VirtTipsAndTricksDeleteGraphProc n13:rdfsparulexamples10 n7:VirtTipsAndTricksGuideDeleteLargeGraphs n13:rdfsparulexamples14 n14:t414 n13:rdfsparulexamples15 n13:rdfsparulexamples16
atom:source
n11:VOS
atom:author
n17:this
atom:published
2017-06-13T05:41:54Z
atom:updated
2017-06-13T05:41:54Z
sioc:topic
n11:VOS