Class TopicMap

java.lang.Object
ontopoly.model.TopicMap

public class TopicMap extends Object
INTERNAL: Represents an Ontopoly topic map.
  • Field Details

  • Constructor Details

  • Method Details

    • getDeclarationContext

      public DeclarationContextIF getDeclarationContext()
    • getQueryProcessor

      public QueryProcessorIF getQueryProcessor()
    • containsOntology

      public boolean containsOntology()
    • isDeleteable

      public boolean isDeleteable()
    • getTopicMapIF

      public TopicMapIF getTopicMapIF()
    • newQueryMapperNoWrap

      public <T> QueryMapper<T> newQueryMapperNoWrap()
    • newQueryMapper

      public <T> QueryMapper<T> newQueryMapper(Class<T> type)
    • getTopicIFById

      public TopicIF getTopicIFById(String id)
    • getTopicById

      public Topic getTopicById(String id)
    • getTopicTypeById

      public TopicType getTopicTypeById(String id)
    • getReifier

      public Topic getReifier()
    • makeReifier

      protected TopicIF makeReifier()
    • getName

      public String getName()
      Returns the name of the topic map, or null if it has none.
    • getOntologyVersion

      public float getOntologyVersion()
      Returns the version of the Ontopoly meta-ontology used in this topic map.
    • getId

      public String getId()
      Returns the Id of the topic map reference in the topic map registry.
    • getTopicTypes

      public List<TopicType> getTopicTypes()
      Returns a list of the topic types that is not a system topic type.
    • getRootTopicTypes

      public List<TopicType> getRootTopicTypes()
      Returns a list of the topic types that is not a system topic type.
    • getTopicTypesWithLargeInstanceSets

      public List<TopicType> getTopicTypesWithLargeInstanceSets()
      Returns a list of the topic types that is not a system topic type.
    • getOccurrenceFields

      public List<OccurrenceField> getOccurrenceFields()
    • getRoleFields

      public List<RoleField> getRoleFields()
    • getNameFields

      public List<NameField> getNameFields()
    • getIdentityFields

      public List<IdentityField> getIdentityFields()
    • getQueryFields

      public List<QueryField> getQueryFields()
    • isSaveable

      public boolean isSaveable()
    • save

      public void save()
    • createNamedTopic

      protected TopicIF createNamedTopic(String name, TopicIF type)
    • createTopicType

      public TopicType createTopicType(String name)
    • getDefaultNameField

      protected NameField getDefaultNameField()
    • createNameType

      public NameType createNameType(String name)
    • createOccurrenceType

      public OccurrenceType createOccurrenceType(String name)
    • createAssociationType

      public AssociationType createAssociationType(String name)
    • createRoleType

      public RoleType createRoleType(String name)
    • searchAll

      public List<Topic> searchAll(String searchTerm)
      Returns the topics that matches the given search term. Only topics of allowed player types are returned.
      Returns:
      a collection of Topic objects
    • getTopicName

      protected String getTopicName(TopicIF topic, AbstractTypingTopic fallback)
      Package-internal method to get the name of a topic. Introduced in Ontopia 5.1 for field definitions. Not used everywhere because I don't understand the code well enough to do that, and anyway things appear to work properly elsewhere. Should probably use this in Topic.getName(), though.