Commit ae559efa authored by Jonas Waeber's avatar Jonas Waeber

Merge branch 'master' of...

Merge branch 'master' of gitlab.switch.ch:memoriav/memobase-2020/services/import-process/fedora-ingest-service
parents 9f925305 c3609b4f
Pipeline #18467 passed with stages
in 4 minutes and 14 seconds
......@@ -111,7 +111,7 @@ class RdfHandler(data: String, private val externalBaseUrl: String) {
}
fun getSftpLocators(): List<Pair<String, String?>> {
return model.listSubjectsWithProperty(RICO.type, Service.DIGITAL_OBJECT_TYPE).filterKeep {
return model.listResourcesWithProperty(RDF.type, RICO.Instantiation).filterKeep {
it.hasProperty(EBUCORE.locator)
}.mapWith {
val url = it.getProperty(EBUCORE.locator).`object`.asLiteral().string
......
......@@ -35,7 +35,6 @@ import java.util.Properties
class Service(fileName: String = "app.yml") : Closeable {
companion object {
const val DIGITAL_OBJECT_TYPE = "digitalObject"
const val FEDORA_PROPERTIES_PREFIX = "fedora"
const val CONSUMER_MAX_POLL_RECORDS = "10"
const val CONSUMER_MAX_INTERVAL_MS = "3600000" // 3600000ms = 1h
......
Markdown is supported
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