Commit 85f53853 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fixes digital object namespace

parent 90c60ac0
......@@ -19,20 +19,16 @@
package org.memobase.builder
import org.apache.jena.rdf.model.Resource
import org.memobase.builder.Instantiation
import org.memobase.helpers.StringHelpers
import org.memobase.rdf.NS
import org.memobase.rdf.RICO
class DigitalObject(id: String, institutionId: String, count: Int) : Instantiation(institutionId) {
override val resource: Resource = model.createResource(NS.mempo + institutionId + "-" + StringHelpers.normalizeId(id) + "-" + count)
override val resource: Resource = model.createResource(NS.memdo + institutionId + "-" + StringHelpers.normalizeId(id) + "-" + count)
init {
addRdfType(RICO.Instantiation)
resource.addProperty(RICO.type, "digitalObject")
resource.addProperty(RICO.heldBy, institutionUri)
addIdentifier("main", resource.uri, model.createResource(uri(NS.memint, "Memoriav")))
}
}
\ No newline at end of file
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