Skip to content

Commit

Permalink
🐛 Fix metadata multiple or single (#824)
Browse files Browse the repository at this point in the history
This commit will check Adventist production's metadata for it's multiple
and single values and compare it to Valkyrie's. We spotted many
differences and this commit aims to resolve them.

Ref:
- #822
  • Loading branch information
kirkkwang authored Sep 23, 2024
2 parents 3b5cd62 + 8c55d5e commit 46a3b8d
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 121 deletions.
7 changes: 4 additions & 3 deletions config/metadata/adl_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,14 @@ attributes:
# nonstandard definition: multiple false, required true
rights_statement:
type: string
multiple: false
multiple: true
form:
required: true
primary: true
multiple: true
index_keys:
- rights_statement_tesi
- rights_statement_si
- rights_statement_tesim
- rights_statement_sim
predicate: http://www.europeana.eu/schemas/edm/rights
source:
type: string
Expand Down
54 changes: 31 additions & 23 deletions config/metadata/collection_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,53 @@ attributes:
predicate: http://purl.org/dc/terms/date
date_available:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_available_tesi
- date_available_si
- date_available_tesim
- date_available_sim
predicate: http://purl.org/dc/terms/available
date_published:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_published_tesi
- date_published_si
- date_published_tesim
- date_published_sim
predicate: http://schema.org/datePublished
date_submitted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_submitted_tesi
- date_submitted_si
- date_submitted_tesim
- date_submitted_sim
predicate: http://london.ac.uk/ontologies/terms#dateSubmitted
date_accepted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_accepted_tesi
- date_accepted_si
- date_accepted_tesim
- date_accepted_sim
predicate: http://purl.org/dc/terms/dateAccepted
date_issued:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_issued_tesi
- date_issued_si
- date_issued_tesim
- date_issued_sim
predicate: http://purl.org/dc/terms/issued
department:
type: string
Expand Down Expand Up @@ -100,11 +105,12 @@ attributes:
predicate: http://id.loc.gov/vocabulary/relators/fnd
issue_number:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- issue_number_tesi
- issue_number_isim
predicate: http://schema.org/issueNumber
location:
type: string
Expand Down Expand Up @@ -176,12 +182,13 @@ attributes:
predicate: http://id.loc.gov/ontologies/bibframe/partOf
publication_status:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- publication_status_tesi
- publication_status_si
- publication_status_tesim
- publication_status_sim
predicate: http://purl.org/ontology/bibo/status
place_of_publication:
type: string
Expand Down Expand Up @@ -429,13 +436,14 @@ attributes:
# nonstandard definition: multiple false, required true
rights_statement:
type: string
multiple: false
multiple: true
form:
required: false
primary: false
multiple: true
index_keys:
- rights_statement_tesi
- rights_statement_si
- rights_statement_tesim
- rights_statement_sim
predicate: http://www.europeana.eu/schemas/edm/rights
source:
type: string
Expand Down
42 changes: 24 additions & 18 deletions config/metadata/conference_item_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
attributes:
date_published:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_published_tesi
- date_published_si
- date_published_tesim
- date_published_sim
predicate: http://schema.org/datePublished
keyword:
type: string
Expand All @@ -42,30 +43,33 @@ attributes:
predicate: http://schema.org/keywords
date_available:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_available_tesi
- date_available_si
- date_available_tesim
- date_available_sim
predicate: http://purl.org/dc/terms/available
date_submitted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_submitted_tesi
- date_submitted_si
- date_submitted_tesim
- date_submitted_sim
predicate: http://london.ac.uk/ontologies/terms#dateSubmitted
date_accepted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_accepted_tesi
- date_accepted_si
- date_accepted_tesim
- date_accepted_sim
predicate: http://purl.org/dc/terms/dateAccepted
editor:
type: string
Expand All @@ -78,12 +82,13 @@ attributes:
predicate: http://id.loc.gov/vocabulary/relators/edc
event_date:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- event_date_tesi
- event_date_si
- event_date_tesim
- event_date_sim
predicate: http://rs.tdwg.org/dwc/terms/eventDate
isbn:
type: string
Expand Down Expand Up @@ -137,12 +142,13 @@ attributes:
predicate: http://id.loc.gov/ontologies/bibframe/partOf
publication_status:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- publication_status_tesi
- publication_status_si
- publication_status_tesim
- publication_status_sim
predicate: http://purl.org/ontology/bibo/status
presented_at:
type: string
Expand Down
59 changes: 34 additions & 25 deletions config/metadata/dataset_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
attributes:
date_published:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_published_tesi
- date_published_si
- date_published_tesim
- date_published_sim
predicate: http://schema.org/datePublished
resource_type_general:
type: string
Expand All @@ -41,21 +42,23 @@ attributes:
predicate: http://purl.org/spar/datacite/hasGeneralResourceType
date_collected:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_collected_tesi
- date_collected_si
- date_collected_tesim
- date_collected_sim
predicate: http://purl.org/spar/fabio/hasDateCollected
date_issued:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_issued_tesi
- date_issued_si
- date_issued_tesim
- date_issued_sim
predicate: http://purl.org/dc/terms/issued
keyword:
type: string
Expand Down Expand Up @@ -92,21 +95,23 @@ attributes:
predicate: http://purl.org/dc/terms/accessRights
date_accepted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_accepted_tesi
- date_accepted_si
- date_accepted_tesim
- date_accepted_sim
predicate: http://purl.org/dc/terms/dateAccepted
date_copyrighted:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_copyrighted_tesi
- date_copyrighted_si
- date_copyrighted_tesim
- date_copyrighted_sim
predicate: http://purl.org/dc/terms/dateCopyrighted
content_version:
type: string
Expand All @@ -119,21 +124,23 @@ attributes:
predicate: http://schema.org/version
date_available:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_available_tesi
- date_available_si
- date_available_tesim
- date_available_sim
predicate: http://purl.org/dc/terms/available
date_submitted:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_submitted_tesi
- date_submitted_si
- date_submitted_tesim
- date_submitted_sim
predicate: http://london.ac.uk/ontologies/terms#dateSubmitted
for_indexing:
type: string
Expand All @@ -153,9 +160,10 @@ attributes:
predicate: http://www.loc.gov/premis/rdf/v1#hasRestriction
date_valid:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_valid_tesim
- date_valid_sim
Expand Down Expand Up @@ -195,12 +203,13 @@ attributes:
predicate: http://id.loc.gov/ontologies/bibframe/subtitle
date_updated:
type: string
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_updated_tesi
- date_updated_si
- date_updated_tesim
- date_updated_sim
predicate: http://schema.org/dateModified
last_access:
type: date_time
Expand Down
7 changes: 4 additions & 3 deletions config/metadata/exam_paper_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ attributes:
predicate: http://dlib.york.ac.uk/ontologies/uketd#qualificationLevel
date_available:
type: date_time
multiple: false
multiple: true
form:
primary: false
multiple: true
index_keys:
- date_available_tesi
- date_available_si
- date_available_tesim
- date_available_sim
predicate: http://purl.org/dc/terms/available
7 changes: 4 additions & 3 deletions config/metadata/generic_work_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,14 @@ attributes:
# nonstandard definition: multiple false, required true
rights_statement:
type: string
multiple: false
multiple: true
form:
required: true
primary: true
multiple: true
index_keys:
- rights_statement_tesi
- rights_statement_si
- rights_statement_tesim
- rights_statement_sim
predicate: http://www.europeana.eu/schemas/edm/rights
source:
type: string
Expand Down
Loading

0 comments on commit 46a3b8d

Please sign in to comment.