-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout Issue #433
Comments
Hi, maybe to start with, what are simplest queries for you? Do they run over the public endpoint? Did you try with our HDTs? We are making modifications to HDT, but currently they should not have a big impact ... Salut |
Thanks for the quick reply. The queries are this simple and they run instantly on Wikidata endpoint: PREFIX wd: <http://www.wikidata.org/entity/>
SELECT * WHERE {wd:Q84 ?s ?p .} No, I have not tries your HDT files but before downloading, I wanted to ask and make sure it is the only issue. Regards, Amin |
By checking your logs (http://crispy.ai.wu.ac.at/actuator/logfile) it seems that you have a 5s timeout limit. 10:18:25.710 [http-nio-1234-exec-7] INFO c.t.q.compiler.SparqlRepository - Running given sparql query: PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX cc: <http://creativecommons.org/ns#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>
PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wdref: <http://www.wikidata.org/reference/>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
PREFIX wdv: <http://www.wikidata.org/value/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT *
WHERE {
?city wdt:P31/wdt:P279* wd:Q515 .
?city wdt:P1082 ?pop .
FILTER (?pop > 1000)
}
ORDER BY DESC(?pop)
10:18:30.779 [http-nio-1234-exec-7] ERROR c.t.q.compiler.SparqlRepository - This exception was caught [org.eclipse.rdf4j.query.QueryEvaluationException: com.the_qa_company.qendpoint.store.exception.EndpointTimeoutException
Maybe you can try to increase the timeout value. The way we compute the results isn't the same as the one used by Wikidata (Blazegraph) so some queries might not be as fast. For example it seems to take 30s to answer your query. |
True, I didn't notice the 1k results. Can we know more about the hardware @anjomshoaa? (Disk/CPU) Also can you give us the header of the HDT? # PowerShell (Windows)
gc -TotalCount 19 your-hdt.hdt
# bash (Linux/MacOs)
head -n 19 your-hdt.hdt |
Thanks, the city population query was adopted from one of qEndpoint papers: Willerval, A., Bonifati, A., & Diefenbach, D. (2023, April). qEndpoint: A Wikidata SPARQL endpoint on commodity hardware. In Companion Proceedings of the ACM Web Conference 2023 (pp. 119-122). Also regarding the wd:Q84 query: if you insist querying after 4-5 times the results appear and then it will be fast for repeated queries. However, if you look for another entity it is slow again :-( |
Sure, here is the HDT header:
also CPU information (on the host where docker runs) is as follows:
Thanks! |
Also I wanted to add that HDT files are on a different server and mounted on the docker host. The mounted folder is used as volume by qEndpoint docker. |
This is not a good idea for a database, basically the bottleneck is the speed of transfer between the 2 servers. Do you have another option for this? |
Thanks for the feedback. I will move the data to the hosting server then. Hopefully this will solve the problem :-) |
After moving the HDT files to the same server as docker the issue with timeout is solved. Thank you for your support :-) |
Dear qEndpoint team,
We have installed an instance of qEndpoint docker (24G memory) using our existing Wikidata HDT files (not downloaded from your server) which is running here: http://crispy.ai.wu.ac.at/
However the sparql endpoint mostly returns no results with timeout error even for simplest queries. I wonder if it has something to do with the HDT files? Have you made any specific changes in your hosted HDT files?
Thanks!
Amin
The text was updated successfully, but these errors were encountered: