-
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
DRILL cannot access classes_in_signature when we use TripleStore() to create the knowledge base #458
Comments
Could you give me the full code used to reproduce this error ? |
import json def start(args):
if name == 'main':
|
You are passing a reasoner to TripleStore :) kb=TripleStore(url="http://131.234.178.88:3030/Carcinogenesis/sparql")
for i in kb.classes_in_signature():
print(i) |
Oh I see thanks :) |
DRILL crashes when we use kb = TripleStore('http://131.234.178.88:3030/Carcinogenesis/sparql'):
Traceback (most recent call last):
File "/local/upb/users/q/quannian/profiles/unix/cs/Pycharm_Project/Ontolearn-0.7.3/Ontolearn/examples/concept_learning_drill_train.py", line 126, in
start(parser.parse_args())
File "/local/upb/users/q/quannian/profiles/unix/cs/Pycharm_Project/Ontolearn-0.7.3/Ontolearn/examples/concept_learning_drill_train.py", line 51, in start
drill.train(num_of_target_concepts=args.num_of_target_concepts,
File "/upb/users/q/quannian/profiles/unix/cs/.conda/envs/ontolearn-0.7.3/lib/python3.10/site-packages/ontolearn/learners/drill.py", line 258, in train
training_data = self.generate_learning_problems(num_of_target_concepts,
File "/upb/users/q/quannian/profiles/unix/cs/.conda/envs/ontolearn-0.7.3/lib/python3.10/site-packages/ontolearn/learners/drill.py", line 736, in generate_learning_problems
for i in self.kb.get_concepts():
File "/upb/users/q/quannian/profiles/unix/cs/.conda/envs/ontolearn-0.7.3/lib/python3.10/site-packages/ontolearn/triple_store.py", line 1177, in get_concepts
yield from self.reasoner.classes_in_signature()
AttributeError: 'str' object has no attribute 'classes_in_signature'
The text was updated successfully, but these errors were encountered: