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/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n13http://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/
n7http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n4http://docs.openlinksw.com/virtuoso/rdfinsertmethods.
n12http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n8http://vos.openlinksw.com/dataspace/person/dav#
n6http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n16http://vos.openlinksw.com/dataspace/owiki#
n11http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtTipsAndTricksGuideCreateGraph/sioc.
xsdhhttp://www.w3.org/2001/XMLSchema#
n20http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n17http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n8:this
foaf:made
n2:VirtTipsAndTricksGuideCreateGraph
Subject Item
n7:this
sioc:creator_of
n2:VirtTipsAndTricksGuideCreateGraph
Subject Item
n13:item
n12:services_of
n2:VirtTipsAndTricksGuideCreateGraph
Subject Item
n16:this
sioc:creator_of
n2:VirtTipsAndTricksGuideCreateGraph
Subject Item
n6:VOS
sioc:container_of
n2:VirtTipsAndTricksGuideCreateGraph
atom:entry
n2:VirtTipsAndTricksGuideCreateGraph
atom:contains
n2:VirtTipsAndTricksGuideCreateGraph
Subject Item
n2:VirtTipsAndTricksGuideCreateGraph
rdf:type
atom:Entry sioct:Comment
dcterms:created
2017-06-13T05:37:48.169180
dcterms:modified
2017-06-13T05:37:48.169180
rdfs:label
VirtTipsAndTricksGuideCreateGraph
foaf:maker
n8:this n17:this
dc:title
VirtTipsAndTricksGuideCreateGraph
opl:isDescribedUsing
n11:rdf
sioc:has_creator
n7:this n16:this
sioc:content
%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+ How do <code>CREATE GRAPH</code>, <code>DROP GRAPH</code>, <code>CLEAR GRAPH</code>, and <code>DELETE FROM &lt;graphname&gt;</code> work in Virtuoso? ---++ What? Here are some details about the <code>CREATE GRAPH</code>, <code>DROP GRAPH</code>, <code>CLEAR GRAPH</code>, and <code>DELETE FROM &lt;graphname&gt;</code> commands. ---++ Why? Clarifying implications of the various commands in Virtuoso. ---++ How? In Virtuoso, it does not matter whether <code>CREATE GRAPH</code> and <code>DROP GRAPH</code> (or its synonym, <code>CLEAR GRAPH</code>) are called or not. Their purpose is to provide compatibility with the original SPARUL that was designed for Jena. Some Jena triple stores require explicit creation of each graph (like <code>CREATE TABLE</code> in SQL), report errors if one tries to create a graph twice, and so on. For Virtuoso, a new graph is not an important system event, because Virtuoso has a single quad-store shared by all graphs. When a graph is made by <code>CREATE GRAPH</code>, its name is placed in an auxiliary table that is used solely to signal appropriate errors when a user tries to <code>CREATE</code> a graph that has already been <code>CREATEd</code>, or to <code>DROP</code> a graph which has not been <code>CREATEd</code>; this table is not used in any way by SPARQL or other subsystems. In a perfect world, smart development tools will query that table to give hints to a programmer regarding available graphs, but the reality is not so perfect. There is an important difference between <code>DELETE FROM &lt;graphname&gt; WHERE { ?s ?p ?o }</code> and <code>CLEAR GRAPH &lt;graphname&gt;</code>. Both will delete all triples from the specified graph <code>&lt;graphname&gt;</code> with equal speed, but <code>CLEAR GRAPH</code> will also delete free-text index data about occurrences of literals in this specific graph. <code>CLEAR GRAPH</code> will therefor make the database slightly more compact and the text search slightly faster. (Naturally, DROP GRAPH makes CLEAR GRAPH inside, not just DELETE FROM...) ---+++ DROP GRAPH and CLEAR GRAPH are equivalent <code>DROP GRAPH</code> is equivalent of <code>CLEAR GRAPH</code>. Both require that the graph has been explicitly <code>CREATEd</code>. <i><b>Note:</b> All SPARUL a/k/a SPARQL-Update commands require that the user (i.e., the <code>SPARQL</code> user for the default <code>/sparql</code> endpoint) be granted <b><code><nowiki>SPARQL_UPDATE"</nowiki></code></b> privilege.</i> Assume the following sequence of commands to be executed from the <code>/sparql</code> endpoint: 1 Explicitly create a graph: <verbatim> CREATE GRAPH <qq> callret-0 Create graph <qq> -- done </verbatim> 1 If you know the graph was explicitly created, use the simple <code>DROP GRAPH</code>: <verbatim> DROP GRAPH <qq> callret-0 Drop graph <qq> -- done </verbatim> 1 If you don't know whether a graph was created explicitly or not, you can add the <code>SILENT</code> option: <verbatim> DROP SILENT GRAPH <qq> callret-0 Drop silent graph <qq> -- done </verbatim> ---++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[http://docs.openlinksw.com/virtuoso/rdfinsertmethods.html][RDF Insert Methods in Virtuoso]]
sioc:id
75cf0141ba678fe58b99e0d9ae6ed6d4
sioc:link
n2:VirtTipsAndTricksGuideCreateGraph
sioc:has_container
n6:VOS
n12:has_services
n13:item
atom:title
VirtTipsAndTricksGuideCreateGraph
sioc:links_to
n4:html n20:VirtTipsAndTricksGuide
atom:source
n6:VOS
atom:author
n8:this
atom:published
2017-06-13T05:37:48Z
atom:updated
2017-06-13T05:37:48Z
sioc:topic
n6:VOS