Module: SchemaOrg::Mixins::DefinedTerm

Includes:
Intangible
Included in:
DefinedTerm, CategoryCode
Defined in:
lib/schema_org/mixins/defined_term.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Thing

#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #url, #url=

Class Method Details

.schema_property_definitionsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/schema_org/mixins/defined_term.rb', line 11

def self.schema_property_definitions
  {
    about: {
      schema_name: "about",
      schema_url: "https://schema.org/about",
      comment_lines: ["The subject matter of an object."].freeze,
      ranges: ["Thing"].freeze,
      external_ranges: [].freeze,
      inverse_of: "subjectOf",
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    in_defined_term_set: {
      schema_name: "inDefinedTermSet",
      schema_url: "https://schema.org/inDefinedTermSet",
      comment_lines: ["A [[DefinedTermSet]] that contains this term."].freeze,
      ranges: ["DefinedTermSet", "URL"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze,
    term_code: {
      schema_name: "termCode",
      schema_url: "https://schema.org/termCode",
      comment_lines: ["A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]."].freeze,
      ranges: ["Text"].freeze,
      external_ranges: [].freeze,
      inverse_of: nil,
      superseded_by: nil,
      supersedes: nil
    }.freeze
  }.freeze
end

Instance Method Details

#aboutObject

The subject matter of an object. Inverse-property: subjectOf.



48
49
50
# File 'lib/schema_org/mixins/defined_term.rb', line 48

def about
  read_property(:about)
end

#about=(value) ⇒ Object

The subject matter of an object. Inverse-property: subjectOf.



54
55
56
# File 'lib/schema_org/mixins/defined_term.rb', line 54

def about=(value)
  write_property(:about, value)
end

#in_defined_term_setObject

A [[DefinedTermSet]] that contains this term.



59
60
61
# File 'lib/schema_org/mixins/defined_term.rb', line 59

def in_defined_term_set
  read_property(:in_defined_term_set)
end

#in_defined_term_set=(value) ⇒ Object

A [[DefinedTermSet]] that contains this term.



64
65
66
# File 'lib/schema_org/mixins/defined_term.rb', line 64

def in_defined_term_set=(value)
  write_property(:in_defined_term_set, value)
end

#term_codeObject

A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]].



69
70
71
# File 'lib/schema_org/mixins/defined_term.rb', line 69

def term_code
  read_property(:term_code)
end

#term_code=(value) ⇒ Object

A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]].



74
75
76
# File 'lib/schema_org/mixins/defined_term.rb', line 74

def term_code=(value)
  write_property(:term_code, value)
end