Not logged in : Login

About: VirtTipsAndTricksSPARQL11Drop     Goto   Sponge   Distinct   Permalink

An Entity of Type : atom:Entry, within Data Space : vos.openlinksw.com associated with source document(s)

AttributesValues
type
Date Created
Date Modified
label
  • VirtTipsAndTricksSPARQL11Drop
maker
Title
  • VirtTipsAndTricksSPARQL11Drop
isDescribedUsing
has creator
content
  • %META:TOPICPARENT{name="VirtTipsAndTricksSPARQL11FeaturesExamplesCollection"}% ---+Virtuoso SPARQL 1.1. DROP Usage Examples %TOC% ---++What? This guide contains Virtuoso SPARQL 1.1. DROP Usage examples 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? Use to remove a named graph from the RDF Quad Store. ---++How? Here are some examples showcasing Virtuoso's support for this functionality: ---+++DROP Example This example drops named graph identified by the IRI &lt;urn:sparql:tests:drop:data&gt; from the RDF Quad Store. 1 Assume the following Raw Data Representation in Turtle: <verbatim> <#book1> <#price> 41 . <#book2> <#price> 42 . <#book3> <#price> 43 . <#book4> <#price> 44 . </verbatim> 1 Create explicitly a named graph with IRI &lt;urn:sparql:tests:drop:data&gt; : <verbatim> CREATE GRAPH <urn:sparql:tests:drop:data>; </verbatim> 1 Load the sample data: <verbatim> INSERT DATA { GRAPH <urn:sparql:tests:drop:data> { <#book1> <#price> 41 . <#book2> <#price> 42 . <#book3> <#price> 43 . <#book4> <#price> 44 . } } </verbatim> 1 Query graph &lt;urn:sparql:tests:drop:data&gt; data -- should return 4 triples: <verbatim> SELECT * FROM <urn:sparql:tests:drop:data> WHERE { ?s ?p ?o } </verbatim> * [[http://bit.ly/10scyxi][View the SPARQL Query Definition via SPARQL Protocol URL]]; * [[http://bit.ly/X8qXRI][View the SPARQL Query Results via SPARQL Protocol URL]] 1 Drop the named graph identified by the IRI &lt;urn:sparql:tests:drop:data&gt; : <verbatim> DROP GRAPH <urn:sparql:tests:drop:data>; </verbatim> * Note: If the graph is not created explicitly as per above, i.e. the step <code>CREATE GRAPH ..</code> is omitted, in order to drop the graph you need to use <code>SILENT</code> option, which will not signal any errors: <verbatim> DROP SILENT GRAPH <urn:sparql:tests:drop:data>; </verbatim> 1 Query graph &lt;urn:sparql:tests:drop:data&gt; data -- should return no triples: <verbatim> SELECT * FROM <urn:sparql:tests:drop:data> WHERE { ?s ?p ?o } </verbatim> * [[http://bit.ly/10scyxi][View the SPARQL Query Definition via SPARQL Protocol URL]]; * [[http://bit.ly/X8qXRI][View the SPARQL Query Results via SPARQL Protocol URL]] ---++Related * [[http://www.w3.org/TR/2012/PR-sparql11-update-20121108/#drop][SPARQL 1.1 DROP]] * [[VirtTipsAndTricksGuideRenameGraph][Rename RDF Graph Example]] * [[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]]
id
  • d2a841f4cc7edec9f694a2da71c254ce
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtTipsAndTricksSPARQL11Drop
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:38:32Z
atom:updated
  • 2017-06-13T05:38:32Z
topic
is made of
is container of of
is link of
is http://rdfs.org/si...vices#services_of of
is links to of
is creator of of
is atom:entry of
is atom:contains of
Faceted Search & Find service v1.17_git150 as of Jan 20 2025


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3332 as of Sep 11 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 1 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2025 OpenLink Software