Sha256: 5c542e5c743b22edb82272fb02eec1ab39870db22b02e2637e9f46fa2aff5b80

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Enumeration, 'mida_vocabulary/vocabularies/schemaorg/enumeration'
    autoload :StructuredValue, 'mida_vocabulary/vocabularies/schemaorg/structuredvalue'

    # A point value or interval for product characteristics and other purposes.
    class QuantitativeValue < Mida::Vocabulary
      itemtype %r{http://schema.org/QuantitativeValue}i
      include_vocabulary Mida::SchemaOrg::Thing

      # The upper value of some characteristic or property.
      has_many 'maxValue' do
        extract Mida::DataType::Number
      end

      # The lower value of some characteristic or property.
      has_many 'minValue' do
        extract Mida::DataType::Number
      end

      # The unit of measurement given using the UN/CEFACT Common Code (3 characters).
      has_many 'unitCode'

      # The value of the product characteristic.
      has_many 'value' do
        extract Mida::DataType::Number
      end

      # A pointer to a secondary value that provides additional information on the original value, e.g. a reference temperature.
      has_many 'valueReference' do
        extract Mida::SchemaOrg::Enumeration
        extract Mida::SchemaOrg::StructuredValue
        extract Mida::DataType::Text
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/schemaorg/quantitativevalue.rb