You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2019/02/15 12:10:56 UTC
[jena] branch master updated: Some more examples
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/master by this push:
new bd09dcf Some more examples
bd09dcf is described below
commit bd09dcfbc9653756cb64a5b956d77d04ee79ce55
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Fri Feb 15 12:10:52 2019 +0000
Some more examples
---
jena-fuseki2/examples/tdb2-select-graphs-alt.ttl | 55 ++++++++++++++++++++++++
jena-fuseki2/examples/tdb2-select-graphs.ttl | 51 ++++++++++++++++++++++
2 files changed, 106 insertions(+)
diff --git a/jena-fuseki2/examples/tdb2-select-graphs-alt.ttl b/jena-fuseki2/examples/tdb2-select-graphs-alt.ttl
new file mode 100644
index 0000000..8f3a165
--- /dev/null
+++ b/jena-fuseki2/examples/tdb2-select-graphs-alt.ttl
@@ -0,0 +1,55 @@
+## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
+
+PREFIX : <#>
+PREFIX fuseki: <http://jena.apache.org/fuseki#>
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX tdb2: <http://jena.apache.org/2016/tdb#>
+PREFIX ja: <http://jena.hpl.hp.com/2005/11/Assembler#>
+
+<#service_tdb> rdf:type fuseki:Service ;
+ rdfs:label "Selection of TDB2 graphs" ;
+ fuseki:name "ds2" ;
+ fuseki:serviceQuery "query" ;
+ fuseki:serviceQuery "sparql" ;
+ fuseki:serviceUpdate "update" ;
+ fuseki:serviceUpload "upload" ;
+ fuseki:serviceReadWriteGraphStore "data" ;
+ # A separate read-only graph store endpoint:
+ fuseki:serviceReadGraphStore "get" ;
+ fuseki:dataset <#dataset> ;
+ .
+
+
+<#dataset> rdf:type ja:RDFDataset ;
+ ja:defaultGraph <#graph> ;
+ ja:namedGraph [
+ ja:graphName <https://example/ng1> ;
+ ja:graph <#graph2>
+ ];
+ ja:namedGraph [
+ ja:graphName <https://example/ng2> ;
+ ja:graph <#graph3>
+ ];
+ .
+
+## Graphs out of DB2.
+
+<#graph> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "urn:x-arq:UnionGraph" ;
+ tdb2:dataset <#DB2> ;
+ .
+
+<#graph2> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "https://example/ng1" ;
+ tdb2:dataset <#DB2> ;
+ .
+<#graph3> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "https://example/ng" ;
+ tdb2:dataset <#DB2> ;
+ .
+
+<#DB2> rdf:type tdb2:DatasetTDB2 ;
+ tdb2:location "DB2" ;
+ .
diff --git a/jena-fuseki2/examples/tdb2-select-graphs.ttl b/jena-fuseki2/examples/tdb2-select-graphs.ttl
new file mode 100644
index 0000000..1e66b6d
--- /dev/null
+++ b/jena-fuseki2/examples/tdb2-select-graphs.ttl
@@ -0,0 +1,51 @@
+## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
+
+PREFIX : <#>
+PREFIX fuseki: <http://jena.apache.org/fuseki#>
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+PREFIX tdb2: <http://jena.apache.org/2016/tdb#>
+PREFIX ja: <http://jena.hpl.hp.com/2005/11/Assembler#>
+
+<#service_tdb> rdf:type fuseki:Service ;
+ rdfs:label "Selection of TDB2 graphs" ;
+ fuseki:name "ds2" ;
+ fuseki:serviceQuery "query" ;
+ fuseki:serviceQuery "sparql" ;
+ fuseki:serviceUpdate "update" ;
+ fuseki:serviceUpload "upload" ;
+ fuseki:serviceReadWriteGraphStore "data" ;
+ # A separate read-only graph store endpoint:
+ fuseki:serviceReadGraphStore "get" ;
+ fuseki:dataset <#dataset> ;
+ .
+
+
+<#dataset> rdf:type ja:RDFDataset ;
+ ja:defaultGraph <#graph> ;
+ ja:namedGraph [
+ ja:graphName <https://example/ng1> ;
+ ja:graph <#graph2>
+ ];
+ ja:namedGraph [
+ ja:graphName <https://example/ng2> ;
+ ja:graph <#graph3>
+ ];
+ .
+
+## Graphs out of DB2.
+
+<#graph> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "urn:x-arq:UnionGraph" ;
+ tdb2:location "DB2" ;
+ .
+
+<#graph2> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "https://example/ng1" ;
+ tdb2:location "DB2" ;
+ .
+<#graph3> rdf:type tdb2:GraphTDB2 ;
+ tdb2:graphName "https://example/ng" ;
+ tdb2:location "DB2" ;
+ .