Commit fb7c5075 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove rico:hasProvenance from all entities.

parent c0ceb35d
......@@ -29,7 +29,6 @@ class DigitalObject(id: String, institutionId: String, count: Int) : Instantiati
addRdfType(RICO.Instantiation)
resource.addProperty(RICO.type, "digitalObject")
resource.addProperty(RICO.heldBy, institutionUri)
resource.addProperty(RICO.hasProvenance, institutionUri)
addIdentifier("main", resource.uri, model.createResource(uri(NS.memint, "Memoriav")))
}
......
......@@ -28,7 +28,6 @@ class PhysicalObject(id: String, institutionId: String, count: Int) : Instantiat
addRdfType(RICO.Instantiation)
resource.addProperty(RICO.type, "physicalObject")
resource.addProperty(RICO.heldBy, institutionUri)
resource.addProperty(RICO.hasProvenance, institutionUri)
addIdentifier("main", resource.uri, model.createResource(uri(NS.memint, "Memoriav")))
}
}
\ No newline at end of file
......@@ -31,7 +31,6 @@ class Record(id: String, type: String, recordSetId: String, institutionId: Strin
resource.addProperty(RICO.type, type)
resource.addProperty(RICO.isPartOf, recordSetUri(recordSetId))
resource.addProperty(RICO.heldBy, institutionUri)
resource.addProperty(RICO.hasProvenance, institutionUri)
addIdentifier("main", resource.uri, model.createResource(uri(NS.memint, "Memoriav")))
}
......
......@@ -63,7 +63,6 @@ abstract class RecordResource(institutionId: String) : IResource {
blank.addProperty(RICO.name, literal(text))
blank.addProperty(RICO.type, type)
blank.addProperty(RDF.type, RICO.Language)
blank.addProperty(RICO.hasProvenance, institutionUri)
resource.addProperty(RICO.hasLanguage, blank)
}
......@@ -72,7 +71,6 @@ abstract class RecordResource(institutionId: String) : IResource {
blank.addProperty(RICO.title, langLiteral(text, language))
blank.addProperty(RICO.type, type)
blank.addProperty(RDF.type, RICO.Title)
blank.addProperty(RICO.hasProvenance, institutionUri)
blank.addProperty(RICO.isTitleOf, resource)
resource.addProperty(RICO.hasTitle, blank)
}
......@@ -82,7 +80,6 @@ abstract class RecordResource(institutionId: String) : IResource {
blank.addProperty(RICO.identifier, literal(identifier))
blank.addProperty(RICO.type, type)
blank.addProperty(RDF.type, RICO.Identifier)
blank.addProperty(RICO.hasProvenance, institution)
resource.addProperty(RICO.identifiedBy, blank)
}
......@@ -96,7 +93,6 @@ abstract class RecordResource(institutionId: String) : IResource {
for (property in properties) {
blank.addProperty(SKOS.get(property.first), property.second)
}
blank.addProperty(RICO.hasProvenance, institutionUri)
when (type) {
KEYS.genre -> resource.addProperty(EBUCORE.hasGenre, blank)
KEYS.subject -> resource.addProperty(RICO.hasSubject, blank)
......@@ -109,7 +105,6 @@ abstract class RecordResource(institutionId: String) : IResource {
for (property in properties) {
blank.addProperty(KEYS.keysToPropertyMap[property.first], property.second)
}
blank.addProperty(RICO.hasProvenance, institutionUri)
when (type) {
KEYS.placeOfCapture -> resource.addProperty(RDA.hasPlaceOfCapture, blank)
KEYS.relatedPlaces -> resource.addProperty(DC.spatial, blank)
......@@ -126,7 +121,6 @@ abstract class RecordResource(institutionId: String) : IResource {
override fun addCreationRelation(type: String, agentType: String, properties: List<Pair<String, Literal>>) {
val relation = model.createResource()
relation.addProperty(RICO.type, type)
relation.addProperty(RICO.hasProvenance, institutionUri)
relation.addProperty(RICO.creationRelationHasSource, resource)
relation.addProperty(RDF.type, RICO.CreationRelation)
val agent = model.createResource()
......@@ -134,7 +128,6 @@ abstract class RecordResource(institutionId: String) : IResource {
for (property in properties) {
agent.addProperty(KEYS.keysToPropertyMap[property.first], property.second)
}
agent.addProperty(RICO.hasProvenance, institutionUri)
relation.addProperty(RICO.creationRelationHasTarget, agent)
resource.addProperty(RICO.recordResourceOrInstantiationIsSourceOfCreationRelation, relation)
}
......
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