Tested that too by placing some garbage in the config and it's the
correct one.
On 11/06/2019 01:33, Marco Neumann wrote:
your config works for me as well with the correct queryTimeout time.
Are you picking up another config.ttl file maybe by way of FUSEKI_CONF etc?
On Mon, Jun 10, 2019 at 1:55 PM Mikael Pesonen <[email protected]>
wrote:
Also tested without Jena text, just in case:
SELECT * WHERE
{
GRAPH <http://www.yso.fi/onto/yso/>
{
?concept <http://www.w3.org/2004/02/skos/core#broader>* ?c2 .
?concept <http://www.w3.org/2004/02/skos/core#prefLabel>
?prefLabel .
}
}
limit 999
YSO is downloadable here: https://finto.fi/yso/en/ at the end of page.
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
--
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