Commit 54f484a8 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Change resource builder

Will now also add the inverse property for hasDerivedInstantiation.
parent 4b6b7f09
Pipeline #9159 passed with stages
in 5 minutes and 7 seconds
...@@ -29,6 +29,10 @@ abstract class Instantiation(institutionId: String) : RecordResource(institution ...@@ -29,6 +29,10 @@ abstract class Instantiation(institutionId: String) : RecordResource(institution
fun addDerivedInstantiation(instantiation: Instantiation) { fun addDerivedInstantiation(instantiation: Instantiation) {
resource.addProperty(RICO.hasDerivedInstantiation, instantiation.resource) resource.addProperty(RICO.hasDerivedInstantiation, instantiation.resource)
} }
fun addIsDerivedFromInstantiation(instantiation: Instantiation) {
resource.addProperty(RICO.isDerivedFromInstantiation, instantiation.resource)
}
} }
...@@ -84,6 +84,7 @@ class ResourceBuilder( ...@@ -84,6 +84,7 @@ class ResourceBuilder(
if (physicalObject != null && digitalObject != null) { if (physicalObject != null && digitalObject != null) {
physicalObject.addDerivedInstantiation(digitalObject) physicalObject.addDerivedInstantiation(digitalObject)
digitalObject.addIsDerivedFromInstantiation(physicalObject)
} }
} }
......
...@@ -74,8 +74,9 @@ object RICO { ...@@ -74,8 +74,9 @@ object RICO {
val hasProvenance: Property = prop("hasProvenance") val hasProvenance: Property = prop("hasProvenance")
val instantiates: Property = prop("instantiates") val instantiates: Property = prop("instantiates")
val hasDerivedInstantiation: Property = prop("hasDerivedInstantiation")
val hasInstantiation: Property = prop("hasInstantiation") val hasInstantiation: Property = prop("hasInstantiation")
val hasDerivedInstantiation: Property = prop("hasDerivedInstantiation")
val isDerivedFromInstantiation: Property = prop("isDerivedFromInstantiation")
val creationRelationHasSource: Property = prop("creationRelationHasSource") val creationRelationHasSource: Property = prop("creationRelationHasSource")
val creationRelationHasTarget: Property = prop("creationRelationHasTarget") val creationRelationHasTarget: Property = prop("creationRelationHasTarget")
......
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://rdaregistry.info/Elements/u/P60558> "sw" . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://rdaregistry.info/Elements/u/P60558> "sw" .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "Negativ Nitrat (NN)"@de . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "Negativ Nitrat (NN)"@de .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/BAZ> .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/BAZ-MEI_49884> . <https://memobase.ch/instantiation/physical/BAZ-MEI_49884-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/BAZ-MEI_49884> .
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "format"@de . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "format"@de .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#hasDerivedInstantiation> <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> . <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> .
......
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-Sig_Han_1293> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/instantiation/physical/TEST-Sig_Han_1293-0> .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B . <https://memobase.ch/instantiation/digital/TEST-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
......
<https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> . <https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B . <https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-sigantur-example> . <https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST-sigantur-example> .
<https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "ID Film: id_film"@fr . <https://memobase.ch/instantiation/physical/TEST-sigantur-example-0> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "ID Film: id_film"@fr .
......
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