You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Tom Saleeba <an...@apache.org> on 2014/11/24 06:19:35 UTC
CMS diff: SPARQL Tutorial - Datasets
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/tutorials%2Fsparql_datasets.mdtext
Tom Saleeba
Index: trunk/content/tutorials/sparql_datasets.mdtext
===================================================================
--- trunk/content/tutorials/sparql_datasets.mdtext (revision 1641299)
+++ trunk/content/tutorials/sparql_datasets.mdtext (working copy)
@@ -11,6 +11,7 @@
[`OPTIONAL`s](sparql_optionals.html), and [`UNION`s](sparql_union.html)) work on
one RDF graph. This starts out being the default graph of the
dataset but it can be changed by the `GRAPH` keyword.
+
GRAPH uri { ... pattern ... }
GRAPH var { ... pattern ... }
@@ -28,7 +29,7 @@
An RDF dataset can take a variety of forms. Two common setups are
to have the default graph being the union (the RDF merge) of all
-the named graphs and to have the default graph be an inventory of
+the named graphs or to have the default graph be an inventory of
the named graphs (where they came from, when they were read etc).
There are no limitations - one graph can be included twice under
different names, or some graphs may share triples with others.
@@ -60,7 +61,7 @@
That is, we have two small graphs describing some books, and we
have a default graph which records when these graphs were last
-read
+read.
Queries can be run with the command line application (this would be
all one line):
@@ -185,7 +186,7 @@
but an application can create datasets and then use them in many
queries.
-When described in the query, `FROM <i>url</i>` is used to identify
+When described in the query, `FROM ` <i>`url`</i> is used to identify
the contents to be in the default graph. There can be more than one
`FROM` clause and the default graph is result of reading each file
into the default graph. It is the RDF merge of the individual
@@ -197,7 +198,7 @@
given, the data can be read in from several places but none of them
become the graph name.
-`FROM NAMED <i>url</i>` is used to identify a named graph. The
+`FROM NAMED ` <i>`url`</i> is used to identify a named graph. The
graph is given the name *url* and the data is read from that
location. Multiple `FROM NAMED` clauses cause multiple graphs to be
added to the dataset.