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
services
postprocessing
rico-edm-transformer
Commits
9c2197c8
Commit
9c2197c8
authored
Apr 08, 2021
by
Günter Hipler
Browse files
status 8.4.2021 (mail an silvia)
parent
7c83c4c8
Pipeline
#24347
passed with stages
in 7 minutes and 25 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
gh/kafkacatnotes.txt
View file @
9c2197c8
...
@@ -29,6 +29,8 @@ docker run --rm -v /home/swissbib/environment/code/repositories/memoriav/gitlab/
...
@@ -29,6 +29,8 @@ docker run --rm -v /home/swissbib/environment/code/repositories/memoriav/gitlab/
docker run --rm -it --network host edenhill/kafkacat:1.6.0 -C -b VPN:9092 -t import-process-reporting -K '\t'
docker run --rm -it --network host edenhill/kafkacat:1.6.0 -C -b VPN:9092 -t import-process-reporting -K '\t'
docker run --rm -it --network host edenhill/kafkacat:1.6.0 -C -b VPN:9092 -t edm-es-records1 -K '\t'
docker run --rm -it --network host edenhill/kafkacat:1.6.0 -C -b VPN:9092 -t import-process-reporting-es | grep FATAL
docker run --rm -it --network host edenhill/kafkacat:1.6.0 -C -b VPN:9092 -t import-process-reporting-es | grep FATAL
andere Befehle:
andere Befehle:
...
...
src/main/resources/app.yml
View file @
9c2197c8
...
@@ -4,6 +4,12 @@ app:
...
@@ -4,6 +4,12 @@ app:
#accessTermLabelsPath: "/home/swissbib/environment/code/repositories/memoriav/gitlab/services/postprocessing/rico-edm-transformer/configs/access_terms/labels.csv"
#accessTermLabelsPath: "/home/swissbib/environment/code/repositories/memoriav/gitlab/services/postprocessing/rico-edm-transformer/configs/access_terms/labels.csv"
#reuseStatementLabelsPath: "/home/swissbib/environment/code/repositories/memoriav/gitlab/services/postprocessing/rico-edm-transformer/configs/reuse_statements/labels.csv"
#reuseStatementLabelsPath: "/home/swissbib/environment/code/repositories/memoriav/gitlab/services/postprocessing/rico-edm-transformer/configs/reuse_statements/labels.csv"
isocodemapping
:
${ISOCODE_MAPPING:?system}
isocodemapping
:
${ISOCODE_MAPPING:?system}
# elastic:
# host: ${ELASTIC_HOST:?system}
# port: ${ELASTIC_PORT:?system}
# documentsIndex: ${DOCUMENTS_INDEX:?system}
# institutionIndex: ${INSTITUTION_INDEX:?system}
# recordSetIndex: ${RECORD_SET_INDEX:?system}
...
...
src/main/scala/ch/memobase/rico2edm/edm/EDM.scala
View file @
9c2197c8
...
@@ -269,6 +269,9 @@ class EDM {
...
@@ -269,6 +269,9 @@ class EDM {
case
_
=>
case
_
=>
}
}
//fixed value for provider
aggregation
.
addProvider
(
Some
(
"Memoriav"
))
Option
(
ExtractionResult
(
aggregation
))
Option
(
ExtractionResult
(
aggregation
))
}
else
{
}
else
{
...
...
src/main/scala/ch/memobase/rico2edm/edm/subjects/ProvidedCHO.scala
View file @
9c2197c8
...
@@ -180,6 +180,13 @@ class Aggregation(private val id: String) {
...
@@ -180,6 +180,13 @@ class Aggregation(private val id: String) {
})
})
}
}
def
addProvider
(
edmProvider
:
Option
[
String
])
:
Unit
=
{
edmProvider
.
map
(
a
=>
model
.
add
(
iri
(
id
),
EDMVocab
.
PROVIDER
,
factory
.
createLiteral
(
a
))
)
}
def
addEDMObjectNoFoto
(
edmObjectNoFoto
:
Option
[
String
])
:
Unit
=
{
def
addEDMObjectNoFoto
(
edmObjectNoFoto
:
Option
[
String
])
:
Unit
=
{
edmObjectNoFoto
.
map
(
a
=>
{
edmObjectNoFoto
.
map
(
a
=>
{
if
(
identValue
.
matches
(
edmObjectNoFoto
.
get
))
{
if
(
identValue
.
matches
(
edmObjectNoFoto
.
get
))
{
...
...
src/main/scala/ch/memobase/rico2edm/rdf/vocabularies/VocabularyFactory.scala
View file @
9c2197c8
...
@@ -44,6 +44,7 @@ object EDMVocab extends VocabularyFactory("http://www.europeana.eu/schemas/edm/"
...
@@ -44,6 +44,7 @@ object EDMVocab extends VocabularyFactory("http://www.europeana.eu/schemas/edm/"
val
IS_SHOWN_AT
:
IRI
=
getIri
(
"isShownAt"
)
val
IS_SHOWN_AT
:
IRI
=
getIri
(
"isShownAt"
)
val
IS_SHOWN_BY
:
IRI
=
getIri
(
"isShownBy"
)
val
IS_SHOWN_BY
:
IRI
=
getIri
(
"isShownBy"
)
val
OBJECT
:
IRI
=
getIri
(
"object"
)
val
OBJECT
:
IRI
=
getIri
(
"object"
)
val
PROVIDER
:
IRI
=
getIri
(
"provider"
)
}
}
...
...
src/main/scala/ch/memobase/rico2edm/utils/Helper.scala
View file @
9c2197c8
...
@@ -73,9 +73,12 @@ object Helper {
...
@@ -73,9 +73,12 @@ object Helper {
def
getLanguageCode
(
wikiId
:
String
)
:
Option
[
String
]
=
{
def
getLanguageCode
(
wikiId
:
String
)
:
Option
[
String
]
=
{
isoLanguageCodes
match
{
isoLanguageCodes
match
{
case
Some
(
langkeys
)
if
langkeys
.
containsKey
(
wikiId
)
=>
Some
(
langkeys
.
get
(
wikiId
))
case
Some
(
langkeys
)
if
langkeys
.
containsKey
(
wikiId
)
=>
case
Some
(
langkeys
)
if
!
langkeys
.
containsKey
(
wikiId
)
=>
None
Some
(
langkeys
.
get
(
wikiId
))
case
None
=>
None
case
Some
(
langkeys
)
if
!
langkeys
.
containsKey
(
wikiId
)
=>
None
case
None
=>
None
}
}
}
}
...
...
Write
Preview
Markdown
is supported
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