Module: Newsmlg2::Base::ConceptRelationshipsGroup
- Included in:
- Types::Affiliation, Types::Concept, Types::Event, Types::Flex1PropType, Types::FlexGeoAreaPropType, Types::FlexLocationPropType, Types::FlexPOIPropType, Types::FlexPartyPropType, Types::FlexPersonPropType
- Defined in:
- lib/newsmlg2/base/concept_relationships_group.rb
Overview
A group of properties expressing relationships between concepts (conceptrelationships.py).
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/newsmlg2/base/concept_relationships_group.rb', line 8 def self.included(klass) klass.class_eval do xml_element :same_as, xml: 'sameAs', type: Newsmlg2::Types::SameAs, collection: true xml_element :broader, xml: 'broader', type: Newsmlg2::Types::Broader, collection: true xml_element :narrower, xml: 'narrower', type: Newsmlg2::Types::Narrower, collection: true xml_element :related, xml: 'related', type: Newsmlg2::Types::Related, collection: true end end |