Class OWLDocumentFormatImpl

java.lang.Object
org.semanticweb.owlapi.model.OWLDocumentFormatImpl
All Implemented Interfaces:
Serializable, OWLDocumentFormat
Direct Known Subclasses:
AbstractRDFNonPrefixDocumentFormat, DLSyntaxDocumentFormat, DLSyntaxHTMLDocumentFormat, KRSS2DocumentFormat, KRSSDocumentFormat, LabelFunctionalDocumentFormat, LatexAxiomsListDocumentFormat, LatexDocumentFormat, OBODocumentFormat, PrefixDocumentFormatImpl

public abstract class OWLDocumentFormatImpl extends Object implements OWLDocumentFormat
Represents the concrete representation format of an ontology. The equality of an ontology format is defined by the equals and hashCode method (not its identity).
Since:
2.0.0
Author:
Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
See Also:
  • Constructor Details

    • OWLDocumentFormatImpl

      public OWLDocumentFormatImpl()
  • Method Details

    • isAddMissingTypes

      public boolean isAddMissingTypes()
      Description copied from interface: OWLDocumentFormat
      Determines if untyped entities should automatically be typed (declared) during rendering. (This is a hint to an RDF renderer - the reference implementation will respect this).
      Specified by:
      isAddMissingTypes in interface OWLDocumentFormat
      Returns:
      true if untyped entities should automatically be typed during rendering, otherwise false.
    • setAddMissingTypes

      public void setAddMissingTypes(boolean addMissingTypes)
      Description copied from interface: OWLDocumentFormat
      Determines if untyped entities should automatically be typed during rendering. By default this is true.
      Specified by:
      setAddMissingTypes in interface OWLDocumentFormat
      Parameters:
      addMissingTypes - true if untyped entities should automatically be typed during rendering, otherwise false.
    • setParameter

      public void setParameter(Serializable key, Serializable value)
      Specified by:
      setParameter in interface OWLDocumentFormat
      Parameters:
      key - key for the new entry
      value - value for the new entry
    • getParameter

      public <T> T getParameter(Serializable key, T defaultValue)
      Specified by:
      getParameter in interface OWLDocumentFormat
      Type Parameters:
      T - type
      Parameters:
      key - key for the new entry
      defaultValue - value for the new entry
      Returns:
      the value
    • getOntologyLoaderMetaData

      public Optional<OWLOntologyLoaderMetaData> getOntologyLoaderMetaData()
      Description copied from interface: OWLDocumentFormat
      If this format describes an ontology that was loaded from some ontology document (rather than created programmatically) there may be some meta data about the loading process. Subclasses of OWLDocumentFormat will provide accessors etc. to details pertaining to the meta data about loading.
      Specified by:
      getOntologyLoaderMetaData in interface OWLDocumentFormat
      Returns:
      An object containing the meta data about loading. .
    • setOntologyLoaderMetaData

      public void setOntologyLoaderMetaData(OWLOntologyLoaderMetaData loaderMetaData)
      Description copied from interface: OWLDocumentFormat
      Sets the meta data for the ontology loader.
      Specified by:
      setOntologyLoaderMetaData in interface OWLDocumentFormat
      Parameters:
      loaderMetaData - The metadata.
    • isTextual

      public boolean isTextual()
      Description copied from interface: OWLDocumentFormat
      Determines whether this format contains textual output, as opposed to binary output.
      Specified by:
      isTextual in interface OWLDocumentFormat
      Returns:
      True if this format represents a textual format, as opposed to a binary format. Defaults to true if not overridden.
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object