Commit 1cfdbe32 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Refactor joiner to join on yaml file.

parent 58281054
Pipeline #16047 passed with stages
in 5 minutes and 10 seconds
......@@ -37,6 +37,7 @@ import org.memobase.settings.SettingsLoader
import settings.HeaderExtractionTransformSupplier
import settings.HeaderMetadata
import java.io.ByteArrayInputStream
import java.nio.charset.Charset
class KafkaTopology(
private val settings: SettingsLoader
......@@ -45,12 +46,17 @@ class KafkaTopology(
private val reportTopic = settings.processReportTopic
private val klaxon = Klaxon()
private val configJoiner = ConfigJoiner<String, MapperConfiguration>(
private val configJoiner = ConfigJoiner<String, ByteArray>(
ImportService.Mapping,
Serdes.String(),
Serdes.serdeFrom(
{ _, data -> klaxon.toJsonString(data).toByteArray() },
{ _, data -> klaxon.parse<MapperConfiguration>(ByteArrayInputStream(data)) }),
{ _, data ->
data
},
{ _, data ->
data
}
),
this::parseConfig
)
......@@ -66,6 +72,7 @@ class KafkaTopology(
configJoiner.join(stream, configStream)
val jsonStream = joinedStream
.mapValues { value -> Pair(value.left, MappingConfigurationParser(value.right).get()) }
.flatMapValues { value -> parseJsonFile(value) }
val extractedRecordIdStream = jsonStream
......@@ -148,12 +155,12 @@ class KafkaTopology(
return hasRecordTypeValue[0]
}
private fun parseJsonFile(input: JoinedValues<String, MapperConfiguration>):
private fun parseJsonFile(input: Pair<String, MapperConfiguration>):
List<Pair<Map<String, String>, MapperConfiguration>> {
return try {
Klaxon().parse<Map<String, String>>(input.left).let {
Klaxon().parse<Map<String, String>>(input.first).let {
if (it != null) {
listOf(Pair(it, input.right))
listOf(Pair(it, input.second))
} else {
// TODO: REPORT EMPTY JSON
emptyList()
......@@ -176,7 +183,7 @@ class KafkaTopology(
)
}
private fun parseConfig(data: ByteArray): MapperConfiguration {
return MappingConfigurationParser(data).get()
private fun parseConfig(data: ByteArray): ByteArray {
return data
}
}
\ No newline at end of file
......@@ -29,6 +29,7 @@ import org.apache.kafka.streams.TopologyTestDriver
import org.apache.kafka.streams.test.ConsumerRecordFactory
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.api.assertAll
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.MethodSource
import org.memobase.params.IntegrationTestParams
......@@ -120,134 +121,123 @@ class IntegrationTests {
RDFFormat.TURTLE_PRETTY
)
val key = record.key()
val sortedResult = sort(record.value().lines()).trim()
assertThat(sortedResult)
.isEqualTo(sort(output).trim())
val reportRecord = testDriver.readOutput(
service.settings.processReportTopic,
StringDeserializer(),
StringDeserializer()
)
assertThat(Klaxon().parse<Report>(reportRecord.value()))
.isEqualTo(params.report)
val reportString = reportRecord.value()
assertAll("",
{ assertThat(key).isEqualTo(params.expectedKey) },
{
assertThat(sortedResult)
.isEqualTo(sort(output).trim())
},
{
assertThat(Klaxon().parse<Report>(reportString))
.isEqualTo(params.report)
}
)
}
private fun kafkaTests() = Stream.of(
IntegrationTestParams(
1,
"MEI_49884",
listOf(
"https://memobase.ch/record/BAZ-B_MEI-MEI_49884",
"https://memobase.ch/instantiation/physical/BAZ-MEI_49884-1"
),
Report(
"https://memobase.ch/record/test-institution-id-MEI_49884",
"SUCCESS",
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-MEI_49884."
)
)/*,
/* IntegrationTestParams(
1,
"MEI_49884",
listOf(
"https://memobase.ch/record/BAZ-B_MEI-MEI_49884",
"https://memobase.ch/instantiation/physical/BAZ-MEI_49884-1"
),
Report(
"https://memobase.ch/record/test-institution-id-MEI_49884",
"SUCCESS",
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-MEI_49884."
)
),
IntegrationTestParams(
2,
"Sig Han 1293",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293",
"https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1"
),
"https://memobase.ch/record/test-institution-id-Sig_Han_1293",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293",
"https://memobase.ch/record/test-institution-id-Sig_Han_1293",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-Sig_Han_1293."
)
),
IntegrationTestParams(
3,
"Sig Han 1293",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293",
"https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1",
"https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1"
),
"ttps://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293",
"https://memobase.ch/record/test-institution-id-Sig_Han_1293",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-Sig_Han_1293."
)
),
IntegrationTestParams(
4,
"Sig Han 1293",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-sigantur-example",
"https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1"
),
"InputKey",
"https://memobase.ch/record/test-institution-id-sigantur-example",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-sigantur-example",
"https://memobase.ch/record/test-institution-id-sigantur-example",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-sigantur-example."
)
),
),*/
IntegrationTestParams(
5,
"ID_1",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1"
),
"https://memobase.ch/record/test-institution-id-ID_1",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1",
"https://memobase.ch/record/test-institution-id-ID_1",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-ID_1."
)
),
)/*,
IntegrationTestParams(
6,
"ID_1",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1"
),
"https://memobase.ch/record/test-institution-id-ID_1",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1",
"https://memobase.ch/record/test-institution-id-ID_1",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-ID_1."
)
),
IntegrationTestParams(
7,
"ID_1",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1"
),
"https://memobase.ch/record/test-institution-id-ID_1",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1",
"https://memobase.ch/record/test-institution-id-ID_1",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-ID_1."
)
),
IntegrationTestParams(
8,
"ID_1",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1"
),
"https://memobase.ch/record/test-institution-id-ID_1",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1",
"https://memobase.ch/record/test-institution-id-ID_1",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-ID_1."
)
),
IntegrationTestParams(
9,
"ID_1",
listOf(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1"
),
"https://memobase.ch/record/test-institution-id-ID_1",
Report(
"https://memobase.ch/record/TEST_RECORD_SET-ID_1",
"https://memobase.ch/record/test-institution-id-ID_1",
"SUCCESS",
"Successfully created a record from source."
"Successfully mapped record with id https://memobase.ch/record/test-institution-id-ID_1."
)
)*/
)
......
......@@ -23,6 +23,6 @@ import org.memobase.Report
data class IntegrationTestParams(
val count: Int,
val key: String,
val expectedKeys: List<String>,
val expectedKey: String,
val report: Report
)
\ No newline at end of file
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/TEST_RECORD_SET> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#type> "Video" .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/test-institution-id-Sig_Han_1293> .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/test-record-set-id> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/test-institution-id> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#type> "Video" .
_:B <http://schema.org/sameAs> "http://rightsstatements.org/vocab/InC/1.0/" .
_: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#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-Sig_Han_1293" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-Sig_Han_1293" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Familie XYZ" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "In Copyright (InC)" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "public" .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "holder" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
......
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <http://rdaregistry.info/Elements/u/P60558> "farbe" .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "format"@de .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#hasDerivedInstantiation> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "bildformat"@de .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "codec"@de .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://purl.org/dc/terms/spatial> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://rdaregistry.info/Elements/u/P60441> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://schema.org/sameAs> "http://example.org/stuff" .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/TEST_RECORD_SET> .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#scopeAndContent> "Kontext text"@de .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#title> "Das ist ein Titel"@de .
<https://memobase.ch/record/TEST_RECORD_SET-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#type> "Tonbildschau" .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "http://exampl.org/video/play" .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/test-institution-id-Sig_Han_1293> .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <http://rdaregistry.info/Elements/u/P60558> "farbe" .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "10:10:10" .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasMedium> "format"@de .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#hasDerivedInstantiation> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/test-institution-id-Sig_Han_1293> .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "bildformat"@de .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "codec"@de .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B .
<https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <http://schema.org/sameAs> "http://example.org/stuff" .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Eine Bespielbeschreibung"@de .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/test-record-set-id> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/test-institution-id> .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#scopeAndContent> "Kontext text"@de .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#title> "Das ist ein Titel"@de .
<https://memobase.ch/record/test-institution-id-Sig_Han_1293> <https://www.ica.org/standards/RiC/ontology#type> "Tonbildschau" .
_:B <http://schema.org/sameAs> "http://rightsstatements.org/vocab/InC/1.0/" .
_:B <http://schema.org/sameAs> "http://rightsstatements.org/vocab/InC/1.0/" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Agent> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
_: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#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#Place> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Genre" .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Sachthemen" .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "name"@de .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "name"@de .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "Sig Han 1293" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-Sig_Han_1293" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-Sig_Han_1293" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-Sig_Han_1293-1" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Familie XYZ" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "In Copyright (InC)" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "In Copyright (InC)" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "name"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "name"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "person-körperschaft"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "public" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "public" .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/TEST_RECORD_SET-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/test-institution-id-Sig_Han_1293-1> .
_:B <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "callNumber" .
......
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#conditionsOfUse> "Blablabla" .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "ID Film: id_film"@fr .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Métrage: metrage"@fr .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Procede Son: procede_son"@fr .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Rapporto d'aspetto: seitenverhältnis_it"@it .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Seitenverhältnis: seitenverhältnis_de"@de .
<https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/TEST_RECORD_SET-sigantur-example-1> .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/TEST_RECORD_SET> .
<https://memobase.ch/record/TEST_RECORD_SET-sigantur-example> <https://www.ica.org/standards/RiC/ontology#type> "Foto" .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#conditionsOfUse> "Blablabla" .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/test-institution-id-sigantur-example> .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "ID Film: id_film"@fr .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Métrage: metrage"@fr .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Procede Son: procede_son"@fr .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Rapporto d'aspetto: seitenverhältnis_it"@it .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Seitenverhältnis: seitenverhältnis_de"@de .
<https://memobase.ch/physical/test-institution-id-sigantur-example-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/record/test-institution-id-sigantur-example> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/test-institution-id-sigantur-example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/test-institution-id-sigantur-example> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/test-institution-id-sigantur-example-1> .
<https://memobase.ch/record/test-institution-id-sigantur-example> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/test-record-set-id> .
<https://memobase.ch/record/test-institution-id-sigantur-example> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/test-institution-id-sigantur-example> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/test-institution-id> .
<https://memobase.ch/record/test-institution-id-sigantur-example> <https://www.ica.org/standards/RiC/ontology#type> "Foto" .
_: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 <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-sigantur-example" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-sigantur-example-1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-sigantur-example" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-sigantur-example-1" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
\ No newline at end of file
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/TEST> .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/TEST_RECORD_SET> .
<https://memobase.ch/record/TEST_RECORD_SET-ID_1> <https://www.ica.org/standards/RiC/ontology#type> "Foto" .
<https://memobase.ch/record/test-institution-id-ID_1> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/test-institution-id-ID_1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B .
<https://memobase.ch/record/test-institution-id-ID_1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/test-institution-id-ID_1> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/test-institution-id-ID_1> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/test-record-set-id> .
<https://memobase.ch/record/test-institution-id-ID_1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/record/test-institution-id-ID_1> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/test-institution-id> .
<https://memobase.ch/record/test-institution-id-ID_1> <https://www.ica.org/standards/RiC/ontology#type> "Foto" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
......@@ -13,5 +13,5 @@ _:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Genre" .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Mots clés" .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Genre 1, Genre 2"@fr .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Schlagwort 1, Schlagwort 2"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "TEST_RECORD_SET-ID_1" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test-institution-id-ID_1" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
\ No newline at end of file
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