lib/mida_vocabulary/vocabularies/schemaorg/place.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/place.rb in mida_vocabulary-0.2.2

- old
+ new

@@ -2,14 +2,104 @@ module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :PostalAddress, 'mida_vocabulary/vocabularies/schemaorg/postaladdress' + autoload :AggregateRating, 'mida_vocabulary/vocabularies/schemaorg/aggregaterating' + autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place' + autoload :Event, 'mida_vocabulary/vocabularies/schemaorg/event' + autoload :GeoCoordinates, 'mida_vocabulary/vocabularies/schemaorg/geocoordinates' + autoload :GeoShape, 'mida_vocabulary/vocabularies/schemaorg/geoshape' + autoload :Map, 'mida_vocabulary/vocabularies/schemaorg/map' + autoload :ImageObject, 'mida_vocabulary/vocabularies/schemaorg/imageobject' + autoload :OpeningHoursSpecification, 'mida_vocabulary/vocabularies/schemaorg/openinghoursspecification' + autoload :Photograph, 'mida_vocabulary/vocabularies/schemaorg/photograph' + autoload :Review, 'mida_vocabulary/vocabularies/schemaorg/review' # Entities that have a somewhat fixed, physical extension. class Place < Mida::Vocabulary itemtype %r{http://schema.org/Place}i include_vocabulary Mida::SchemaOrg::Thing + + # Physical address of the item. + has_many 'address' do + extract Mida::SchemaOrg::PostalAddress + extract Mida::DataType::Text + end + + # The overall rating, based on a collection of reviews or ratings, of the item. + has_many 'aggregateRating' do + extract Mida::SchemaOrg::AggregateRating + extract Mida::DataType::Text + end + + # The basic containment relation between places. + has_many 'containedIn' do + extract Mida::SchemaOrg::Place + extract Mida::DataType::Text + end + + # Upcoming or past event associated with this place or organization. Supercedes events. + has_many 'event' do + extract Mida::SchemaOrg::Event + extract Mida::DataType::Text + end + + # The fax number. + has_many 'faxNumber' + + # The geo coordinates of the place. + has_many 'geo' do + extract Mida::SchemaOrg::GeoCoordinates + extract Mida::SchemaOrg::GeoShape + extract Mida::DataType::Text + end + + # The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + has_many 'globalLocationNumber' + + # A URL to a map of the place. Supercedes map, maps. + has_many 'hasMap' do + extract Mida::DataType::URL + extract Mida::SchemaOrg::Map + extract Mida::DataType::Text + end + + # A count of a specific user interactions with this item - for example, 20 UserLikes, 5 UserComments, or 300 UserDownloads. The user interaction type should be one of the sub types of UserInteraction. + has_many 'interactionCount' + + # The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + has_many 'isicV4' + + # A logo associated with an organization. + has_many 'logo' do + extract Mida::DataType::URL + extract Mida::SchemaOrg::ImageObject + extract Mida::DataType::Text + end + + # The opening hours of a certain place. + has_many 'openingHoursSpecification' do + extract Mida::SchemaOrg::OpeningHoursSpecification + extract Mida::DataType::Text + end + + # A photograph of this place. Supercedes photos. + has_many 'photo' do + extract Mida::SchemaOrg::ImageObject + extract Mida::SchemaOrg::Photograph + extract Mida::DataType::Text + end + + # A review of the item. Supercedes reviews. + has_many 'review' do + extract Mida::SchemaOrg::Review + extract Mida::DataType::Text + end + + # The telephone number. + has_many 'telephone' end end end