Dear all,
I have a (relatively large) dataset in Fuseki (default optimization
settings) which I attached the relevant triples. The following query
takes around 160ms (according to Fuseki logs):
construct {
?res ?resp ?reso .
}
where {
{
bdr:G844 ?rel ?res .
?res a bdo:Place .
?res ?resp ?reso .
}
}
It's not great (at all) but I can live with it, the problem is that if
I add this filter:
FILTER (?resp = skos:altLabel || ?resp = skos:prefLabel || ?resp =
skos:placeEvent || ?resp = bdo:placeLat || ?resp = bdo:placeLong ||
?resp = bdo:placeType || ?resp = bdo:placeLocatedIn || ?resp =
owl:sameAs || ?resp = tmp:entityScore)
which despite its length is quite simple, then the Fuseki logs
indicate 1200ms!! I reproduced it at least 20 times.
Attached are the complete slow and fast queries. Is there an obvious
error in my query or it a performance issue from Fuseki? If so I can
report it on JIRA.
Best,
--
Elie
@prefix : <http://purl.bdrc.io/ontology/core/> .
@prefix bdr: <http://purl.bdrc.io/resource/> .
@prefix bd: <http://www.bigdata.com/rdf#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix tmp: <http://purl.bdrc.io/ontology/tmp/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix text: <http://jena.apache.org/text#> .
@prefix adm: <http://purl.bdrc.io/ontology/admin/> .
@prefix bdo: <http://purl.bdrc.io/ontology/core/> .
@prefix bda: <http://purl.bdrc.io/admindata/> .
bdr:G4885 a bdo:Place ;
bdo:isRoot true ;
bdo:note bdr:NT2C050DAAD665 ;
bdo:placeLocatedIn bdr:G844 ;
bdo:placeType bdr:PT0051 ;
tmp:entityScore 1 ;
skos:altLabel "bya yul pho brang chos 'khor lhun po/"@bo-x-ewts ;
skos:prefLabel "chos 'khor lhun po/"@bo-x-ewts .
bdr:G1183 a bdo:Place ;
bdo:isRoot true ;
bdo:placeLocatedIn bdr:G844 ;
bdo:placeType bdr:PT0023 ;
tmp:entityScore 1 ;
skos:altLabel "bya yul 'bras gshong gi sbugs sman mkhar phan bde gling /"@bo-x-ewts ;
skos:prefLabel "sman mkhar phan bde gling /"@bo-x-ewts .
bdr:G3JT12502 a bdo:Place ;
bdo:isRoot true ;
bdo:placeEvent bdr:EVC99882BDAA50 ;
bdo:placeLocatedIn bdr:G844 ;
bdo:placeType bdr:PT0059 ;
skos:prefLabel "byams pa chos gling gzhis ka'i par khang /"@bo-x-ewts .
bdr:G229 a bdo:Place ;
adm:seeOtherSRC "https://sakyaresearch.org/places/48"^^<http://www.w3.org/2001/XMLSchema#anyURI> ;
bdo:isRoot true ;
bdo:note bdr:NT2C17FFD67799 ;
bdo:placeEvent bdr:EVE359BE1B46E9 ;
bdo:placeLocatedIn bdr:G844 , bdr:G1990 ;
bdo:placeType bdr:PT0037 ;
tmp:entityScore 11 ;
skos:prefLabel "bya yul dgon pa/"@bo-x-ewts , "Jayul Gonpa"@en .
bdr:G2CN10883 a bdo:Place ;
bdo:isRoot true ;
bdo:placeLocatedIn bdr:G844 , bdr:G1990 ;
bdo:placeType bdr:PT0059 ;
skos:prefLabel "bya yul rdo rje pho thog dgon gyi par khang /"@bo-x-ewts .
bdr:G3478 a bdo:Place ;
bdo:isRoot true ;
bdo:note bdr:NTDF30E80DA24B ;
bdo:placeLocatedIn bdr:G844 , bdr:G724 ;
bdo:placeType bdr:PT0037 ;
skos:altLabel "bya yul pad+ma bkod/"@bo-x-ewts ;
skos:prefLabel "pad+ma bkod/"@bo-x-ewts .
bdr:G843 a bdo:Place ;
adm:seeOtherSRC "https://sakyaresearch.org/places/704"^^<http://www.w3.org/2001/XMLSchema#anyURI> ;
bdo:isRoot true ;
bdo:note bdr:NT0B375E2BE146 , bdr:NT265A702879D8 , bdr:NT26133395426F ;
bdo:placeContains bdr:G4221 , bdr:G1362 , bdr:G46 , bdr:G4223 , bdr:G2CN11060 , bdr:G4224 , bdr:G3CN528 , bdr:G844 , bdr:G4887 ;
bdo:placeLocatedIn bdr:G1990 , bdr:G3176 ;
bdo:placeType bdr:PT0070 ;
tmp:entityScore 10 ;
skos:altLabel "bya yul/"@bo-x-ewts ;
skos:prefLabel "byar yul/"@bo-x-ewts .