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

Better handling of multi-typing in SHACL generation algorithm #114

Open
tfrancart opened this issue Dec 19, 2023 · 0 comments
Open

Better handling of multi-typing in SHACL generation algorithm #114

tfrancart opened this issue Dec 19, 2023 · 0 comments
Labels

Comments

@tfrancart
Copy link
Contributor

We have some intelligence in the property shapes range calculation, to reduce the list of the classes we find: in AssignClassesVisitor, using ClassCacheProvider.

Now we should do the same to reduce the number of classes that are analyzed at the beginning of the script.

For each type T in all found types:

  • if T co-occurs with other types, then:
    • if T is a superset of all other types (it always occur with other types, and no instances of another occur without it), then:
      • if it is a union of all other types (no instance of T occur without a class in the other types list), then : ignore all other types (or add them as empty shapes, with a rdfs:subClassOf to T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant