DisjointClasses

class DisjointClasses(class_expressions: Sequence[ClassExpression | URIRef | Reference | Referenced | str | IdentifierBox], *, annotations: list[Annotation] | None = None)[source]

Bases: ClassAxiom

A class axiom defined in 9.1.3 “Disjoint Classes”.

>>> DisjointClasses("a:Boy a:Girl".split())

Initialize a disjoint classes axiom.

Methods Summary

to_rdflib_node(graph, converter)

Represent the disjoint classes axiom for RDF.

Methods Documentation

to_rdflib_node(graph: Graph, converter: Converter) IdentifiedNode[source]

Represent the disjoint classes axiom for RDF.