lib/dpla/map/time_span.rb in dpla-map-4.0.0.0.pre.1 vs lib/dpla/map/time_span.rb in dpla-map-4.0.0.0.pre.2
- old
+ new
@@ -1,10 +1,11 @@
module DPLA::MAP
class TimeSpan < ActiveTriples::Resource
configure :type => RDF::EDM.TimeSpan
- validates_presence_of :originalSourceDate # validates_cardinality_of ... :count => 1?
-
+ validates_presence_of :providedLabel
+
+ property :providedLabel, :predicate => RDF::DPLA.providedLabel
property :begin, :predicate => RDF::EDM.begin
property :end, :predicate => RDF::EDM.end
end
end