Sha256: bfef2ac5910c92ce041435b70718766078a5155810d64a685c1e8a827127008c

Contents?: true

Size: 782 Bytes

Versions: 12

Compression:

Stored size: 782 Bytes

Contents

module DPLA::MAP
  class Place < ActiveTriples::Resource
    configure :type => RDF::EDM.Place

    validates_presence_of :label

    property :label, :predicate => RDF::SKOS.prefLabel
    property :providedLabel, :predicate => RDF::DPLA.providedLabel
    property :lat, :predicate => RDF::GEO.lat
    property :long, :predicate => RDF::GEO.long
    property :alt, :predicate => RDF::GEO.alt
    #property :geometry, :predicate => RDF::GEOJSON.geometry, :class_name => DPLA::MAP::Geometry
    property :parentFeature, :predicate => RDF::GN.parentFeature, :class_name => 'DPLA::MAP::Place'
    property :countryCode, :predicate => RDF::GN.countryCode
    property :exactMatch, :predicate => RDF::SKOS.exactMatch
    property :closeMatch, :predicate => RDF::SKOS.closeMatch
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dpla-map-4.0.0.0.pre.13 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.12 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.11 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.10 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.9 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.8 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.7 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.6 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.5 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.4 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.3 lib/dpla/map/place.rb
dpla-map-4.0.0.0.pre.2 lib/dpla/map/place.rb