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

Fix domain and range retrieval methods #126

Open
alkidbaci opened this issue Jan 9, 2025 · 0 comments
Open

Fix domain and range retrieval methods #126

alkidbaci opened this issue Jan 9, 2025 · 0 comments

Comments

@alkidbaci
Copy link
Collaborator

alkidbaci commented Jan 9, 2025

The following methods of Structural Reasoner search for "super_classes" when direct = False:

  • data_property_domains
  • object_property_domains
  • object_property_ranges

Instead they should search for "sub_classes".
Explanation: "rdfs:range" and "rdfs:domain" are restrictions for the specified property and as such it makes no sense that non-direct ranges/domains are extended to super classes because it contradicts the purpose of the restriction in the first place. As non-direct ranges/domains we should consider the subclasses of the specified range/domain.

data_property_ranges is missing and should be added.

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