Interface Ontology

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, IdentifiedElement, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
Description, DescriptionBox, DescriptionBundle, Vocabulary, VocabularyBox, VocabularyBundle
All Known Implementing Classes:
DescriptionBoxImpl, DescriptionBundleImpl, DescriptionImpl, OntologyImpl, VocabularyBoxImpl, VocabularyBundleImpl, VocabularyImpl

public interface Ontology extends IdentifiedElement
A representation of the model object 'Ontology'. Ontology is an identified element that represents a namespace for its [=members=]. It is defined by a globally unique namespace (an iri followed by either # or /) and an abbreviated prefix. An ontology can import other ontologies, and can make [=statements=] about its own as well as imported [=members=].

The following features are supported:

See Also:
Generated:
Model:
abstract="true" annotation="https://tabatkins.github.io/bikeshed heading='Elements'"
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the namespace's iri
    Returns the value of the 'Namespace' attribute.
    org.eclipse.emf.common.util.EList<Import>
    Returns the value of the 'Owned Imports' containment reference list.
    Returns the value of the 'Prefix' attribute.
    Get the namespace's separator char
    void
    Sets the value of the 'Namespace' attribute.
    void
    Sets the value of the 'Prefix' attribute.

    Methods inherited from interface io.opencaesar.oml.Element

    extraValidate, getOntology

    Methods inherited from interface org.eclipse.emf.ecore.EObject

    eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset

    Methods inherited from interface io.opencaesar.oml.IdentifiedElement

    getOwnedAnnotations

    Methods inherited from interface org.eclipse.emf.common.notify.Notifier

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Method Details

    • getNamespace

      String getNamespace()
      Returns the value of the 'Namespace' attribute. The globally unique namespace of this ontology
      Returns:
      the value of the 'Namespace' attribute.
      See Also:
      Generated:
      Model:
      unique="false" dataType="io.opencaesar.oml.Namespace" required="true"
    • setNamespace

      void setNamespace(String value)
      Sets the value of the 'Namespace' attribute.
      Parameters:
      value - the new value of the 'Namespace' attribute.
      See Also:
      Generated:
    • getPrefix

      String getPrefix()
      Returns the value of the 'Prefix' attribute. The prefix of this ontology's namespace
      Returns:
      the value of the 'Prefix' attribute.
      See Also:
      Generated:
      Model:
      unique="false" dataType="io.opencaesar.oml.ID" required="true"
    • setPrefix

      void setPrefix(String value)
      Sets the value of the 'Prefix' attribute.
      Parameters:
      value - the new value of the 'Prefix' attribute.
      See Also:
      Generated:
    • getOwnedImports

      org.eclipse.emf.common.util.EList<Import> getOwnedImports()
      Returns the value of the 'Owned Imports' containment reference list. The list contents are of type Import. It is bidirectional and its opposite is 'Owning Ontology'. The set of imports this ontology has to other ontologies
      Returns:
      the value of the 'Owned Imports' containment reference list.
      See Also:
      Generated:
      Model:
      opposite="owningOntology" containment="true"
    • getIri

      String getIri()
      Get the namespace's iri
      Specified by:
      getIri in interface IdentifiedElement
      Generated:
      Model:
      kind="operation" unique="false"
    • getSeparator

      SeparatorKind getSeparator()
      Get the namespace's separator char
      Generated:
      Model:
      kind="operation" unique="false"