Class OntologyFactory

java.lang.Object
de.uni_trier.wi2.procake.utils.ontology.OntologyFactory
All Implemented Interfaces:
Factory

public final class OntologyFactory extends Object implements Factory
This Factory class provides the ontology for the representation and similarity calculation of URIObjects.
Author:
dahlem
  • Method Details

    • bind

      public static boolean bind(OntologyFactoryObject implementation)
      Binds the given implementation.
    • getOntology

      public static Ontology getOntology(String name)
    • containsOntology

      public static boolean containsOntology(String name)
    • getOntologyFor

      public static Ontology getOntologyFor(DataObject dataObject)
    • newOntology

      public static Ontology newOntology(String name, String path)
    • newOntology

      public static Ontology newOntology(String name, String path, String pathBackup)
    • unbind

      public static boolean unbind(OntologyFactoryObject implementation)
    • reset

      public void reset()
      Description copied from interface: Factory
      This method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
      Specified by:
      reset in interface Factory
    • bind

      public boolean bind(Object implementation)
      Description copied from interface: Factory
      Bind an implementation to the factory.
      Specified by:
      bind in interface Factory
      Parameters:
      implementation - The object to bind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also:
    • unbind

      public boolean unbind(Object implementation)
      Description copied from interface: Factory
      Unbinds an implementation from the factory.
      Specified by:
      unbind in interface Factory
      Parameters:
      implementation - The object to unbind.
      Returns:
      true if the factory accept the implementation, otherwise false .
      See Also:
    • postInit

      public void postInit()
      Description copied from interface: Factory
      Post initialization.
      Specified by:
      postInit in interface Factory