Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
libraries
Mapper Service Configuration
Commits
6cdc2466
Commit
6cdc2466
authored
Feb 14, 2022
by
Jonas Waeber
Browse files
Fix memoriav URI
parent
f205cbe7
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
6cdc2466
...
...
@@ -46,7 +46,7 @@ dependencies {
//compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.1.0'
implementation
"org.apache.logging.log4j:log4j-api:${log4jV}"
implementation
'org.memobase:memobase-service-utilities:3.
0
.3'
implementation
'org.memobase:memobase-service-utilities:3.
1
.3'
// YAML Parser
implementation
'org.snakeyaml:snakeyaml-engine:2.1'
...
...
src/main/kotlin/builder/Record.kt
View file @
6cdc2466
...
...
@@ -46,7 +46,7 @@ class Record(
resource
.
addProperty
(
RICO
.
heldBy
,
institutionUri
)
addRicoConcept
(
KEYS
.
identifiers
,
"main"
,
listOf
(
literal
(
id
)))
if
(
hasSponsoringAgent
)
{
resource
.
addProperty
(
RDA
.
hasSponsoringAgentOfResource
,
model
.
createResource
(
KEYS
.
memoriav
Uri
))
resource
.
addProperty
(
RDA
.
hasSponsoringAgentOfResource
,
model
.
createResource
(
MB
.
memoriav
InstitutionURI
))
}
resource
.
addProperty
(
MB
.
isPublished
,
model
.
createTypedLiteral
(
isPublished
))
}
...
...
src/main/kotlin/mapping/KEYS.kt
View file @
6cdc2466
...
...
@@ -21,9 +21,6 @@ package ch.memobase.mapping
import
ch.memobase.rdf.*
object
KEYS
{
const
val
memoriavUri
=
NS
.
mbcb
+
"mrv"
val
validRecordTypeValues
=
listOf
(
"Film"
,
"Foto"
,
"Radio"
,
"Ton"
,
"Tonbildschau"
,
"TV"
,
"Video"
)
const
val
uri
=
"uri"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment