Class ManchesterOWLSyntaxFrameRenderer

All Implemented Interfaces:
OWLAnnotationAxiomVisitor, OWLAnnotationObjectVisitor, OWLAnnotationValueVisitor, OWLAnonymousIndividualVisitorBase, OWLAxiomVisitor, OWLClassExpressionVisitor, OWLClassVisitorBase, OWLDataEntityVisitorBase, OWLDataRangeVisitor, OWLDataVisitor, OWLEntityVisitor, OWLIndividualEntityVisitorBase, OWLIndividualVisitor, OWLLiteralVisitorBase, OWLLogicalAxiomVisitor, OWLNamedObjectVisitor, OWLObjectVisitor, OWLPropertyEntityVisitorBase, OWLPropertyExpressionVisitor, OWLVisitorBase, SWRLObjectVisitor, SWRLRuleVisitorBase

public class ManchesterOWLSyntaxFrameRenderer extends ManchesterOWLSyntaxObjectRenderer implements OWLEntityVisitor
The Class ManchesterOWLSyntaxFrameRenderer.
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
  • Constructor Details

    • ManchesterOWLSyntaxFrameRenderer

      public ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology, Writer writer, ShortFormProvider entityShortFormProvider)
      Instantiates a new manchester owl syntax frame renderer.
      Parameters:
      ontology - the ontology
      writer - the writer
      entityShortFormProvider - the entity short form provider
    • ManchesterOWLSyntaxFrameRenderer

      public ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology, boolean explicitXsdString, Writer writer, ShortFormProvider entityShortFormProvider)
      Instantiates a new manchester owl syntax frame renderer.
      Parameters:
      ontology - the ontology
      explicitXsdString - true if xsd:string datatype should be explicit in the output
      writer - the writer
      entityShortFormProvider - the entity short form provider
    • ManchesterOWLSyntaxFrameRenderer

      public ManchesterOWLSyntaxFrameRenderer(Collection<OWLOntology> ontologies, Writer writer, ShortFormProvider entityShortFormProvider)
      Instantiates a new manchester owl syntax frame renderer.
      Parameters:
      ontologies - the ontologies
      writer - the writer
      entityShortFormProvider - the entity short form provider
  • Method Details

    • setRenderingDirector

      public void setRenderingDirector(RenderingDirector renderingDirector)
      Sets the rendering director.
      Parameters:
      renderingDirector - the new rendering director
    • setOntologyIRIShortFormProvider

      public void setOntologyIRIShortFormProvider(OntologyIRIShortFormProvider shortFormProvider)
      Parameters:
      shortFormProvider - short form provider to be used
    • addRendererListener

      public void addRendererListener(RendererListener listener)
      Adds the renderer listener.
      Parameters:
      listener - the listener
    • removeRendererListener

      public void removeRendererListener(RendererListener listener)
      Removes the renderer listener.
      Parameters:
      listener - the listener
    • setAxiomFilter

      public void setAxiomFilter(OWLAxiomFilter axiomFilter)
      Sets the axiom filter.
      Parameters:
      axiomFilter - the new axiom filter
    • clearFilteredAxiomTypes

      public void clearFilteredAxiomTypes()
      Clear filtered axiom types.
    • addFilteredAxiomType

      public void addFilteredAxiomType(AxiomType<?> axiomType)
      Adds the filtered axiom type.
      Parameters:
      axiomType - the axiom type
    • setRenderExtensions

      public void setRenderExtensions(boolean renderExtensions)
      Sets the render extensions.
      Parameters:
      renderExtensions - the new render extensions
    • writeOntology

      public void writeOntology() throws OWLRendererException
      Write ontology.
      Throws:
      OWLRendererException - renderer exception
    • writeOntologyHeader

      public void writeOntologyHeader()
      Write ontology header.
    • writePrefixMap

      public void writePrefixMap()
      Write prefix map.
    • writeFullURI

      public void writeFullURI(String uri)
      Write full URI.
      Parameters:
      uri - the URI to write
    • isFiltered

      public boolean isFiltered(AxiomType<?> axiomType)
      Checks if is filtered.
      Parameters:
      axiomType - the axiom type
      Returns:
      true, if is filtered
    • isDisplayed

      public boolean isDisplayed(@Nullable OWLAxiom axiom)
      Checks if is displayed.
      Parameters:
      axiom - the axiom
      Returns:
      true, if is displayed
    • writeFrame

      public Collection<OWLAxiom> writeFrame(OWLEntity entity)
      Write frame.
      Parameters:
      entity - the entity
      Returns:
      the sets the
    • write

      public Collection<OWLAxiom> write(OWLClass cls)
      Parameters:
      cls - the class
      Returns:
      the sets the
    • write

      Parameters:
      property - the property
      Returns:
      the sets the
    • write

      public Collection<OWLAxiom> write(OWLDataProperty property)
      Parameters:
      property - the property
      Returns:
      the sets the
    • write

      public Collection<OWLAxiom> write(OWLIndividual individual)
      Parameters:
      individual - the individual
      Returns:
      the sets the
    • write

      public Collection<OWLAxiom> write(OWLDatatype datatype)
      Parameters:
      datatype - the datatype
      Returns:
      the sets the
    • write

      public Collection<OWLAxiom> write(SWRLRule rule)
      Parameters:
      rule - the rule
      Returns:
      written axioms
    • write

      public Collection<OWLAxiom> write(OWLAnnotationProperty property)
      Parameters:
      property - the property
      Returns:
      written axioms
    • writeAnnotations

      public Collection<OWLAnnotationAssertionAxiom> writeAnnotations(OWLAnnotationSubject subject)
      Write annotations.
      Parameters:
      subject - the subject
      Returns:
      written axioms
    • writeSection

      public void writeSection(ManchesterOWLSyntax keyword)
      Write section.
      Parameters:
      keyword - the keyword
    • writeSection

      public void writeSection(ManchesterOWLSyntax keyword, Iterator<?> content, String delimiter, boolean newline)
      Write section.
      Parameters:
      keyword - the keyword
      content - the content
      delimiter - the delimiter
      newline - the newline
    • writeComment

      public void writeComment(String comment, boolean placeOnNewline)
      Write comment.
      Parameters:
      comment - the comment
      placeOnNewline - the place on newline
    • writeComment

      public void writeComment(String commentDelim, String comment, boolean placeOnNewline)
      Parameters:
      commentDelim - the comment delimiter
      comment - the comment
      placeOnNewline - the place on newline