Skip to content
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

Hypothesis pattern breaks and freezes the whole system #78

Open
mosoriob opened this issue Aug 5, 2022 · 0 comments
Open

Hypothesis pattern breaks and freezes the whole system #78

mosoriob opened this issue Aug 5, 2022 · 0 comments

Comments

@mosoriob
Copy link
Contributor

mosoriob commented Aug 5, 2022

Describe the bug

The SPARQL query generated by the following hypothesis pattern is too heavy. (117,649 entries)

PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX disk: <http://disk-project.org/ontology/disk#>
PREFIX sqo: <https://w3id.org/sqo#>
PREFIX hyp: <http://disk-project.org/ontology/hypothesis#>
PREFIX neuro: <https://w3id.org/disk/ontology/enigma_hypothesis#>

SELECT DISTINCT * 
FROM <http://endpoint.mint.isi.edu/temp/data/>
WHERE { 
?goal hyp:associatedWith ?WeatherSensor1.
?goal hyp:associatedWith ?WeatherSensor2.
?goal hyp:associatedWith ?WeatherSensor3.
?goal hyp:associatedWith ?WeatherSensor4.
?goal hyp:associatedWith ?WeatherSensor5.
?goal hyp:associatedWith ?WeatherSensor6.
}

Problems:

  1. The query doesn't end because ontapi doesn't support timeout
  2. If the query ends, generate 117,649 matches.
mosoriob added a commit to KnowledgeCaptureAndDiscovery/QuestionOntology that referenced this issue Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant