blob: 225a36c52de7891444ba481f4c360b450b367f6e [file] [log] [blame]
## 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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#>
PREFIX tdb2: <http://jena.apache.org/2016/tdb#>
PREFIX text: <http://jena.apache.org/text#>
[] rdf:type fuseki:Server ;
fuseki:services (
:service
) .
## Service description for "/dataset"
## with a TDB2 dataset and a text index.
:service rdf:type fuseki:Service ;
fuseki:name "dataset" ;
fuseki:endpoint [
fuseki:operation fuseki:query ;
fuseki:name "sparql"
];
fuseki:endpoint [
fuseki:operation fuseki:query ;
fuseki:name "query"
] ;
fuseki:endpoint [
fuseki:operation fuseki:update ;
fuseki:name "update"
] ;
fuseki:endpoint [
fuseki:operation fuseki:gsp-r ;
fuseki:name "get"
] ;
fuseki:endpoint [
fuseki:operation fuseki:gsp-rw ;
fuseki:name "data"
] ;
fuseki:endpoint [
fuseki:operation fuseki:upload ;
fuseki:name "upload"
] ;
fuseki:dataset :text_dataset ;
.
## ---------------------------------------------------------------
## Confiure a dataset with a text index.
## See
## https://jena.apache.org/documentation/query/text-query.html
## for details
:text_dataset rdf:type text:TextDataset ;
text:dataset :base_dataset ;
text:index :indexLucene ;
.
:base_dataset rdf:type tdb2:DatasetTDB2 ;
tdb2:location "DB2"
.
:indexLucene a text:TextIndexLucene ;
# File location of index
text:directory <file:Lucene> ;
text:entityMap :entMap ;
.
<#entMap> a text:EntityMap ;
text:entityField "uri" ;
## Must be defined in the text:map
text:defaultField "text" ;
## Enable deleting of text index entries.
text:uidField "uid" ;
text:map (
# rdfs:label
[ text:field "text" ; text:predicate rdfs:label ]
)
.