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

Definition of Classes in Signature #445

Open
Demirrr opened this issue Sep 27, 2024 · 0 comments
Open

Definition of Classes in Signature #445

Demirrr opened this issue Sep 27, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Demirrr
Copy link
Member

Demirrr commented Sep 27, 2024

kb=TripleStoreKnowledgeBase()
for i in kb.concepts:
     ...

Returns the results of self.ontology.classes_in_signature()

def classes_in_signature(self) -> Iterable[OWLClass]:
       query = owl_prefix + "SELECT DISTINCT ?x WHERE {?x a owl:Class.}"
       yield from get_results_from_ts(self.url, query, OWLClass)

Should we relaxed this assumption by returning things that are rdfs:Class ?

A user may set a flag to true (e.g. kb=TripleStoreKnowledgeBase(inferrence=True), we can very well find a better name :) )

@Demirrr Demirrr added the question Further information is requested label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant