axiom.property_axiom

OWL 2 property, key, and individual-difference structural axioms.

Binary relational axioms mimic SubClassOf (one vocabulary triple over two node references). Seq-backed forms mimic owned-list patterns such as DisjointUnion and DisjointClassesNary.

Binary relational:

Seq-backed:

Classes

SubObjectPropertyOf

Element SubObjectPropertyOf( OPE1 OPE2 ) of the OWL 2 structural specification.

SubDataPropertyOf

Element SubDataPropertyOf( DPE1 DPE2 ) of the OWL 2 structural specification.

SubObjectPropertyOfChain

Element SubObjectPropertyOf( ObjectPropertyChain( OPE1 ... OPEn ) OPE ).

ObjectPropertyDomain

Element ObjectPropertyDomain( OPE CE ) of the OWL 2 structural specification.

ObjectPropertyRange

Element ObjectPropertyRange( OPE CE ) of the OWL 2 structural specification.

DataPropertyDomain

Element DataPropertyDomain( DPE CE ) of the OWL 2 structural specification.

DataPropertyRange

Element DataPropertyRange( DPE DR ) of the OWL 2 structural specification.

InverseObjectProperties

Element InverseObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

DatatypeDefinition

Element DatatypeDefinition( DT DR ) of the OWL 2 structural specification.

EquivalentObjectProperties

Element EquivalentObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

EquivalentDataProperties

Element EquivalentDataProperties( DPE1 DPE2 ) of the OWL 2 structural specification.

DisjointObjectProperties

Element DisjointObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

DisjointDataProperties

Element DisjointDataProperties( DPE1 DPE2 ) of the OWL 2 structural specification.

DisjointObjectPropertiesNary

Element DisjointObjectProperties( OPE1 ... OPEn ), n > 2.

DisjointDataPropertiesNary

Element DisjointDataProperties( DPE1 ... DPEn ), n > 2.

HasKey

Element HasKey( CE ( OPE1 ... OPEm ) ( DPE1 ... DPEn ) ).

ObjectPropertyAssertion

Element ObjectPropertyAssertion( OPE a1 a2 ) of the OWL 2 structural specification.

DataPropertyAssertion

Element DataPropertyAssertion( DPE a lt ) of the OWL 2 structural specification.

NegativeObjectPropertyAssertion

Element NegativeObjectPropertyAssertion( OPE a1 a2 ) of the OWL 2 structural specification.

NegativeDataPropertyAssertion

Element NegativeDataPropertyAssertion( DPE a lt ) of the OWL 2 structural specification.

DifferentIndividuals

Element DifferentIndividuals( a1 a2 ) of the OWL 2 structural specification.

SameIndividual

Element SameIndividual( a1 a2 ) of the OWL 2 structural specification.

DifferentIndividualsNary

Element DifferentIndividuals( a1 ... an ), n > 2.

Module Contents

class axiom.property_axiom.SubObjectPropertyOf

Bases: axiom.structural_element.StructuralElement

Element SubObjectPropertyOf( OPE1 OPE2 ) of the OWL 2 structural specification.

Both operands are RDF node references. This is the simple (non-chain) form; property chains use SubObjectPropertyOfChain.

Triples:

OPE1 rdfs:subPropertyOf OPE2 .
kind: Literal['SubObjectPropertyOf'] = 'SubObjectPropertyOf'
sub_object_property_expression: axiom.common.N3Resource
super_object_property_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.SubDataPropertyOf

Bases: axiom.structural_element.StructuralElement

Element SubDataPropertyOf( DPE1 DPE2 ) of the OWL 2 structural specification.

Both operands are data property IRIs. The RDF mapping shares rdfs:subPropertyOf with SubObjectPropertyOf; graph lifting prefers the data form when the subject is typed owl:DatatypeProperty.

Triples:

DPE1 rdfs:subPropertyOf DPE2 .
kind: Literal['SubDataPropertyOf'] = 'SubDataPropertyOf'
sub_data_property_expression: axiom.common.N3IRIRef
super_data_property_expression: axiom.common.N3IRIRef
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.SubObjectPropertyOfChain

Bases: axiom.structural_element.StructuralElement

Element SubObjectPropertyOf( ObjectPropertyChain( OPE1 ... OPEn ) OPE ).

object_property_expression is the super-property. property_chain is an owned Seq of chain operands (n >= 2) sharing this element’s context. The OWL 2 RDF mapping does not emit an rdf:type triple.

Triples:

OPE owl:propertyChainAxiom T(SEQ OPE1 ... OPEn) .
kind: Literal['SubObjectPropertyOfChain'] = 'SubObjectPropertyOfChain'
object_property_expression: axiom.common.N3Resource
property_chain: axiom.structural_element.Seq
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.ObjectPropertyDomain

Bases: axiom.structural_element.StructuralElement

Element ObjectPropertyDomain( OPE CE ) of the OWL 2 structural specification.

Triples:

OPE rdfs:domain CE .
kind: Literal['ObjectPropertyDomain'] = 'ObjectPropertyDomain'
object_property_expression: axiom.common.N3Resource
class_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.ObjectPropertyRange

Bases: axiom.structural_element.StructuralElement

Element ObjectPropertyRange( OPE CE ) of the OWL 2 structural specification.

Triples:

OPE rdfs:range CE .
kind: Literal['ObjectPropertyRange'] = 'ObjectPropertyRange'
object_property_expression: axiom.common.N3Resource
class_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DataPropertyDomain

Bases: axiom.structural_element.StructuralElement

Element DataPropertyDomain( DPE CE ) of the OWL 2 structural specification.

Shares rdfs:domain with ObjectPropertyDomain; lifting prefers the data form when the property is typed owl:DatatypeProperty.

Triples:

DPE rdfs:domain CE .
kind: Literal['DataPropertyDomain'] = 'DataPropertyDomain'
data_property_expression: axiom.common.N3IRIRef
class_expression: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DataPropertyRange

Bases: axiom.structural_element.StructuralElement

Element DataPropertyRange( DPE DR ) of the OWL 2 structural specification.

Shares rdfs:range with ObjectPropertyRange; lifting prefers the data form when the property is typed owl:DatatypeProperty.

Triples:

DPE rdfs:range DR .
kind: Literal['DataPropertyRange'] = 'DataPropertyRange'
data_property_expression: axiom.common.N3IRIRef
data_range: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.InverseObjectProperties

Bases: axiom.structural_element.StructuralElement

Element InverseObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

Triples:

OPE1 owl:inverseOf OPE2 .

Note that ObjectInverseOf( OP ) uses the same predicate with a blank-node expression subject; graph lifting treats IRI subjects as this axiom.

kind: Literal['InverseObjectProperties'] = 'InverseObjectProperties'
object_property_expression_1: axiom.common.N3Resource
object_property_expression_2: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DatatypeDefinition

Bases: axiom.structural_element.StructuralElement

Element DatatypeDefinition( DT DR ) of the OWL 2 structural specification.

Binary form only: a single owl:equivalentClass triple. Shares that predicate with binary EquivalentClasses; graph lifting prefers this class when the subject is typed rdfs:Datatype.

Triples:

DT owl:equivalentClass DR .
kind: Literal['DatatypeDefinition'] = 'DatatypeDefinition'
datatype: axiom.common.N3IRIRef
data_range: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.EquivalentObjectProperties

Bases: axiom.structural_element.StructuralElement

Element EquivalentObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

Binary form only. An n-ary structural equivalence axiom serializes to multiple owl:equivalentProperty triples; reverse parse yields binaries. Shares that predicate with EquivalentDataProperties.

Triples:

OPE1 owl:equivalentProperty OPE2 .
kind: Literal['EquivalentObjectProperties'] = 'EquivalentObjectProperties'
object_property_expression_1: axiom.common.N3Resource
object_property_expression_2: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.EquivalentDataProperties

Bases: axiom.structural_element.StructuralElement

Element EquivalentDataProperties( DPE1 DPE2 ) of the OWL 2 structural specification.

Binary form only. Shares owl:equivalentProperty with EquivalentObjectProperties; lifting prefers the data form when the subject is typed owl:DatatypeProperty.

Triples:

DPE1 owl:equivalentProperty DPE2 .
kind: Literal['EquivalentDataProperties'] = 'EquivalentDataProperties'
data_property_expression_1: axiom.common.N3IRIRef
data_property_expression_2: axiom.common.N3IRIRef
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DisjointObjectProperties

Bases: axiom.structural_element.StructuralElement

Element DisjointObjectProperties( OPE1 OPE2 ) of the OWL 2 structural specification.

Triples:

OPE1 owl:propertyDisjointWith OPE2 .
kind: Literal['DisjointObjectProperties'] = 'DisjointObjectProperties'
object_property_expression_1: axiom.common.N3Resource
object_property_expression_2: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DisjointDataProperties

Bases: axiom.structural_element.StructuralElement

Element DisjointDataProperties( DPE1 DPE2 ) of the OWL 2 structural specification.

Shares owl:propertyDisjointWith with DisjointObjectProperties; lifting prefers the data form when the subject is typed owl:DatatypeProperty.

Triples:

DPE1 owl:propertyDisjointWith DPE2 .
kind: Literal['DisjointDataProperties'] = 'DisjointDataProperties'
data_property_expression_1: axiom.common.N3IRIRef
data_property_expression_2: axiom.common.N3IRIRef
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DisjointObjectPropertiesNary

Bases: axiom.structural_element.StructuralElement

Element DisjointObjectProperties( OPE1 ... OPEn ), n > 2.

The RDF subject is typically an anonymous blank node of type owl:AllDisjointProperties. members is an owned Seq fragment.

Triples:

_:x rdf:type owl:AllDisjointProperties .
_:x owl:members T(SEQ OPE1 ... OPEn) .
kind: Literal['DisjointObjectPropertiesNary'] = 'DisjointObjectPropertiesNary'
name_value: axiom.common.N3Resource = None
members: axiom.structural_element.Seq
property name: rdflib.IdentifiedNode

AllDisjointProperties node identifier (alias of name_value).

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

Bases: axiom.structural_element.StructuralElement

Element DisjointDataProperties( DPE1 ... DPEn ), n > 2.

Shares the owl:AllDisjointProperties mapping with DisjointObjectPropertiesNary; lifting prefers the data form when members are typed owl:DatatypeProperty.

Triples:

_:x rdf:type owl:AllDisjointProperties .
_:x owl:members T(SEQ DPE1 ... DPEn) .
kind: Literal['DisjointDataPropertiesNary'] = 'DisjointDataPropertiesNary'
name_value: axiom.common.N3Resource = None
members: axiom.structural_element.Seq
property name: rdflib.IdentifiedNode

AllDisjointProperties node identifier (alias of name_value).

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

Bases: axiom.structural_element.StructuralElement

Element HasKey( CE ( OPE1 ... OPEm ) ( DPE1 ... DPEn ) ).

class_expression is the key-bearing class. key_properties is an owned Seq of property node references (object and/or data properties concatenated as in the OWL 2 RDF mapping). At least one key property is required.

Triples:

CE owl:hasKey T(SEQ OPE1 ... OPEm DPE1 ... DPEn) .
kind: Literal['HasKey'] = 'HasKey'
class_expression: axiom.common.N3Resource
key_properties: axiom.structural_element.Seq
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.ObjectPropertyAssertion

Bases: axiom.structural_element.StructuralElement

Element ObjectPropertyAssertion( OPE a1 a2 ) of the OWL 2 structural specification.

Binary RDF form a1 OPE a2 with a resource (individual) value. Graph lifting claims a triple only when OPE is a known object property expression (declaration, object-property characteristic, object restriction onProperty, ObjectInverseOf blank node, or OPE operand of an already-parsed axiom). Unknown predicates remain unconsumed.

Triples:

a1 OPE a2 .
kind: Literal['ObjectPropertyAssertion'] = 'ObjectPropertyAssertion'
object_property_expression: axiom.common.N3Resource
individual: axiom.common.N3Resource
value: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DataPropertyAssertion

Bases: axiom.structural_element.StructuralElement

Element DataPropertyAssertion( DPE a lt ) of the OWL 2 structural specification.

Binary RDF form a DPE lt with a literal value. Graph lifting claims a triple only when DPE is a known data property expression (declaration, data restriction onProperty / onProperties, or DPE operand of an already-parsed axiom). Unknown predicates remain unconsumed.

Triples:

a DPE lt .
kind: Literal['DataPropertyAssertion'] = 'DataPropertyAssertion'
data_property_expression: axiom.common.N3IRIRef
individual: axiom.common.N3Resource
value: axiom.common.N3Node
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.NegativeObjectPropertyAssertion

Bases: axiom.structural_element.StructuralElement

Element NegativeObjectPropertyAssertion( OPE a1 a2 ) of the OWL 2 structural specification.

Reified RDF form headed by owl:NegativePropertyAssertion with a resource owl:targetIndividual. Graph lifting claims a node only when owl:assertionProperty is a known object property expression. Nodes that use owl:targetValue are claimed as NegativeDataPropertyAssertion instead.

Triples:

_:x rdf:type owl:NegativePropertyAssertion .
_:x owl:sourceIndividual a1 .
_:x owl:assertionProperty OPE .
_:x owl:targetIndividual a2 .
kind: Literal['NegativeObjectPropertyAssertion'] = 'NegativeObjectPropertyAssertion'
name_value: axiom.common.N3Resource = None
object_property_expression: axiom.common.N3Resource
individual: axiom.common.N3Resource
value: axiom.common.N3Resource
property name: rdflib.IdentifiedNode

NegativePropertyAssertion node identifier (alias of name_value).

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

Bases: axiom.structural_element.StructuralElement

Element NegativeDataPropertyAssertion( DPE a lt ) of the OWL 2 structural specification.

Reified RDF form headed by owl:NegativePropertyAssertion with a literal owl:targetValue. Graph lifting claims a node only when owl:assertionProperty is a known data property expression. Nodes that use owl:targetIndividual are claimed as NegativeObjectPropertyAssertion instead.

Triples:

_:x rdf:type owl:NegativePropertyAssertion .
_:x owl:sourceIndividual a .
_:x owl:assertionProperty DPE .
_:x owl:targetValue lt .
kind: Literal['NegativeDataPropertyAssertion'] = 'NegativeDataPropertyAssertion'
name_value: axiom.common.N3Resource = None
data_property_expression: axiom.common.N3IRIRef
individual: axiom.common.N3Resource
value: axiom.common.N3Node
property name: rdflib.IdentifiedNode

NegativePropertyAssertion node identifier (alias of name_value).

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

Bases: axiom.structural_element.StructuralElement

Element DifferentIndividuals( a1 a2 ) of the OWL 2 structural specification.

Triples:

a1 owl:differentFrom a2 .
kind: Literal['DifferentIndividuals'] = 'DifferentIndividuals'
individual_1: axiom.common.N3Resource
individual_2: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.SameIndividual

Bases: axiom.structural_element.StructuralElement

Element SameIndividual( a1 a2 ) of the OWL 2 structural specification.

Binary form only. An n-ary structural SameIndividual( a1 ... an ) serializes to n-1 owl:sameAs triples; reverse parse yields binaries.

Triples:

a1 owl:sameAs a2 .
kind: Literal['SameIndividual'] = 'SameIndividual'
individual_1: axiom.common.N3Resource
individual_2: axiom.common.N3Resource
property name: rdflib.IdentifiedNode
property as_triples: collections.abc.Sequence[axiom.common.Triple]
class axiom.property_axiom.DifferentIndividualsNary

Bases: axiom.structural_element.StructuralElement

Element DifferentIndividuals( a1 ... an ), n > 2.

Serializes with the OWL 2 RDF forward-mapping form owl:members. Graph lifting also accepts the OWL 1 legacy reverse-mapping form owl:distinctMembers for the same structural axiom; round-trip therefore normalizes legacy graphs to owl:members.

Triples:

_:x rdf:type owl:AllDifferent .
_:x owl:members T(SEQ a1 ... an) .
kind: Literal['DifferentIndividualsNary'] = 'DifferentIndividualsNary'
name_value: axiom.common.N3Resource = None
members: axiom.structural_element.Seq
property name: rdflib.IdentifiedNode

AllDifferent node identifier (alias of name_value).

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