Not logged in : Login
(Sponging disallowed)

About: VirtTipsAndTricksSPARQL11Assign     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : atom:Entry, within Data Space : data.openlinksw.com associated with source document(s)
QRcode icon
http://data.openlinksw.com/describe/?url=http%3A%2F%2Fwww.openlinksw.com%2Fdataspace%2Fdav%2Fwiki%2FMain%2FVirtTipsAndTricksSPARQL11Assign

AttributesValues
has container
Date Created
maker
topic
described by
seeAlso
Date Modified
link
id
  • f29d14519064f99e3b8286d1d249e236
content
  • %META:TOPICPARENT{name="VirtTipsAndTricksSPARQL11FeaturesExamplesCollection"}% ---+ Using SPARQL 1.1 Assignments ---++What? Using SPARQL 1.1 assignments. ---++Why? Allows the creation of new values in a query. ---++How? Here is example showcasing Virtuoso's support for this functionality: 1 Assume the following Raw Data Representation in Turtle: <verbatim> <#lemonade> <#price> 4 . <#wine> <#price> 6 . <#water> <#price> 1 . <#beer> <#price> 3 . <#liqueur> <#price> 5 . </verbatim> 1 Load the sample data using SPARQL 1.1. INSERT Syntax: <verbatim> INSERT { GRAPH <urn:sparql:tests:assign> { <#lemonade> <#price> 4 . <#wine> <#price> 6 . <#water> <#price> 1 . <#beer> <#price> 3 . <#liqueur> <#price> 5 . } } </verbatim> 1 Let's assign new price: <verbatim> SELECT ?item (?price*2.3 as ?NewPrice) FROM <urn:sparql:tests:assign> WHERE { ?item <#price> ?price } </verbatim> * [[http://bit.ly/VpdZ0Q][View the SPARQL Query Definition via SPARQL Protocol URL]] * [[http://bit.ly/Z8r4vg][View the SPARQL Query Results via SPARQL Protocol URL]] ---++Related * [[VirtTipsAndTricksSPARQL11FeaturesExamplesCollection][SPARQL 1.1 Features Examples Collection]] * [[http://www.w3.org/TR/2010/WD-sparql11-property-paths-20100126/][SPARQL 1.1. Property Paths]] * [[http://www.w3.org/TR/sparql11-query/#inline-data][SPARQL inline data via use of VALUES clause]] * [[http://virtuoso.openlinksw.com/tutorials/sparql/SPARQL_Tutorials_Part_9/SPARQL_Tutorials_Part_9.html][Virtuoso SPARQL 1.1 Syntax Tutorial]] * [[http://www.w3.org/TR/2010/WD-sparql11-query-20100126/#subqueries][SPARQL 1.1 Sub-queries]] * [[http://www.w3.org/TR/sparql11-query/][SPARQL 1.1 Specification]] * [[http://www.w3.org/TR/rdf-sparql-protocol/][SPARQL Protocol (HTTP based Query Service)]] * [[http://docs.openlinksw.com/virtuoso/rdfsparql.html][Virtuoso Documentation]] * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
Title
  • VirtTipsAndTricksSPARQL11Assign
has creator
is described using
atom:source
atom:updated
  • 2014-02-13T16:42:15Z
atom:title
  • VirtTipsAndTricksSPARQL11Assign
links to
atom:author
label
  • VirtTipsAndTricksSPARQL11Assign
topic
atom:published
  • 2014-02-13T16:41:33Z
type
is topic of
Faceted Search & Find service v1.17_git122 as of Jan 03 2023


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.3330 as of Apr 5 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (30 GB total memory, 25 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software