Commit 7d1cec1b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Adds dct:relation as datatype property to mapper

parent ae5a2d94
......@@ -40,6 +40,7 @@ object KEYS {
const val hasSponsoringAgent = "hasSponsoringAgent"
const val hasFindingAid = "hasFindingAid"
const val sameAs = "sameAs"
const val relation = "relation"
// Rules
......@@ -151,6 +152,7 @@ object KEYS {
Pair(playbackSpeed, EBUCORE.playbackSpeed),
Pair(hasStandard, EBUCORE.hasStandard),
Pair(locator, EBUCORE.locator),
Pair(sameAs, SCHEMA.sameAs)
Pair(sameAs, SCHEMA.sameAs),
Pair(relation, DC.relation)
)
}
\ No newline at end of file
......@@ -108,7 +108,7 @@ class MappingConfig(directory: String) {
}
// literal properties
KEYS.name, KEYS.title, KEYS.descriptiveNote, KEYS.scopeAndContent, KEYS.sameAs,
KEYS.abstract, KEYS.source, KEYS.hasSponsoringAgent, KEYS.hasFindingAid ->
KEYS.abstract, KEYS.source, KEYS.hasSponsoringAgent, KEYS.hasFindingAid, KEYS.relation ->
recordFieldMappers.add(buildAnnotationMappers(entry))
KEYS.rights ->
recordFieldMappers.addAll(buildRuleMappers(entry.value))
......
......@@ -28,6 +28,7 @@ object DC {
val issued: Property = prop("issued")
val temporal: Property = prop("temporal")
val spatial: Property = prop("spatial")
val relation: Property = prop("relation")
private fun prop(name: String): Property {
return ResourceFactory.createProperty(NS.dct, name)
......
......@@ -8,6 +8,7 @@ record:
scopeAndContent: # rico:scopeAndContent
de:
- entstehungsumstände
relation: related_document
identifiers:
callNumber: original_id
titles: # blank node rico:Title
......
......@@ -19,5 +19,6 @@
"alte_signatur": "49884",
"signatur_digitalisat": "MEI_49884",
"bearbeitungskontext": "Pilot Meiner",
"publishedBy": "publisher"
"publishedBy": "publisher",
"related_document": "https://example.org/docs/MEI_49884"
}
\ No newline at end of file
<https://memobase.ch/record/BAZ-MEI_49884> <http://purl.org/dc/terms/created> _:B .
<https://memobase.ch/record/BAZ-MEI_49884> <http://purl.org/dc/terms/relation> "https://example.org/docs/MEI_49884" .
<https://memobase.ch/record/BAZ-MEI_49884> <http://rdaregistry.info/Elements/u/P60262> "Auftragsregister Bd. 6; Bildverzeichnis Bd. 7" .
<https://memobase.ch/record/BAZ-MEI_49884> <http://rdaregistry.info/Elements/u/P60451> "Memoriav" .
<https://memobase.ch/record/BAZ-MEI_49884> <http://rdaregistry.info/Elements/u/P60556> _:B .
......
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