InverseObjectProperties

class InverseObjectProperties(left: ObjectPropertyExpression | URIRef | Reference | Referenced | str | IdentifierBox, right: ObjectPropertyExpression | URIRef | Reference | Referenced | str | IdentifierBox, *, annotations: list[Annotation] | None = None)[source]

Bases: ObjectPropertyAxiom

An object property axiom defined in 9.2.4 “Inverse Object Properties”.

For example, having a father is the opposite of being a father of someone:

>>> InverseObjectProperties("a:hasFather", "a:fatherOf")

Initialize an inverse object property axiom.

Methods Summary

to_rdflib_node(graph, converter)

Represent the inverse object property axiom for RDF.

Methods Documentation

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

Represent the inverse object property axiom for RDF.