triplemodel.io.rdfs
RDFS helpers: subclass dispatch, transitive graph walks.
- triplemodel.io.rdfs.resolve_model_class_with_rdfs(graph, subject, *, use_subclass=True)[source]
Pick the most specific registered class for
subject’s types.
- triplemodel.io.rdfs.subject_type_closure(graph, subject)[source]
Return
rdf:typeIRIs forsubjectplusrdfs:subClassOfancestors.
- triplemodel.io.rdfs.subclass_uris(graph, type_uri)[source]
Return
type_uriand all superclasses viardfs:subClassOf.