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:
SubObjectPropertyOf—SubObjectPropertyOf( OPE1 OPE2 )SubDataPropertyOf—SubDataPropertyOf( DPE1 DPE2 )DatatypeDefinition— binaryDT owl:equivalentClass DRonlyEquivalentObjectProperties/EquivalentDataProperties— binaryowl:equivalentProperty(n-ary forms serialize to chains)DifferentIndividuals— binaryowl:differentFromSameIndividual— binaryowl:sameAs(n-ary forms serialize to chains)ObjectPropertyAssertion—a OPE b(resource value; known OPE)DataPropertyAssertion—a DPE lt(literal value; known DPE)NegativeObjectPropertyAssertion— reified NPA withowl:targetIndividualNegativeDataPropertyAssertion— reified NPA withowl:targetValue
Seq-backed:
SubObjectPropertyOfChain—OPE owl:propertyChainAxiom SEQHasKey—CE owl:hasKey SEQDifferentIndividualsNary—owl:AllDifferent+owl:members
Classes¶
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
|
Element |
Module Contents¶
- class axiom.property_axiom.SubObjectPropertyOf¶
Bases:
axiom.structural_element.StructuralElementElement
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.StructuralElementElement
SubDataPropertyOf( DPE1 DPE2 )of the OWL 2 structural specification.Both operands are data property IRIs. The RDF mapping shares
rdfs:subPropertyOfwithSubObjectPropertyOf; graph lifting prefers the data form when the subject is typedowl: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.StructuralElementElement
SubObjectPropertyOf( ObjectPropertyChain( OPE1 ... OPEn ) OPE ).object_property_expressionis the super-property.property_chainis an ownedSeqof chain operands (n >= 2) sharing this element’scontext. The OWL 2 RDF mapping does not emit anrdf:typetriple.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.StructuralElementElement
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.StructuralElementElement
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.StructuralElementElement
DataPropertyDomain( DPE CE )of the OWL 2 structural specification.Shares
rdfs:domainwithObjectPropertyDomain; lifting prefers the data form when the property is typedowl: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.StructuralElementElement
DataPropertyRange( DPE DR )of the OWL 2 structural specification.Shares
rdfs:rangewithObjectPropertyRange; lifting prefers the data form when the property is typedowl: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.StructuralElementElement
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.StructuralElementElement
DatatypeDefinition( DT DR )of the OWL 2 structural specification.Binary form only: a single
owl:equivalentClasstriple. Shares that predicate with binaryEquivalentClasses; graph lifting prefers this class when the subject is typedrdfs: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.StructuralElementElement
EquivalentObjectProperties( OPE1 OPE2 )of the OWL 2 structural specification.Binary form only. An n-ary structural equivalence axiom serializes to multiple
owl:equivalentPropertytriples; reverse parse yields binaries. Shares that predicate withEquivalentDataProperties.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.StructuralElementElement
EquivalentDataProperties( DPE1 DPE2 )of the OWL 2 structural specification.Binary form only. Shares
owl:equivalentPropertywithEquivalentObjectProperties; lifting prefers the data form when the subject is typedowl: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.StructuralElementElement
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.StructuralElementElement
DisjointDataProperties( DPE1 DPE2 )of the OWL 2 structural specification.Shares
owl:propertyDisjointWithwithDisjointObjectProperties; lifting prefers the data form when the subject is typedowl: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.StructuralElementElement
DisjointObjectProperties( OPE1 ... OPEn ), n > 2.The RDF subject is typically an anonymous blank node of type
owl:AllDisjointProperties.membersis an ownedSeqfragment.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.StructuralElementElement
DisjointDataProperties( DPE1 ... DPEn ), n > 2.Shares the
owl:AllDisjointPropertiesmapping withDisjointObjectPropertiesNary; lifting prefers the data form when members are typedowl: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.StructuralElementElement
HasKey( CE ( OPE1 ... OPEm ) ( DPE1 ... DPEn ) ).class_expressionis the key-bearing class.key_propertiesis an ownedSeqof 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.StructuralElementElement
ObjectPropertyAssertion( OPE a1 a2 )of the OWL 2 structural specification.Binary RDF form
a1 OPE a2with a resource (individual) value. Graph lifting claims a triple only whenOPEis a known object property expression (declaration, object-property characteristic, object restrictiononProperty,ObjectInverseOfblank 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.StructuralElementElement
DataPropertyAssertion( DPE a lt )of the OWL 2 structural specification.Binary RDF form
a DPE ltwith a literal value. Graph lifting claims a triple only whenDPEis a known data property expression (declaration, data restrictiononProperty/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.StructuralElementElement
NegativeObjectPropertyAssertion( OPE a1 a2 )of the OWL 2 structural specification.Reified RDF form headed by
owl:NegativePropertyAssertionwith a resourceowl:targetIndividual. Graph lifting claims a node only whenowl:assertionPropertyis a known object property expression. Nodes that useowl:targetValueare claimed asNegativeDataPropertyAssertioninstead.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.StructuralElementElement
NegativeDataPropertyAssertion( DPE a lt )of the OWL 2 structural specification.Reified RDF form headed by
owl:NegativePropertyAssertionwith a literalowl:targetValue. Graph lifting claims a node only whenowl:assertionPropertyis a known data property expression. Nodes that useowl:targetIndividualare claimed asNegativeObjectPropertyAssertioninstead.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.StructuralElementElement
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.StructuralElementElement
SameIndividual( a1 a2 )of the OWL 2 structural specification.Binary form only. An n-ary structural
SameIndividual( a1 ... an )serializes to n-1owl:sameAstriples; 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.StructuralElementElement
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 formowl:distinctMembersfor the same structural axiom; round-trip therefore normalizes legacy graphs toowl: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]¶