Maybe you left out the last dot? Moving didn't help...

On 10/06/2019 15:21, Marco Neumann wrote:
gives me

ERROR riot                 :: [line: 76, col: 1 ] Triples not terminated by
DOT

also you could move the [] rdf:type fuseki:Server ; section to the top
below the prefix section

On Mon, Jun 10, 2019 at 1:09 PM Mikael Pesonen <[email protected]>
wrote:

Just noticed arq namespace is not defined but it is literal so shouldn't
matter?


@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#>  .
@prefix skos:<http://www.w3.org/2004/02/skos/core#>
@prefix fuseki:<http://jena.apache.org/fuseki#>  .
@prefix lsrm:<https://resource.lingsoft.fi/ns/resource_meta#> .

## Example of a TDB dataset and text index
## Initialize TDB
[] ja:loadClass "org.apache.jena.tdb.TDB" .
tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

## Initialize text query
[] ja:loadClass       "org.apache.jena.query.text.TextQuery" .
# A TextDataset is a regular dataset with a text index.
text:TextDataset      rdfs:subClassOf   ja:RDFDataset .
# Lucene index
text:TextIndexLucene  rdfs:subClassOf   text:TextIndex .


## ---------------------------------------------------------------


:text_dataset rdf:type     text:TextDataset ;
       text:dataset   :my_dataset ;
       text:index     <#indexLucene> ;
       .

# A TDB dataset used for RDF storage
:my_dataset rdf:type      tdb:DatasetTDB ;
       tdb:location "/home/text/tools/jena_data/" ;

#    tdb:unionDefaultGraph true ; # Optional
       .

# Text index description
<#indexLucene> a text:TextIndexLucene ;
       text:directory <file:/home/text/tools/jena_text_index/> ;
       text:entityMap <#entMap> ;
       text:storeValues true ;
       text:analyzer [ a text:StandardAnalyzer ] ;
# these mess up language search. why?
#     text:queryAnalyzer [ a text:KeywordAnalyzer ] ;
#     text:queryParser text:AnalyzingQueryParser ;
       text:multilingualSupport true ;
    .

<#entMap> a text:EntityMap ;
       text:defaultField     "prefLabel" ;
       text:entityField      "uri" ;
       text:uidField         "uid" ;
       text:langField        "lang" ;
       text:graphField       "graph" ;
       text:map (
            [ text:field "prefLabel" ; text:predicate skos:prefLabel ]
            [ text:field "altLabel"  ; text:predicate skos:altLabel ]
            [ text:field "content"  ; text:predicate lsrm:content ]
            ) .


[] rdf:type fuseki:Server ;
     ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "1000" ] ;
# 1 sec for testing
     .

<#service> rdf:type fuseki:Service ;
       fuseki:name                     "/ds" ;   # http://host:port/ds-ro
       fuseki:serviceQuery             "query" ;    # SPARQL query service
       fuseki:serviceQuery             "sparql" ;   # SPARQL query service
       fuseki:serviceUpdate            "update" ;   # SPARQL update service
       fuseki:serviceUpload            "upload" ;   # Non-SPARQL upload
service
       fuseki:serviceReadWriteGraphStore "data" ;     # SPARQL Graph
store protocol (read and write)
       fuseki:dataset           :text_dataset ;
       .



On 10/06/2019 15:03, Marco Neumann wrote:
please post the entire config file here for reference.

On Mon, Jun 10, 2019 at 12:49 PM Mikael Pesonen <
[email protected]>
wrote:

It was in default config:

@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#>  .
@prefix skos:<http://www.w3.org/2004/02/skos/core#>
@prefix fuseki:<http://jena.apache.org/fuseki#>  .


On 10/06/2019 14:46, Marco Neumann wrote:
did you set the ja: name space?

On Mon, Jun 10, 2019 at 11:04 AM Mikael Pesonen <
[email protected]>
wrote:

How do you set query timeout? I've tried on config.ttl

[] rdf:type fuseki:Server ;
         ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue
"3000"
] ;
and

:my_dataset rdf:type      tdb:DatasetTDB ;
         ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue
"3000"
] ;
but they don't work.


--
Lingsoft - 30 years of Leading Language Management

www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and
Writer's Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: [email protected]
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND


--
Lingsoft - 30 years of Leading Language Management

www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and
Writer's Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: [email protected]
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND


--
Lingsoft - 30 years of Leading Language Management

www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and
Writer's Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: [email protected]
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND



--
Lingsoft - 30 years of Leading Language Management

www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and Writer's 
Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: [email protected]
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND

Reply via email to