This is an automated email from the ASF dual-hosted git repository. andy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/jena.git
commit 2ccdc2981fe90be050d23f7215c12d60bfd5aa8e Author: Andy Seaborne <[email protected]> AuthorDate: Sat Oct 25 09:50:15 2025 +0100 Update configuration files in jena-text testing --- jena-text/testing/TextQuery/text-config-union.ttl | 14 ++--- jena-text/testing/TextQuery/text-config.ttl | 14 ++--- jena-text/text-config.ttl | 62 ----------------------- 3 files changed, 6 insertions(+), 84 deletions(-) diff --git a/jena-text/testing/TextQuery/text-config-union.ttl b/jena-text/testing/TextQuery/text-config-union.ttl index 9c6d16e6bf..877e212820 100644 --- a/jena-text/testing/TextQuery/text-config-union.ttl +++ b/jena-text/testing/TextQuery/text-config-union.ttl @@ -1,4 +1,6 @@ - ## Example of a TDB dataset and text index +## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 + +## 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#> . @@ -7,16 +9,6 @@ @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text: <http://jena.apache.org/text#> . -# TDB -[] ja:loadClass "org.apache.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:TextIndexLucene rdfs:subClassOf text:TextIndex . - ## --------------------------------------------------------------- ## This URI must be fixed - it's used to assemble the text dataset. diff --git a/jena-text/testing/TextQuery/text-config.ttl b/jena-text/testing/TextQuery/text-config.ttl index fb446de95e..461b147345 100644 --- a/jena-text/testing/TextQuery/text-config.ttl +++ b/jena-text/testing/TextQuery/text-config.ttl @@ -1,4 +1,6 @@ - ## Example of a TDB dataset and text index +## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 + +## 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#> . @@ -7,16 +9,6 @@ @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text: <http://jena.apache.org/text#> . -# TDB -[] ja:loadClass "org.apache.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:TextIndexLucene rdfs:subClassOf text:TextIndex . - ## --------------------------------------------------------------- ## This URI must be fixed - it's used to assemble the text dataset. diff --git a/jena-text/text-config.ttl b/jena-text/text-config.ttl deleted file mode 100644 index 878df55528..0000000000 --- a/jena-text/text-config.ttl +++ /dev/null @@ -1,62 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -## 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 "org.apache.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:TextIndexLucene 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 <#indexLucene> ; - . - -<#dataset> rdf:type tdb:DatasetTDB ; - tdb:location "--mem--" ; - ## In the example, this would hide the real default graph. - ##tdb:unionDefaultGraph true ; - . - -<#indexLucene> a text:TextIndexLucene ; - #text:directory <file:Lucene> ; - text:directory "mem" ; - text:entityMap <#entMap> ; - . - -<#entMap> a text:EntityMap ; - text:entityField "uri" ; - text:defaultField "text" ; ## Must be defined in the text:maps - text:map ( - # rdfs:label - [ text:field "text" ; text:predicate rdfs:label ] - ) .
