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 2017/10/07 11:55:33 UTC
svn commit: r1811409 - in /jena/site/trunk/content/documentation/tdb2:
index.md tdb2_admin.md tdb2_cmds.md tdb2_fuseki.md tdb2_migration.md
Author: andy
Date: Sat Oct 7 11:55:33 2017
New Revision: 1811409
URL: http://svn.apache.org/viewvc?rev=1811409&view=rev
Log:
TDB2 documentation
Modified:
jena/site/trunk/content/documentation/tdb2/index.md
jena/site/trunk/content/documentation/tdb2/tdb2_admin.md
jena/site/trunk/content/documentation/tdb2/tdb2_cmds.md
jena/site/trunk/content/documentation/tdb2/tdb2_fuseki.md
jena/site/trunk/content/documentation/tdb2/tdb2_migration.md
Modified: jena/site/trunk/content/documentation/tdb2/index.md
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb2/index.md?rev=1811409&r1=1811408&r2=1811409&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb2/index.md (original)
+++ jena/site/trunk/content/documentation/tdb2/index.md Sat Oct 7 11:55:33 2017
@@ -1,4 +1,4 @@
-Title: Apache Jena - TDB2
+Title: TDB2
TDB2 is a component of
[Apache Jena](http://jena.apache.org) for RDF storage
@@ -20,7 +20,7 @@ of millions of triples.
- "Writer pays" - readers don't
- Datatypes of numerics preserved; `xsd:doubles` supported.
-*TDB2 is not compatible with TDB1*
+**TDB2 is not compatible with TDB1**
## Documentation
Modified: jena/site/trunk/content/documentation/tdb2/tdb2_admin.md
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb2/tdb2_admin.md?rev=1811409&r1=1811408&r2=1811409&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb2/tdb2_admin.md (original)
+++ jena/site/trunk/content/documentation/tdb2/tdb2_admin.md Sat Oct 7 11:55:33 2017
@@ -1,4 +1,4 @@
-Title: Apache Jena TDB2 - Database Administration.
+Title: TDB2 - Database Administration
@@backup
@@admin
Modified: jena/site/trunk/content/documentation/tdb2/tdb2_cmds.md
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb2/tdb2_cmds.md?rev=1811409&r1=1811408&r2=1811409&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb2/tdb2_cmds.md (original)
+++ jena/site/trunk/content/documentation/tdb2/tdb2_cmds.md Sat Oct 7 11:55:33 2017
@@ -1,4 +1,4 @@
-Title: Apache Jena TDB2 - Command line tools.
+Title: TDB2 - Command Line Tools
*TDB2 is not compatible with TDB1*
@@ -9,7 +9,6 @@ Do not run TDB1 tools on a TDB2 database
* `tdb2.tdbcompact`
* `tdb2.tdbloader`
* `tdb2.tdbquery`
-* `tdb2.tdbstats`
* `tdb2.tdbupdate`
Example usage:
@@ -17,6 +16,7 @@ Example usage:
```
java -cp JENA_HOME/lib/* tdb2.tdbloader --loc <DB location> file1 file2 ...
```
+
where "`JENA_HOME`" is the location of an unpacked Apache Jena binary
distribution.
Modified: jena/site/trunk/content/documentation/tdb2/tdb2_fuseki.md
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb2/tdb2_fuseki.md?rev=1811409&r1=1811408&r2=1811409&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb2/tdb2_fuseki.md (original)
+++ jena/site/trunk/content/documentation/tdb2/tdb2_fuseki.md Sat Oct 7 11:55:33 2017
@@ -1,4 +1,4 @@
-Title: Apache Jena TDB2 - Use with Fuseki2
+Title: DB2 - Use with Fuseki2
TDB2 is incorporated into Fuseki2, both in the full server, with UI, and
[Fuseki2 basic server](../fuseki2/fuseki-embedded.html#fuseki-basic).
@@ -6,42 +6,41 @@ TDB2 is incorporated into Fuseki2, both
In each case, the database needs to be defined in a configuration file,
either a completw server configuration (see below) or as an entry in the
`FUSEKI_BASE/configuration/` area of the full server.
-
Example complete server configuration file for full or basic servers:
The base URL will be of the form `http::/_host:port_/tdb2-database`.
-```
-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#>
-
-[] rdf:type fuseki:Server ;
- fuseki:services (
- <#service_tdb2>
- ) .
-
-<#service_tdb2> rdf:type fuseki:Service ;
- rdfs:label "TDB2 Service (RW)" ;
- fuseki:name "tdb2-database" ;
- 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 <#tdb_dataset_readwrite> ;
- .
-
-<#tdb_dataset_readwrite> rdf:type *tdb2:DatasetTDB2* ;
- *tdb2:location* "TDB2" ;
- ## This works: tdb2:unionDefaultGraph true ;
- .
-```
+Note the `tdb2:` prefix.
+
+ 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#>
+
+ [] rdf:type fuseki:Server ;
+ fuseki:services (
+ <#service_tdb2>
+ ) .
+
+ <#service_tdb2> rdf:type fuseki:Service ;
+ rdfs:label "TDB2 Service (RW)" ;
+ fuseki:name "tdb2-database" ;
+ 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 <#tdb_dataset_readwrite> ;
+ .
+
+ <#tdb_dataset_readwrite> rdf:type **tdb2:DatasetTDB2** ;
+ **tdb2:location** "TDB2" ;
+ ## This works: tdb2:unionDefaultGraph true ;
+ .
This example is available in [fuseki-tdb2.ttl](https://github.com/apache/jena/tree/master/jena-fuseki2/examples/fuseki-tdb2.ttl)
@@ -53,31 +52,27 @@ editting will be routed to the TDB2 data
For a service configuration in `FUSEKI_BASE/configuration/`:
-```
-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_tdb2> rdf:type fuseki:Service ;
- rdfs:label "TDB2 Service (RW)" ;
- fuseki:name "tdb2-database" ;
- 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 <#tdb_dataset_readwrite> ;
- .
-
-
-<#tdb_dataset_readwrite> rdf:type *tdb2:DatasetTDB2* ;
- *tdb2:location* "TDB2" ;
- ## This works: tdb2:unionDefaultGraph true ;
- .
-
-```
\ No newline at end of file
+ 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_tdb2> rdf:type fuseki:Service ;
+ rdfs:label "TDB2 Service (RW)" ;
+ fuseki:name "tdb2-database" ;
+ 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 <#tdb_dataset_readwrite> ;
+ .
+
+ <#tdb_dataset_readwrite> rdf:type **tdb2:DatasetTDB2** ;
+ tdb2:location "TDB2" ;
+ ## This works: tdb2:unionDefaultGraph true ;
+ .
Modified: jena/site/trunk/content/documentation/tdb2/tdb2_migration.md
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tdb2/tdb2_migration.md?rev=1811409&r1=1811408&r2=1811409&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tdb2/tdb2_migration.md (original)
+++ jena/site/trunk/content/documentation/tdb2/tdb2_migration.md Sat Oct 7 11:55:33 2017
@@ -1,4 +1,4 @@
-Title: Apache Jena TDB2 - Migration from TDB1.
+Title: TDB2 - Migration from TDB1
Simple migration of code is to use `TDB2Factory` in place of TDBFactory to create
datasets. `DatasetGraph` objects are now created via `DatabaseMgr`.
@@ -8,17 +8,15 @@ different packages. The API package for
Example code: **`TDB2Factory`**
-```
-import org.apache.jena.tdb2.TDB2Factory;
-...
+ import org.apache.jena.tdb2.TDB2Factory;
+ ...
- public static void main(String[] args) {
- Dataset ds = TDB2Factory.createDataset() ;
- Txn.execWrite(ds, ()->{
- RDFDataMgr.read(ds, "SomeData.ttl");
- }) ;
- Txn.execRead(dsg, ()->{
- RDFDataMgr.write(System.out, ds, Lang.TRIG) ;
- }) ;
- }
-```
+ public static void main(String[] args) {
+ Dataset ds = TDB2Factory.createDataset() ;
+ Txn.execWrite(ds, ()->{
+ RDFDataMgr.read(ds, "SomeData.ttl");
+ }) ;
+ Txn.execRead(dsg, ()->{
+ RDFDataMgr.write(System.out, ds, Lang.TRIG) ;
+ }) ;
+ }