Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit 7b7930ff authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix carrier type reporting

parent 18c00ddc
...@@ -47,8 +47,8 @@ class CarrierTypeNormalizer( ...@@ -47,8 +47,8 @@ class CarrierTypeNormalizer(
} }
null null
} else { } else {
log.error("Could not map the following language value: $nameValue.") log.error("Could not map the following carrier type value: $nameValue.")
"Could not map the following language value: $nameValue." "Could not map the following carrier type value: $nameValue."
} }
} }
......
...@@ -14,10 +14,6 @@ import java.io.FileOutputStream ...@@ -14,10 +14,6 @@ import java.io.FileOutputStream
@TestInstance(TestInstance.Lifecycle.PER_CLASS) @TestInstance(TestInstance.Lifecycle.PER_CLASS)
internal class TestLanguageNormalizer { internal class TestLanguageNormalizer {
/*
TODO: Find a way to properly test / validate rdf structures. (Use SHACL shapes)
*/
@Test @Test
fun `test language normalizer`() { fun `test language normalizer`() {
val memobaseModel = MemobaseModel() val memobaseModel = MemobaseModel()
...@@ -33,15 +29,15 @@ internal class TestLanguageNormalizer { ...@@ -33,15 +29,15 @@ internal class TestLanguageNormalizer {
.addProperty(RICO.hasLanguage, language) .addProperty(RICO.hasLanguage, language)
val n = NormalizeLanguages( val n = NormalizeLanguages(
"src/test/resources/facets/languages.csv", "src/test/resources/global/facets/languages.csv",
"src/test/resources/facets/language_labels.csv" "src/test/resources/global/facets/language_labels.csv"
) )
val transform = n.generate() val transform = n.generate()
val output = transform.transform(language, memobaseModel) val output = transform.transform(language, memobaseModel)
RDFDataMgr.write( RDFDataMgr.write(
FileOutputStream("src/test/resources/tmp/turtle-output-language-normalization.ttl"), FileOutputStream("src/test/resources/tmp/turtle-output-language-normalization.ttl"),
memobaseModel, memobaseModel,
RDFFormat.TURTLE_PRETTY RDFFormat.NTRIPLES
) )
assertAll("", assertAll("",
{ {
......
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