owlapy.render.DLSyntaxObjectRenderer¶
-
class
owlapy.render.
DLSyntaxObjectRenderer
(short_form_provider: Callable[[owlapy.model.OWLEntity], str] = <function _simple_short_form_provider>)[source]¶ Bases:
owlapy.io.OWLObjectRenderer
DL Syntax renderer for OWL Objects
Create a new DL Syntax renderer
- Parameters:
short_form_provider – custom short form provider
Methods
Render OWL Object to string
Configure a short form provider that shortens the OWL objects during rendering
-
render
(o: owlapy.model.OWLObject) → str[source]¶ -
render
(o: owlapy.model.OWLClass) → str -
render
(p: owlapy.model.OWLPropertyExpression) → str -
render
(i: owlapy.model.OWLNamedIndividual) → str -
render
(e: owlapy.model.OWLObjectSomeValuesFrom) → str -
render
(e: owlapy.model.OWLObjectAllValuesFrom) → str -
render
(c: owlapy.model.OWLObjectUnionOf) → str -
render
(c: owlapy.model.OWLObjectIntersectionOf) → str -
render
(n: owlapy.model.OWLObjectComplementOf) → str -
render
(p: owlapy.model.OWLObjectInverseOf) → str -
render
(r: owlapy.model.OWLObjectMinCardinality) → str -
render
(r: owlapy.model.OWLObjectExactCardinality) → str -
render
(r: owlapy.model.OWLObjectMaxCardinality) → str -
render
(r: owlapy.model.OWLObjectHasSelf) → str -
render
(r: owlapy.model.OWLObjectHasValue) -
render
(r: owlapy.model.OWLObjectOneOf) -
render
(e: owlapy.model.OWLDataSomeValuesFrom) → str -
render
(e: owlapy.model.OWLDataAllValuesFrom) → str -
render
(r: owlapy.model.OWLFacetRestriction) → str -
render
(r: owlapy.model.OWLDatatypeRestriction) → str -
render
(r: owlapy.model.OWLDataHasValue) -
render
(r: owlapy.model.OWLDataMinCardinality) → str -
render
(r: owlapy.model.OWLDataExactCardinality) → str -
render
(r: owlapy.model.OWLDataMaxCardinality) → str -
render
(r: owlapy.model.OWLDataOneOf) -
render
(n: owlapy.model.OWLDataComplementOf) → str -
render
(c: owlapy.model.OWLDataUnionOf) → str -
render
(c: owlapy.model.OWLDataIntersectionOf) → str -
render
(t: owlapy.model.OWLDatatype) → str -
render
(t: owlapy.model.OWLLiteral) → str Render OWL Object to string
- Parameters:
o – OWL Object
- Returns:
String rendition of OWL object
-
set_short_form_provider
(short_form_provider: Callable[[owlapy.model.OWLEntity], str]) → None[source]¶ Configure a short form provider that shortens the OWL objects during rendering
- Parameters:
short_form_provider – short form provider