Commit 6f969111 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Implements published by

A new agent relation for RICO.
parent 54f484a8
......@@ -65,10 +65,12 @@ object KEYS {
const val producer = "producers"
const val relatedAgents = "relatedAgents"
const val publishedBy = "publishedBy"
val agentPropertiesMap = mapOf(
Pair(producer, RDA.hasProducer),
Pair(relatedAgents, RICO.hasSubject)
Pair(relatedAgents, RICO.hasSubject),
Pair(publishedBy, RICO.publishedBy)
)
// Agent Types
......
......@@ -185,7 +185,7 @@ class MappingConfig(directory: String) {
)
else -> throw InvalidMappingException("Dates only allow simple field assignment. Invalid mapping ${entry.key}.")
}
KEYS.producer, KEYS.relatedAgents, KEYS.creators ->
KEYS.producer, KEYS.relatedAgents, KEYS.creators, KEYS.publishedBy ->
recordFieldMappers.addAll(buildAgentMapper(key, entry.value))
else -> throw InvalidMappingException("Unknown key '$key' in record mapping.")
}
......
......@@ -69,6 +69,8 @@ object RICO {
val hasSubject: Property = prop( "hasSubject")
val publishedBy: Property = prop("publishedBy")
val heldBy: Property = prop( "heldBy")
val isPartOf: Property = prop( "isPartOf")
val hasProvenance: Property = prop("hasProvenance")
......
......@@ -28,6 +28,10 @@ record:
placeOfCapture: # blank node rico:Place with relation rdau:P60556 "has place of capture"
name:
de: aufnahmeort
publishedBy:
- corporateBody:
name:
de: publishedBy
creators: # a list of creators (with creationRelation rico:type)
- creatorType:
const: "Fotograf"
......
......@@ -18,5 +18,6 @@
"original_id": "MEI_49884",
"alte_signatur": "49884",
"signatur_digitalisat": "MEI_49884",
"bearbeitungskontext": "Pilot Meiner"
"bearbeitungskontext": "Pilot Meiner",
"publishedBy": "publisher"
}
\ No newline at end of file
......@@ -10,6 +10,7 @@
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/BAZ-B_MEI> .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#publishedBy> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#recordResourceOrInstantiationIsSourceOfCreationRelation> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
......@@ -17,6 +18,7 @@
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#title> "«Villa Siegel», Zürich"@de .
<https://memobase.ch/record/BAZ-MEI_49884> <https://www.ica.org/standards/RiC/ontology#type> "Foto" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Agent> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CreationRelation> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#DateSet> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
......@@ -34,6 +36,7 @@ _:B <https://www.ica.org/standards/RiC/ontology#identifier> "https://memobase.ch
_:B <https://www.ica.org/standards/RiC/ontology#isTitleOf> <https://memobase.ch/record/BAZ-MEI_49884> .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Walz"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zürich"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "publisher"@de .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/BAZ-MEI_49884> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/BAZ-MEI_49884> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/BAZ-MEI_49884> .
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment