Sha256: 54982caf7ea60c575ff40108cac3323acba227326083542891092095f791eaab

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

module RTM::Sugar
  module TopicMap
    module Scoped

      # Returns all topics in the topic map used
      # in the scope property of Associations.
      #
      # The result may be empty.
      #
      # :call-seq:
      #   association_themes -> Collection of Topics
      #
      def association_themes
        scoped_index.getAssociationThemes
      end

      # Returns all topics in the topic map used
      # in the scope property of Names.
      #
      # :call-seq:
      #   name_themes -> Collection of Topics
      #
      def name_themes
        scoped_index.getNameThemes
      end

      # Returns all topics in the topic map used
      # in the scope property of Occurrences.
      #
      # :call-seq:
      #   occurrence_themes -> Collection of Topics
      #
      def occurrence_themes
        scoped_index.getOccurrenceThemes
      end

      # Returns all topics in the topic map used
      # in the scope property of Variants.
      #
      # :call-seq:
      #   variant_themes -> Collection of Topics
      #
      def variant_themes
        scoped_index.getVariantThemes
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtm-0.3.0 lib/rtm/sugar/topic_map/scoped.rb