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/06/27 00:54:10 UTC
svn commit: r1497150 -
/jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl
Author: andy
Date: Wed Jun 26 22:54:10 2013
New Revision: 1497150
URL: http://svn.apache.org/r1497150
Log:
Test material
Added:
jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl
Added: jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl?rev=1497150&view=auto
==============================================================================
--- jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl (added)
+++ jena/trunk/jena-text/testing/TextQuery/text-solr-config.ttl Wed Jun 26 22:54:10 2013
@@ -0,0 +1,45 @@
+ ## Example of a TDB dataset and text index
+
+@prefix : <http://localhost/jena_example/#> .
+@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#> .
+@prefix text: <http://jena.apache.org/text#> .
+
+# TDB
+[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
+tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
+tdb:GraphTDB rdfs:subClassOf ja:Model .
+
+# Text
+[] ja:loadClass "org.apache.jena.query.text.TextQuery" .
+text:TextDataset rdfs:subClassOf ja:RDFDataset .
+text:TextIndexSolr rdfs:subClassOf text:TextIndex .
+
+## ---------------------------------------------------------------
+## This URI must be fixed - it's used to assemble the text dataset.
+
+:text_dataset rdf:type text:TextDataset ;
+ text:dataset <#dataset> ;
+ ##text:index <#indexSolr> ;
+ text:index <#indexLucene> ;
+ .
+
+<#dataset> rdf:type tdb:DatasetTDB ;
+ tdb:location "--mem--" ;
+ .
+
+<#indexLucene> a text:TextIndexSolr ;
+ text:server <embedded:SolrARQ> ;
+ text:entityMap <#entMap> ;
+ .
+
+<#entMap> a text:EntityMap ;
+ text:entityField "uri" ;
+ text:defaultField "label" ; ## Must be defined in the text:maps
+ text:map (
+ # rdfs:label
+ [ text:field "label" ; text:predicate rdfs:label ]
+ [ text:field "comment" ; text:predicate rdfs:comment ]
+ ) .