Class TopicMap


  • public class TopicMap
    extends Object
    INTERNAL: Represents an Ontopoly topic map.
    • Constructor Detail

    • Method Detail

      • containsOntology

        public boolean containsOntology()
      • isDeleteable

        public boolean isDeleteable()
      • getTopicMapIF

        public TopicMapIF getTopicMapIF()
      • newQueryMapperNoWrap

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

        public Topic getTopicById​(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.
      • isSaveable

        public boolean isSaveable()
      • save

        public void save()
      • getDefaultNameField

        protected NameField getDefaultNameField()
      • 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.