Module: Parliament::Grom::Decorator::Concept
- Defined in:
- lib/parliament/grom/decorator/concept.rb
Overview
Decorator namespace for Grom::Node instances with type: id.parliament.uk/schema/Concept
Instance Method Summary collapse
-
#broader_concepts ⇒ Array
Alias conceptHasBroaderConcept with fallback.
-
#definition ⇒ String
Alias conceptDefinition with fallback.
-
#description ⇒ String
Alias conceptScopeNote with fallback.
-
#name ⇒ String
Alias conceptLabel with fallback.
-
#narrower_concepts ⇒ Array
Alias conceptHasNarrowerConcept with fallback.
-
#tagged_articles ⇒ Array
Alias conceptHasSubjectTaggedThing with fallback.
Instance Method Details
#broader_concepts ⇒ Array
Alias conceptHasBroaderConcept with fallback.
37 38 39 |
# File 'lib/parliament/grom/decorator/concept.rb', line 37 def broader_concepts respond_to?(:conceptHasBroaderConcept) ? conceptHasBroaderConcept : [] end |
#definition ⇒ String
Alias conceptDefinition with fallback.
23 24 25 |
# File 'lib/parliament/grom/decorator/concept.rb', line 23 def definition respond_to?(:conceptDefinition) ? conceptDefinition : '' end |
#description ⇒ String
Alias conceptScopeNote with fallback.
16 17 18 |
# File 'lib/parliament/grom/decorator/concept.rb', line 16 def description respond_to?(:conceptScopeNote) ? conceptScopeNote : '' end |
#name ⇒ String
Alias conceptLabel with fallback.
9 10 11 |
# File 'lib/parliament/grom/decorator/concept.rb', line 9 def name respond_to?(:conceptLabel) ? conceptLabel : '' end |
#narrower_concepts ⇒ Array
Alias conceptHasNarrowerConcept with fallback.
44 45 46 |
# File 'lib/parliament/grom/decorator/concept.rb', line 44 def narrower_concepts respond_to?(:conceptHasNarrowerConcept) ? conceptHasNarrowerConcept : [] end |
#tagged_articles ⇒ Array
Alias conceptHasSubjectTaggedThing with fallback.
30 31 32 |
# File 'lib/parliament/grom/decorator/concept.rb', line 30 def tagged_articles respond_to?(:conceptHasSubjectTaggedThing) ? conceptHasSubjectTaggedThing : [] end |