lib/dpla/map/place.rb in dpla-map-4.0.0.0.pre.1 vs lib/dpla/map/place.rb in dpla-map-4.0.0.0.pre.2

- old
+ new

@@ -1,16 +1,18 @@ module DPLA::MAP class Place < ActiveTriples::Resource configure :type => RDF::EDM.Place - validates_presence_of :name # validates_cardinality_of ... :count => 1? + validates_presence_of :label - property :name, :predicate => RDF::SKOS.prefLabel - property :latitude, :predicate => RDF::GEO.lat - property :longitude, :predicate => RDF::GEO.long - property :altitude, :predicate => RDF::GEO.alt - property :parentFeature, :predicate => RDF::GN.parentFeature - property :parentCountry, :predicate => RDF::GN.countryCode - property :sameAs, :predicate => RDF::OWL.sameAs - + 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