-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
I was trying to get an abstraction for uniprot and ran
abstractor -s https://sparql.uniprot.org/sparql -o uniprot_abstraction.all.ttl -m all -vvvvv
The log reads:
DEBUG:root:Get entities and relation
DEBUG:root:
SELECT DISTINCT ?source_entity ?relation ?target_entity ?mother_source ?mother_target
WHERE {
# Get entities
?instance_of_source a ?source_entity .
?instance_of_target a ?target_entity .
# Relations
?instance_of_source ?relation ?instance_of_target .
OPTIONAL {{
?source_entity rdfs:subClassOf ?mother_source .
}}
OPTIONAL {{
?target_entity rdfs:subClassOf ?mother_target .
}}
}
After some time (~45 min == uniprot query timeout limit) it finally errors out with
Traceback (most recent call last):
File "/home/grotec/.conda/envs/default/bin/abstractor", line 118, in <module>
Abstractor().main()
File "/home/grotec/.conda/envs/default/bin/abstractor", line 62, in main
rdf.add_entities_and_relations(sparql.process_query(library.entities_and_relations))
File "/home/grotec/.conda/envs/default/lib/python3.7/site-packages/libabstractor/SparqlQuery.py", line 182, in process_query
return self.parse_sparql_results(self.execute_sparql_query(query))
File "/home/grotec/.conda/envs/default/lib/python3.7/site-packages/libabstractor/SparqlQuery.py", line 99, in execute_sparql_query
return endpoint.query().convert()
File "/home/grotec/.conda/envs/default/lib/python3.7/site-packages/SPARQLWrapper/Wrapper.py", line 1107, in query
return QueryResult(self._query())
File "/home/grotec/.conda/envs/default/lib/python3.7/site-packages/SPARQLWrapper/Wrapper.py", line 1087, in _query
raise e
File "/home/grotec/.conda/envs/default/lib/python3.7/site-packages/SPARQLWrapper/Wrapper.py", line 1073, in _query
response = urlopener(request)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/grotec/.conda/envs/default/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Proxy Error
Is this behaviour to expected? If so, user should be made aware of it. If not, can it be fixed?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels