Commit 2cc54f73 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Made institution description text optional.

parent 5fb92df7
Pipeline #20360 passed with stages
in 3 minutes and 59 seconds
......@@ -62,9 +62,18 @@ class RdfTransformer(properties: Properties) {
resource.addProperty(RICO.name, langLiteral(input.title, "de"))
resource.addProperty(RICO.name, langLiteral(input.title_fr, "fr"))
resource.addProperty(RICO.name, langLiteral(input.title_it, "it"))
resource.addProperty(RICO.descriptiveNote, langLiteral(input.field_text.value, "de"))
resource.addProperty(RICO.descriptiveNote, langLiteral(input.field_text_fr.value, "fr"))
resource.addProperty(RICO.descriptiveNote, langLiteral(input.field_text_it.value, "it"))
input.field_text.let {
if (it != null)
resource.addProperty(RICO.descriptiveNote, langLiteral(it.value, "de"))
}
input.field_text_fr.let {
if (it != null)
resource.addProperty(RICO.descriptiveNote, langLiteral(it.value, "fr"))
}
input.field_text_it.let {
if (it != null)
resource.addProperty(RICO.descriptiveNote, langLiteral(it.value, "it"))
}
input.field_address.forEach { address ->
val location = generateLocationResource(model, address)
......
......@@ -36,9 +36,9 @@ data class Institution(
val field_website: Link?,
val field_link_archive_catalog: Link?,
val field_text: RichText,
val field_text_fr: RichText,
val field_text_it: RichText,
val field_text: RichText?,
val field_text_fr: RichText?,
val field_text_it: RichText?,
val field_institution_types: List<String>,
val field_wikidata_id: String,
......
......@@ -112,7 +112,7 @@ class Test {
},
{
assertThat(key)
.isEqualTo("https://memobase.ch/institution/RadioX")
.isEqualTo("https://memobase.ch/institution/zbz")
}
)
}
......
{
"type": "node--institution",
"status": true,
"title": "RadioX",
"title_fr": "Test institution Oana (FR)",
"title_it": "Test institution Oana (IT)",
"title": "Zentralbibliothek Zürich",
"title_fr": "Zentralbibliothek Zürich",
"title_it": "Zentralbibliothek Zürich",
"field_address": [
{
"langcode": "",
"country_code": "CH",
"administrative_area": "BS",
"locality": "Münchenstein",
"administrative_area": "ZH",
"locality": "Zürich",
"dependent_locality": null,
"postal_code": "4142",
"postal_code": "8001",
"sorting_code": null,
"address_line1": " Oslo-Strasse 8",
"address_line1": "Zähringerplatz 6",
"address_line2": "",
"organization": "Radio X",
"organization": "",
"given_name": null,
"additional_name": null,
"family_name": null,
"coordinates": "47.5602571, 7.5804113"
},
{
"langcode": "",
"country_code": "CH",
"administrative_area": "BE",
"locality": "Bern",
"dependent_locality": null,
"postal_code": "3005",
"sorting_code": null,
"address_line1": "Helvetiapl. 5",
"address_line2": "",
"organization": "Bernisches Historisches Museum ",
"given_name": null,
"additional_name": null,
"family_name": null,
"coordinates": "46.9531243, 7.434256"
"coordinates": "8.545277777, 47.374166666"
}
],
"field_isil": null,
"field_memobase_id": "RadioX",
"field_old_memobase_id": "test_radio_x",
"field_email": "radiox@test.com",
"field_isil": "CH-000008-6",
"field_memobase_id": "zbz",
"field_old_memobase_id": "ZB",
"field_email": "zb@zb.uzh.ch",
"field_website": {
"uri": "https://radiox.ch/",
"uri": "https://www.zb.uzh.ch",
"title": "",
"options": []
},
"field_wikidata_id": "http://test.test",
"field_wikidata_id": "http://www.wikidata.org/wiki/Q190260",
"field_link_archive_catalog": {
"uri": "http://online-archiv-radiox.com",
"uri": "https://www.recherche-portal.ch/",
"title": "",
"options": []
},
"field_text": {
"value": "<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>\r\n",
"format": "editorial",
"processed": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."
},
"field_text_fr": {
"value": "<p>test_description&nbsp;(FR)</p>\r\n",
"format": "editorial",
"processed": "test_description (FR)"
},
"field_text_it": {
"value": "<p>test_description&nbsp;&nbsp;(IT)</p>\r\n",
"value": "<p>Die Zentralbibliothek Zürich ist die Kantons- Stadt- und Universitätsbibliothek von Zürich. Mit über 6 Millionen Dokumenten und mehr als einer halben Million Besucher pro Jahr ist sie eine der grössten Schweizer Bibliotheken. Ihre fünf Spezialsammlungen - Handschriften, Alte Drucke, Graphik, Karten und Musik - verfügen über reiche historische und aktuelle Archivalien, Nachlässe, Bild- und Tondokumente. test</p>\r\n",
"format": "editorial",
"processed": "test_description (IT)"
"processed": "<p>Die Zentralbibliothek Zürich ist die Kantons- Stadt- und Universitätsbibliothek von Zürich. Mit über 6 Millionen Dokumenten und mehr als einer halben Million Besucher pro Jahr ist sie eine der grössten Schweizer Bibliotheken. Ihre fünf Spezialsammlungen - Handschriften, Alte Drucke, Graphik, Karten und Musik - verfügen über reiche historische und aktuelle Archivalien, Nachlässe, Bild- und Tondokumente. test</p>"
},
"field_text_fr": null,
"field_text_it": null,
"field_institution_types": [
"http://www.wikidata.org/wiki/Q166118",
"http://www.wikidata.org/wiki/Q327333"
"http://www.wikidata.org/wiki/Q7075"
],
"recordset_ids": [
"RadioX-Kampagnen"
"001"
],
"computed_teaser_image_url": "https://mb-wf1.memobase.unibas.ch/sites/default/files/styles/teaser/public/2020-10/1.jpg?itok=5ncVBnVQ"
"computed_teaser_image_url": null
}
\ No newline at end of file
<https://memobase.ch/institution/RadioX> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P18> "https://mb-wf1.memobase.unibas.ch/sites/default/files/styles/teaser/public/2020-10/1.jpg?itok=5ncVBnVQ" .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P2699> "http://online-archiv-radiox.com" .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q166118> .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q327333> .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P856> "https://radiox.ch/" .
<https://memobase.ch/institution/RadioX> <http://www.wikidata.org/prop/direct/P968> "radiox@test.com" .
<https://memobase.ch/institution/RadioX> <https://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>"@de .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>test_description&nbsp;&nbsp;(IT)</p>"@it .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>test_description&nbsp;(FR)</p>"@fr .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#hasLocation> _:B .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#hasLocation> _:B .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#isHolderOf> "https://memobase.ch/recordSet/RadioX-Kampagnen" .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#name> "RadioX"@de .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#name> "Test institution Oana (FR)"@fr .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#name> "Test institution Oana (IT)"@it .
<https://memobase.ch/institution/RadioX> <https://www.ica.org/standards/RiC/ontology#type> "memobaseInstitution" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q11911" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q12172" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q69030" .
<https://memobase.ch/institution/zbz> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
<https://memobase.ch/institution/zbz> <http://www.wikidata.org/prop/direct/P2699> "https://www.recherche-portal.ch/" .
<https://memobase.ch/institution/zbz> <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7075> .
<https://memobase.ch/institution/zbz> <http://www.wikidata.org/prop/direct/P791> "CH-000008-6" .
<https://memobase.ch/institution/zbz> <http://www.wikidata.org/prop/direct/P856> "https://www.zb.uzh.ch" .
<https://memobase.ch/institution/zbz> <http://www.wikidata.org/prop/direct/P968> "zb@zb.uzh.ch" .
<https://memobase.ch/institution/zbz> <https://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "<p>Die Zentralbibliothek Zürich ist die Kantons- Stadt- und Universitätsbibliothek von Zürich. Mit über 6 Millionen Dokumenten und mehr als einer halben Million Besucher pro Jahr ist sie eine der grössten Schweizer Bibliotheken. Ihre fünf Spezialsammlungen - Handschriften, Alte Drucke, Graphik, Karten und Musik - verfügen über reiche historische und aktuelle Archivalien, Nachlässe, Bild- und Tondokumente. test</p>"@de .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#hasLocation> _:B .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#isHolderOf> "https://memobase.ch/recordSet/001" .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#name> "Zentralbibliothek Zürich"@de .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#name> "Zentralbibliothek Zürich"@fr .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#name> "Zentralbibliothek Zürich"@it .
<https://memobase.ch/institution/zbz> <https://www.ica.org/standards/RiC/ontology#type> "memobaseInstitution" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q11943" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q72" .
_: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#Place> .
_: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#Place> .
_: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#Place> .
_:B <http://www.wikidata.org/prop/direct/P131> _:B .
_:B <http://www.wikidata.org/prop/direct/P131> _:B .
_:B <http://www.wikidata.org/prop/direct/P131> _:B .
_:B <http://www.wikidata.org/prop/direct/P131> _:B .
_:B <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> .
_:B <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> .
_:B <http://www.wikidata.org/prop/direct/P281> "3005" .
_:B <http://www.wikidata.org/prop/direct/P281> "4142" .
_:B <http://www.wikidata.org/prop/direct/P625> "46.9531243, 7.434256" .
_:B <http://www.wikidata.org/prop/direct/P625> "47.5602571, 7.5804113" .
_:B <http://www.wikidata.org/prop/direct/P6375> "Helvetiapl. 5" .
_:B <http://www.wikidata.org/prop/direct/P6375> "Oslo-Strasse 8" .
_:B <http://www.wikidata.org/prop/direct/P669> "Helvetiapl." .
_:B <http://www.wikidata.org/prop/direct/P669> "Oslo-Strasse" .
_:B <http://www.wikidata.org/prop/direct/P670> "5" .
_:B <http://www.wikidata.org/prop/direct/P670> "8" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "RadioX" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "test_radio_x" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Basel-Stadt"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Basilea Città"@it .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Bern" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Bern"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Berna"@it .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Berne"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Bâle-Ville"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Münchenstein"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Münchenstein"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Münchenstein"@it .
_:B <https://www.ica.org/standards/RiC/ontology#type> "canton" .
_:B <http://www.wikidata.org/prop/direct/P281> "8001" .
_:B <http://www.wikidata.org/prop/direct/P625> "8.545277777, 47.374166666" .
_:B <http://www.wikidata.org/prop/direct/P6375> "Zähringerplatz 6" .
_:B <http://www.wikidata.org/prop/direct/P669> "Zähringerplatz" .
_:B <http://www.wikidata.org/prop/direct/P670> "6" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "ZB" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "zbz" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zurich"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zurich"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zurigo"@it .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zurigo"@it .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zürich"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Zürich"@de .
_:B <https://www.ica.org/standards/RiC/ontology#type> "canton" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "municipality" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "municipality" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "oldMemobase" .
\ No newline at end of file
......@@ -22,57 +22,40 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
mbcb:RadioX a rico:CorporateBody ;
wdt:P18 "https://mb-wf1.memobase.unibas.ch/sites/default/files/styles/teaser/public/2020-10/1.jpg?itok=5ncVBnVQ" ;
wdt:P2699 "http://online-archiv-radiox.com" ;
wdt:P31 wd:Q327333 , wd:Q166118 ;
wdt:P856 "https://radiox.ch/" ;
wdt:P968 "radiox@test.com" ;
mbcb:zbz a rico:CorporateBody ;
wdt:P2699 "https://www.recherche-portal.ch/" ;
wdt:P31 wd:Q7075 ;
wdt:P791 "CH-000008-6" ;
wdt:P856 "https://www.zb.uzh.ch" ;
wdt:P968 "zb@zb.uzh.ch" ;
internal:isPublished true ;
rico:descriptiveNote "<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>"@de , "<p>test_description&nbsp;&nbsp;(IT)</p>"@it , "<p>test_description&nbsp;(FR)</p>"@fr ;
rico:descriptiveNote "<p>Die Zentralbibliothek Zürich ist die Kantons- Stadt- und Universitätsbibliothek von Zürich. Mit über 6 Millionen Dokumenten und mehr als einer halben Million Besucher pro Jahr ist sie eine der grössten Schweizer Bibliotheken. Ihre fünf Spezialsammlungen - Handschriften, Alte Drucke, Graphik, Karten und Musik - verfügen über reiche historische und aktuelle Archivalien, Nachlässe, Bild- und Tondokumente. test</p>"@de ;
rico:hasLocation [ a rico:Place ;
wdt:P131 [ a rico:Place ;
schema:sameAs "http://www.wikidata.org/entity/Q11911" ;
rico:name "Bern"@de , "Berne"@fr , "Berna"@it ;
schema:sameAs "http://www.wikidata.org/entity/Q11943" ;
rico:name "Zürich"@de , "Zurich"@fr , "Zurigo"@it ;
rico:type "canton"
] ;
wdt:P131 [ a rico:Place ;
rico:name "Bern" ;
rico:type "municipality"
] ;
wdt:P17 wd:Q39 ;
wdt:P281 "3005" ;
wdt:P625 "46.9531243, 7.434256" ;
wdt:P6375 "Helvetiapl. 5" ;
wdt:P669 "Helvetiapl." ;
wdt:P670 "5"
] ;
rico:hasLocation [ a rico:Place ;
wdt:P131 [ a rico:Place ;
schema:sameAs "http://www.wikidata.org/entity/Q12172" ;
rico:name "Basel-Stadt"@de , "Bâle-Ville"@fr , "Basilea Città"@it ;
rico:type "canton"
] ;
wdt:P131 [ a rico:Place ;
schema:sameAs "http://www.wikidata.org/entity/Q69030" ;
rico:name "Münchenstein"@de , "Münchenstein"@fr , "Münchenstein"@it ;
schema:sameAs "http://www.wikidata.org/entity/Q72" ;
rico:name "Zürich"@de , "Zurich"@fr , "Zurigo"@it ;
rico:type "municipality"
] ;
wdt:P17 wd:Q39 ;
wdt:P281 "4142" ;
wdt:P625 "47.5602571, 7.5804113" ;
wdt:P6375 "Oslo-Strasse 8" ;
wdt:P669 "Oslo-Strasse" ;
wdt:P670 "8"
wdt:P281 "8001" ;
wdt:P625 "8.545277777, 47.374166666" ;
wdt:P6375 "Zähringerplatz 6" ;
wdt:P669 "Zähringerplatz" ;
wdt:P670 "6"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "test_radio_x" ;
rico:type "oldMemobase"
rico:identifier "zbz" ;
rico:type "main"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "RadioX" ;
rico:type "main"
rico:identifier "ZB" ;
rico:type "oldMemobase"
] ;
rico:isHolderOf "https://memobase.ch/recordSet/RadioX-Kampagnen" ;
rico:name "RadioX"@de , "Test institution Oana (FR)"@fr , "Test institution Oana (IT)"@it ;
rico:isHolderOf "https://memobase.ch/recordSet/001" ;
rico:name "Zentralbibliothek Zürich"@de , "Zentralbibliothek Zürich"@fr , "Zentralbibliothek Zürich"@it ;
rico:type "memobaseInstitution" .
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