Server is started:

/usr/bin/java -Dlog4j.configuration=file:/home/text/tools/apache-jena-fuseki-3.11.0/log4j.properties -Xmx5600M -jar fuseki-server.jar --update --port 3030 --config=config.ttl

and testing with Fuseki web gui. Log output:

[2019-06-10 15:26:40] Server     INFO  Apache Jena Fuseki 3.11.0
[2019-06-10 15:26:40] Config     INFO FUSEKI_HOME=/home/text/tools/apache-jena-fuseki-3.11.0/. [2019-06-10 15:26:40] Config     INFO FUSEKI_BASE=/home/text/tools/apache-jena-fuseki-3.11.0/run [2019-06-10 15:26:40] Config     INFO  Shiro file: file:///home/text/tools/apache-jena-fuseki-3.11.0/run/shiro.ini
[2019-06-10 15:26:41] Config     INFO  Configuration file: config.ttl
[2019-06-10 15:26:41] Config     INFO  Register: /ds
[2019-06-10 15:26:41] Server     INFO  Started 2019/06/10 15:26:41 EEST on port 3030 [2019-06-10 15:26:54] Fuseki     INFO  [1] POST http://semantic-dev.lingsoft.fi/ds/sparql [2019-06-10 15:26:54] Fuseki     INFO  [1] Query = PREFIX text: <http://jena.apache.org/text#> PREFIX lsrm: <https://resource.lingsoft.fi/ns/resource_meta#> PREFIX dcterms:    <http://purl.org/dc/terms/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX text: <http://jena.apache.org/text#> PREFIX lsrm: <https://resource.lingsoft.fi/ns/resource_meta#> PREFIX dcterms:    <http://purl.org/dc/terms/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>  SELECT ?s ?p ?o ?content WHERE {     GRAPH <https://resource.lingsoft.fi/416c3258-4974-4ab1-ae3d-115961923010/> {         { SELECT * WHERE {             (?s ?score ?content) text:query (lsrm:content "kieliteknologia" ) .             ?s dcterms:created ?date FILTER (?date < "2020-02-21T08:15:22Z"^^xsd:dateTime)         } OFFSET 1000 LIMIT 1000}         ?s ?p ?o FILTER ( ?p != lsrm:content)     } } [2019-06-10 15:26:55] TextIndexLucene WARN  Unknown query parser type 'QueryParser'. Defaulting to standard QueryParser
[2019-06-10 15:27:19] Fuseki     INFO  [1] 200 OK (24.421 s)



On 10/06/2019 15:20, Andy Seaborne wrote:
How are you testing it?

https://github.com/apache/jena/blob/master/jena-fuseki2/examples/service-tdb1-mem.ttl

times out as expected for me.

s-query --service http://localhost:3030/MEM
  'PREFIX afn: <http://jena.apache.org/ARQ/function#>
     ASK{ BIND (afn:wait(2000) AS ?X ) }'


    Andy

On 10/06/2019 13:08, Mikael Pesonen wrote:

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

No


@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

Reply via email to