Skip to content

Commit bd9116c

Browse files
committed
removed unnecessary filters
1 parent d6a789a commit bd9116c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ontolearn/triple_store.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ def send_http_request_to_ts_and_fetch_results(triplestore_address: str, query: s
132132
# return [return_type(IRI.create(i['x']['value'])) for i in
133133
# response.json()['results']['bindings']]
134134
except JSONDecodeError as e:
135-
raise JSONDecodeError(
136-
f"Something went wrong with decoding JSON from the response. Check for typos in "
137-
f"the `triplestore_address` = '{triplestore_address}' otherwise the error is likely "
138-
f"caused by an internal issue. \n -->Error: {e}"
139-
)
135+
raise RuntimeError(
136+
f"Something went wrong with decoding JSON from the response. "
137+
f"Check for typos in the `triplestore_address` = '{triplestore_address}' "
138+
f"otherwise the error is likely caused by an internal issue."
139+
f"\n -->Error: {e}"
140+
f"\n Response text: {response.text}"
141+
) from e
140142

141143

142144
def unwrap(result: Response):
@@ -215,8 +217,6 @@ def individuals_in_signature(self, implicit_individuals:bool = True) -> Iterable
215217
WHERE {
216218
?x ?p ?o .
217219
FILTER NOT EXISTS { ?x a owl:Class }
218-
FILTER NOT EXISTS { ?x a rdfs:Class }
219-
FILTER NOT EXISTS { ?x a rdf:Property }
220220
FILTER NOT EXISTS { ?x a owl:ObjectProperty }
221221
FILTER NOT EXISTS { ?x a owl:DatatypeProperty }
222222
FILTER NOT EXISTS { ?x a owl:AnnotationProperty }

0 commit comments

Comments
 (0)