@@ -4,6 +4,10 @@ def self.type
44 'Event'
55 end
66
7+ def self . bioschemas_profile
8+ 'https://bioschemas.org/profiles/Event/0.2-DRAFT-2019_06_14'
9+ end
10+
711 property :name , :title
812 property :alternateName , :subtitle
913 property :url , :url
@@ -25,17 +29,17 @@ def self.type
2529 } . compact
2630 } , condition : -> ( event ) { event . venue . present? || event . city . present? || event . county . present? ||
2731 event . country . present? || event . postcode . present? }
28- # property :hostInstitution, :host_institutions # Does not seem to be a valid Schema/Bioschemas property
29- # property :contact, :contact
32+ property :hostInstitution , :host_institutions
33+ property :contact , :contact
3034 property :funder , -> ( event ) {
3135 event . sponsors . map { |sponsor | { '@type' => 'Organization' , 'name' => sponsor } }
3236 }
3337 property :audience , -> ( event ) {
3438 event . target_audience . map { |audience | { '@type' => 'Audience' , 'audienceType' => audience } }
3539 }
3640 property :maximumAttendeeCapacity , :capacity
37- # property :event_types, event. event_types
38- # property :eligibility, event. eligibility
41+ property :event_types , : event_types
42+ property :eligibility , : eligibility
3943 property :about , -> ( event ) {
4044 event . scientific_topics . map { |t | term ( t ) }
4145 }
0 commit comments