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 2013/03/21 16:47:33 UTC
svn commit: r1459368 - in /jena/trunk/jena-fuseki: config-examples.ttl
config-inf-tdb.ttl
Author: andy
Date: Thu Mar 21 15:47:32 2013
New Revision: 1459368
URL: http://svn.apache.org/r1459368
Log: (empty)
Added:
jena/trunk/jena-fuseki/config-inf-tdb.ttl
Modified:
jena/trunk/jena-fuseki/config-examples.ttl
Modified: jena/trunk/jena-fuseki/config-examples.ttl
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/config-examples.ttl?rev=1459368&r1=1459367&r2=1459368&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/config-examples.ttl (original)
+++ jena/trunk/jena-fuseki/config-examples.ttl Thu Mar 21 15:47:32 2013
@@ -96,10 +96,11 @@ tdb:GraphTDB rdfs:subClassOf ja:Mode
.
# ---- RDFS Inference models
-# Thiese must be incorporate in a dataset in order to use them.
+# These must be incorporate in a dataset in order to use them.
# All in one file.
-<#model_inf_1> rdfs:label "Inf-1" ;
+<#model_inf_1> a ja:InfModel ;
+ rdfs:label "Inf-1" ;
ja:baseModel
[ a ja:MemoryModel ;
ja:content [ja:externalContent <file:Data/test_data_rdfs.ttl>] ;
@@ -110,7 +111,8 @@ tdb:GraphTDB rdfs:subClassOf ja:Mode
# Separate ABox and TBox
-<#model_inf_2> rdfs:label "Inf-2" ;
+<#model_inf_2> a ja:InfModel ;
+ rdfs:label "Inf-2" ;
ja:baseModel
[ a ja:MemoryModel ;
ja:content [ja:externalContent <file:Data/test_abox.ttl>] ;
Added: jena/trunk/jena-fuseki/config-inf-tdb.ttl
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/config-inf-tdb.ttl?rev=1459368&view=auto
==============================================================================
--- jena/trunk/jena-fuseki/config-inf-tdb.ttl (added)
+++ jena/trunk/jena-fuseki/config-inf-tdb.ttl Thu Mar 21 15:47:32 2013
@@ -0,0 +1,52 @@
+# 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 tdb: <http://jena.hpl.hp.com/2008/tdb#> .
+@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
+
+[] rdf:type fuseki:Server ;
+ fuseki:services (
+ <#service1>
+ ) .
+
+# Custom code.
+[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
+
+# TDB
+tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
+tdb:GraphTDB rdfs:subClassOf ja:Model .
+
+## ---------------------------------------------------------------
+## Service with only SPARQL query on an inference model.
+## Inference model bbase data in TDB.
+
+<#service1> rdf:type fuseki:Service ;
+ fuseki:name "inf" ; # http://host/inf
+ fuseki:serviceQuery "sparql" ; # SPARQL query service
+ fuseki:serviceUpdate "update" ;
+ fuseki:dataset <#dataset> ;
+ .
+
+<#dataset> rdf:type ja:RDFDataset ;
+ ja:defaultGraph <#model_inf> ;
+ .
+
+<#model_inf> a ja:InfModel ;
+ ja:baseModel <#tdbGraph> ;
+ ja:reasoner [
+ ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
+ ] .
+
+<#tdbDataset> rdf:type tdb:DatasetTDB ;
+ tdb:location "DB" ;
+ # If the unionDefaultGraph is used, then the "update" service should be removed.
+ # The unionDefaultGraph is read only.
+ # tdb:unionDefaultGraph true ;
+ .
+
+<#tdbGraph> rdf:type tdb:GraphTDB ;
+ tdb:dataset <#tdbDataset> .