Skip to content

best practice for rdfs:subClassOf closure #1549

Answered by ashleysommer
danbri asked this question in Q&A
Discussion options

You must be logged in to vote

@danbri
The owl-rl project can operate in RDFS mode, which will expand a graph to inference all RDFS axioms including subClassOf and subPropertyOf. To answer your first question, I believe all graph expanders built on rdflib use the transitiveClosure() mechanism.

I see in your examples you're using PySHACL. Note, pySHACL has owl-rl built in, you can expand your graph before validation automatically using inference="rdfs" when calling validate().

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1137 on December 25, 2021 15:32.