axiom.class_axiom

OWL 2 class declaration and class axiom structural elements.

Classes

DeclarationClass

Element Declaration( Class( C ) ) of the OWL 2 structural specification.

SubClassOf

Element SubClassOf( CE1 CE2 ) of the OWL 2 structural specification.

ClassAssertion

Element ClassAssertion( CE a ) of the OWL 2 structural specification.

Module Contents

class axiom.class_axiom.DeclarationClass(/, **data: Any)

Bases: axiom.structural_element.DeclarationElement

Element Declaration( Class( C ) ) of the OWL 2 structural specification.

Triples:

C rdf:type owl:Class .
kind: Literal['DeclarationClass'] = 'DeclarationClass'
property rdf_type: rdflib.IdentifiedNode

rdf:type object for the declaration triple.

class axiom.class_axiom.SubClassOf(/, **data: Any)

Bases: axiom.structural_element.StructuralElement

Element SubClassOf( CE1 CE2 ) of the OWL 2 structural specification.

Both operands are RDF node references. If an operand is itself represented by another structural element, that element belongs to a separate partition.

Triples:

CE1 rdfs:subClassOf CE2 .
kind: Literal['SubClassOf'] = 'SubClassOf'
sub_class_expression: axiom.common.N3Resource
super_class_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode

type triple.

Type:

Canonical identifier for this element; SHOULD be the subject of a rdf

property as_triples: collections.abc.Sequence[axiom.common.Triple]

Triples representing this element as RDF; MUST NOT recurse into other axiom heads.

class axiom.class_axiom.ClassAssertion(/, **data: Any)

Bases: axiom.structural_element.StructuralElement

Element ClassAssertion( CE a ) of the OWL 2 structural specification.

Binary RDF form a rdf:type CE. Graph lifting claims a triple only when CE is a known class expression (declaration, parsed class expression / restriction, CE operand of an already-parsed axiom, or owl:Thing / owl:Nothing). Unknown type objects remain unconsumed.

Triples:

a rdf:type CE .
kind: Literal['ClassAssertion'] = 'ClassAssertion'
individual: axiom.common.N3Resource
class_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode

type triple.

Type:

Canonical identifier for this element; SHOULD be the subject of a rdf

property as_triples: collections.abc.Sequence[axiom.common.Triple]

Triples representing this element as RDF; MUST NOT recurse into other axiom heads.