jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1536003 - in /jena/trunk/jena-text: data.ttl src/main/java/examples/JenaTextExample1.java text-config.ttl
Date Sat, 26 Oct 2013 16:22:19 GMT
Author: andy
Date: Sat Oct 26 16:22:19 2013
New Revision: 1536003

URL: http://svn.apache.org/r1536003
Log:
Update example 1.

Added:
    jena/trunk/jena-text/data.ttl
Modified:
    jena/trunk/jena-text/src/main/java/examples/JenaTextExample1.java
    jena/trunk/jena-text/text-config.ttl

Added: jena/trunk/jena-text/data.ttl
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/data.ttl?rev=1536003&view=auto
==============================================================================
--- jena/trunk/jena-text/data.ttl (added)
+++ jena/trunk/jena-text/data.ttl Sat Oct 26 16:22:19 2013
@@ -0,0 +1,4 @@
+@prefix :        <http://localhost/jena_example/#> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+:T1 rdfs:label "X0 X1 X2" .
+:T2 rdfs:label "X10 X11 X12" .

Modified: jena/trunk/jena-text/src/main/java/examples/JenaTextExample1.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/src/main/java/examples/JenaTextExample1.java?rev=1536003&r1=1536002&r2=1536003&view=diff
==============================================================================
--- jena/trunk/jena-text/src/main/java/examples/JenaTextExample1.java (original)
+++ jena/trunk/jena-text/src/main/java/examples/JenaTextExample1.java Sat Oct 26 16:22:19
2013
@@ -75,7 +75,7 @@ public class JenaTextExample1
         log.info("Construct text dataset using an assembler description") ;
         // There are two datasets in the configuration:
         // the one for the base data and one with text index.
-        // Therafore we need to name the dataset we are interested in. 
+        // Therefore we need to name the dataset we are interested in. 
         Dataset ds = DatasetFactory.assemble("text-config.ttl", "http://localhost/jena_example/#text_dataset")
;
         return ds ;
     }
@@ -88,7 +88,6 @@ public class JenaTextExample1
         try {
             Model m = dataset.getDefaultModel() ;
             RDFDataMgr.read(m, file) ;
-            //RDFDataMgr.read(dataset, "D.ttl") ;
             dataset.commit() ;
         } finally { dataset.end() ; }
         

Modified: jena/trunk/jena-text/text-config.ttl
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/text-config.ttl?rev=1536003&r1=1536002&r2=1536003&view=diff
==============================================================================
--- jena/trunk/jena-text/text-config.ttl (original)
+++ jena/trunk/jena-text/text-config.ttl Sat Oct 26 16:22:19 2013
@@ -29,7 +29,8 @@ text:TextIndexLucene  rdfs:subClassOf   
 
 <#dataset> rdf:type      tdb:DatasetTDB ;
     tdb:location "--mem--" ;
-    tdb:unionDefaultGraph true ;
+    ## In the example, this would hide the real default graph.
+    ##tdb:unionDefaultGraph true ;
     .
 
 <#indexLucene> a text:TextIndexLucene ;



Mime
View raw message