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
e745638a
Commit
e745638a
authored
Apr 12, 2021
by
Silvia Witzig
Browse files
don't use dc:date
parent
b3eba230
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/scala/ch/memobase/rico2edm/edm/EDM.scala
View file @
e745638a
...
...
@@ -107,7 +107,7 @@ class EDM {
cho
.
addDescription
(
Extractors
.
dctAbstract
(
record
))
cho
.
addDescription
(
Extractors
.
scopeAndContent
(
record
))
cho
.
addDescription
(
Extractors
.
descriptiveNote
(
record
))
cho
.
addCreationDate
(
Extractors
.
creationDate
(
graph
)(
record
.
obj
))
//
cho.addCreationDate(Extractors.creationDate(graph)(record.obj))
//todo: nur name c._1 hächst wahrscheinlich weg!!!
...
...
src/main/scala/ch/memobase/rico2edm/edm/subjects/ProvidedCHO.scala
View file @
e745638a
...
...
@@ -43,8 +43,8 @@ class ProvidedCHO (val id: String) {
title
.
map
(
t
=>
model
.
add
(
iri
(
id
),
DC
.
TITLE
,
factory
.
createLiteral
(
t
)))
}
def
addCreationDate
(
createDate
:
Option
[
String
])
:
Unit
=
createDate
.
map
(
t
=>
model
.
add
(
iri
(
id
),
DC
.
DATE
,
factory
.
createLiteral
(
t
)))
//
def addCreationDate(createDate:Option[String]): Unit =
//
createDate.map(t => model.add(iri(id),DC.DATE,factory.createLiteral(t)))
def
addCreator
(
creator
:
Option
[
String
])
:
Unit
=
creator
.
map
(
t
=>
model
.
add
(
iri
(
id
),
DC
.
CREATOR
,
factory
.
createLiteral
(
t
)))
...
...
src/test/scala/ch/memobase/rico2edm/edm/ExtractorSpec.scala
View file @
e745638a
...
...
@@ -63,7 +63,7 @@ class ExtractorSpec extends AnyFunSuite with Matchers{
temporal und issued nutzt Sebastian in IIIF nicht
ich habe das im Beispielrecord auch noch nicht gesehen - gibt es das?
*/
cho
.
addCreationDate
(
Extractors
.
creationDate
(
graph
)(
record
))
//
cho.addCreationDate(Extractors.creationDate(graph)(record))
Extractors
.
resourceSourceOfRelationCreation
(
graph
)(
record
.
value
)(
"creator"
)
...
...
src/test/scala/ch/memobase/rico2edm/edm/ExtractorSpecWebResource.scala
View file @
e745638a
...
...
@@ -64,7 +64,7 @@ class ExtractorSpecWebResource extends AnyFunSuite with Matchers {
temporal und issued nutzt Sebastian in IIIF nicht
ich habe das im Beispielrecord auch noch nicht gesehen - gibt es das?
*/
cho
.
addCreationDate
(
Extractors
.
creationDate
(
graph
.
arr
)(
record
))
//
cho.addCreationDate(Extractors.creationDate(graph.arr)(record))
webresource
.
get
.
getModel
.
addAll
(
cho
.
getModel
)
assert
(
Utils
.
serializeRDFModel
(
cho
.
getModel
).
contains
(
"<dc:description>Veduta dell'albergo</dc:description>"
))
...
...
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