SPARQL/SPARUL/SPARQL-BI Operations Guide for Executing Queries Combined in Single or Multiple Statements
The following guide presents various operations lists depending on either is allowed multiple or single execution of the statements.
Items that could be listed one after other with and without semicolon
- SPARQL 1.1:
- SPARUL:
- SPARQL-BI:
- LOAD SERVICE DATA
Example
DELETE from <http://semantica.globo.com/tvg/> { <http://semantica.globo.com/tvg/programa/11> ?p ?o . } WHERE { <http://semantica.globo.com/tvg/programa/11> ?p ?o . } INSERT DATA INTO <http://semantica.globo.com/tvg/> { <http://semantica.globo.com/tvg/programa/11> <http://semantica.globo.com/tvg/cor_hover_tvg> "#d39016" . }
Items that could not be combined with others
Single Quad Map Configuration Operator
A single quad map configuration operator can consist of many parts separated by dots:
- CREATE IRI CLASS
- CREATE LITERAL CLASS
- CREATE LITERAL SUBCLASS
- CREATE QUAD STORAGE (with tree of dot-delimited declarations inside)
- ALTER QUAD STORAGE (with tree of dot-delimited declarations inside)
- DROP QUAD STORAGE
- DROP QUAD MAP
Example
CREATE IRI CLASS oplsioc:grantee_iri using function DB.DBA.GRANTEE_URI (in id integer) returns varchar, function DB.DBA.GRANTEE_URI_INVERSE (in id_iri varchar) returns integer . CREATE IRI CLASS oplsioc:user_iri "http://myhost/sys/user?id=%d" (in uid integer not null) . CREATE LITERAL CLASS example:isbn_ref "%s" (in isbn varchar not null) option ( bijection, returns "%u-%u-%u-%u" union "%u-%u-%u-X" ) MAKE oplsioc:user_iri SUBCLASS OF oplsioc:grantee_iri . ALTER QUAD STORAGE virtrdf:DefaultQuadStorage : FROM isports_rdf.prs10_isports_rdf.VRef_Call as Ref_Call_tbl FROM isports_rdf.prs10_isports_rdf.VRef_Call as Ref_Call_tbl_1 : { : refcall:ref-call_iri (Ref_Call_tbl.Call_Num) a refcall:Ref-Call as virtrdf:ref-call_pk ; : refcall:has_parent refcall:ref-call_iri (Ref_Call_tbl_1.Call_Num) where ( ^{Ref_Call_tbl.}^.Parent = ^{Ref_Call_tbl_1.}^.Call_Num ) as virtrdf:Ref-Call_has_parent .
Related
- SPARQL 1.1. Features Examples Collection
- Business Intelligence Extensions for SPARQL
- Virtuoso SPARQL-BI Examples Collection
- Tutorial Demonstrating Reasoning via SPARQL
- SPARQL 1.1. Property Paths
- SPARQL inline data via use of VALUES clause
- Virtuoso SPARQL 1.1 Syntax Tutorial
- SPARQL 1.1 Subqueries
- SPARQL 1.1 Specification
- SPARQL Protocol (HTTP based Query Service)
- Virtuoso Documentation
- Virtuoso Tips and Tricks Collection
- Rename RDF Graph Example