Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Drupal Sync Service
Commits
60b6c838
Commit
60b6c838
authored
Jan 22, 2021
by
Jonas Waeber
Browse files
Update tests
parent
5ff1ca61
Pipeline
#20594
passed with stages
in 4 minutes and 29 seconds
Changes
5
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/test/kotlin/TestRecordSets.kt
View file @
60b6c838
...
...
@@ -71,7 +71,7 @@ class TestRecordSets {
assertAll
(
""
,
{
assertThat
(
result
.
first
)
.
isEqualTo
(
"https://memobase.ch/recordSet/
hgk
-0
0
1"
)
.
isEqualTo
(
"https://memobase.ch/recordSet/
sap
-0
2
1"
)
}
)
}
...
...
@@ -114,7 +114,7 @@ class TestRecordSets {
},
{
assertThat
(
key
)
.
isEqualTo
(
"https://memobase.ch/recordSet/
hgk
-0
0
1"
)
.
isEqualTo
(
"https://memobase.ch/recordSet/
sap
-0
2
1"
)
}
)
}
...
...
src/test/resources/data/institution/turtle-output.ttl
View file @
60b6c838
...
...
@@ -49,14 +49,14 @@ mbcb:sts a rico:CorporateBody ;
wdt:
P669
"Fronwagplatz"
;
wdt:
P670
"24"
]
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"sts"
;
rico:
type
"main"
]
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"StSh"
;
rico:
type
"oldMemobase"
]
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"sts"
;
rico:
type
"main"
]
;
rico:
isHolderOf
"https://memobase.ch/recordSet/sts-001"
;
rico:
name
"Stadtarchiv Schaffhausen"
@de
,
"Archivio della città di Schaffhausen"
@it
,
"Archives de la ville de Schaffhouse"
@fr
;
rico:
type
"memobaseInstitution"
.
src/test/resources/data/recordSets/input.json
View file @
60b6c838
This diff is collapsed.
Click to expand it.
src/test/resources/data/recordSets/integration-turtle.ttl
View file @
60b6c838
...
...
@@ -22,20 +22,28 @@
@prefix
foaf:
<http://xmlns.com/foaf/0.1/>
.
@prefix
dc:
<http://purl.org/dc/elements/1.1/>
.
mbrs:
hgk-001
a
rico:
RecordSet
;
rdau:
P60451
mbcb:
mrv
;
internal:
isPublished
true
;
rico:
hasTitle
[
a
rico:
Title
;
rico:
title
"Videosammlung Videowochen im Wenkenpark"
@de
,
"Videosammlung Videowochen im Wenkenpark"
@fr
,
"Videosammlung Videowochen im Wenkenpark"
@it
;
rico:
type
"main"
]
;
rico:
heldBy
"https://memobase.ch/institution/hgk"
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"hgk-001"
;
rico:
type
"main"
]
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"FHNW_HGK-VWW"
;
rico:
type
"oldMemobase"
]
;
rico:
title
"Videosammlung Videowochen im Wenkenpark"
@fr
,
"Videosammlung Videowochen im Wenkenpark"
@it
,
"Videosammlung Videowochen im Wenkenpark"
@de
.
mbrs:
sap-021
a
rico:
RecordSet
;
rdau:
P60451
mbcb:
mrv
;
internal:
isPublished
true
;
rico:
hasLanguage
[
a
rico:
Language
;
schema:
sameAs
"http://www.wikidata.org/entity/Q188"
;
rico:
name
"Deutsch"
@de
,
"Allemand"
@fr
,
"Tedesco"
@it
;
rico:
type
"metadata"
]
;
rico:
hasTitle
[
a
rico:
Title
;
rico:
title
"Videobestand Marie-Jane Otth"
@de
,
"Videobestand Marie-Jane Otth"
@fr
,
"Videobestand Marie-Jane Otth"
@it
;
rico:
type
"main"
]
;
rico:
heldBy
"https://memobase.ch/institution/sap"
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"sap-021"
;
rico:
type
"main"
]
;
rico:
identifiedBy
[
a
rico:
Identifier
;
rico:
identifier
"Tanzarchiv-36560"
;
rico:
type
"oldMemobase"
]
;
rico:
isAssociatedWithDate
[
a
rico:
DateRange
;
rico:
normalizedDateValue
"1983/1985"
]
;
rico:
title
"Videobestand Marie-Jane Otth"
@de
,
"Videobestand Marie-Jane Otth"
@fr
,
"Videobestand Marie-Jane Otth"
@it
.
src/test/resources/data/recordSets/output.nt
View file @
60b6c838
<https://memobase.ch/recordSet/hgk-001> <http://rdaregistry.info/Elements/u/P60451> <https://memobase.ch/institution/mrv> .
<https://memobase.ch/recordSet/hgk-001> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#RecordSet> .
<https://memobase.ch/recordSet/hgk-001> <https://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#heldBy> "https://memobase.ch/institution/hgk" .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@de .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@fr .
<https://memobase.ch/recordSet/hgk-001> <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@it .
<https://memobase.ch/recordSet/sap-021> <http://rdaregistry.info/Elements/u/P60451> <https://memobase.ch/institution/mrv> .
<https://memobase.ch/recordSet/sap-021> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#RecordSet> .
<https://memobase.ch/recordSet/sap-021> <https://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#hasLanguage> _:B .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#heldBy> "https://memobase.ch/institution/sap" .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#isAssociatedWithDate> _:B .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@de .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@fr .
<https://memobase.ch/recordSet/sap-021> <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@it .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q188" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#DateRange> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Title> .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "FHNW_HGK-VWW" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "hgk-001" .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@de .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videosammlung Videowochen im Wenkenpark"@it .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "Tanzarchiv-36560" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "sap-021" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Allemand"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Deutsch"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Tedesco"@it .
_:B <https://www.ica.org/standards/RiC/ontology#normalizedDateValue> "1983/1985" .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@de .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Videobestand Marie-Jane Otth"@it .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "metadata" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "oldMemobase" .
\ No newline at end of file
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