FacetRestriction

class pyhornedowl.model.FacetRestriction(facet: Facet, literal: Literal | str | bool | int | float)

Bases: object

An OWL2 FacetRestriction

serialize(serialization: Literal2['ofn'] | None = None, prefix_mapping: PrefixMapping | None = None) → str

Renders this element on its own, in OWL functional ("ofn") syntax. The per-element counterpart to Ontology.save_to_string.

horned-owl has no Manchester rendering for this class: Manchester syntax writes it only inside the element that contains it, so "omn" is an error.