axiom.class_axiom ================= .. py:module:: axiom.class_axiom .. autoapi-nested-parse:: OWL 2 class declaration and class axiom structural elements. Classes ------- .. autoapisummary:: axiom.class_axiom.DeclarationClass axiom.class_axiom.SubClassOf axiom.class_axiom.ClassAssertion Module Contents --------------- .. py:class:: DeclarationClass(/, **data: Any) Bases: :py:obj:`axiom.structural_element.DeclarationElement` Element ``Declaration( Class( C ) )`` of the OWL 2 structural specification. Triples:: C rdf:type owl:Class . .. py:attribute:: kind :type: Literal['DeclarationClass'] :value: 'DeclarationClass' .. py:property:: rdf_type :type: rdflib.IdentifiedNode ``rdf:type`` object for the declaration triple. .. py:class:: SubClassOf(/, **data: Any) Bases: :py:obj:`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 . .. py:attribute:: kind :type: Literal['SubClassOf'] :value: 'SubClassOf' .. py:attribute:: sub_class_expression :type: axiom.common.N3Resource .. py:attribute:: super_class_expression :type: axiom.common.N3Resource .. py:property:: name :type: rdflib.IdentifiedNode type triple. :type: Canonical identifier for this element; SHOULD be the subject of a rdf .. py:property:: as_triples :type: collections.abc.Sequence[axiom.common.Triple] Triples representing this element as RDF; MUST NOT recurse into other axiom heads. .. py:class:: ClassAssertion(/, **data: Any) Bases: :py:obj:`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 . .. py:attribute:: kind :type: Literal['ClassAssertion'] :value: 'ClassAssertion' .. py:attribute:: individual :type: axiom.common.N3Resource .. py:attribute:: class_expression :type: axiom.common.N3Resource .. py:property:: name :type: rdflib.IdentifiedNode type triple. :type: Canonical identifier for this element; SHOULD be the subject of a rdf .. py:property:: as_triples :type: collections.abc.Sequence[axiom.common.Triple] Triples representing this element as RDF; MUST NOT recurse into other axiom heads.