Commit 5b63a56a authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add is published property.

parent 4537fca0
Pipeline #17034 passed with stages
in 5 minutes and 7 seconds
...@@ -35,7 +35,7 @@ dependencies { ...@@ -35,7 +35,7 @@ dependencies {
// https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client // https://mvnrepository.com/artifact/org.elasticsearch.client/elasticsearch-rest-high-level-client
//compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.1.0' //compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.1.0'
implementation 'org.memobase:memobase-service-utilities:0.14.0' implementation 'org.memobase:memobase-service-utilities:0.17.0'
// Logging Framework // Logging Framework
implementation "org.apache.logging.log4j:log4j-api:${log4jV}" implementation "org.apache.logging.log4j:log4j-api:${log4jV}"
......
...@@ -35,7 +35,8 @@ import org.memobase.rdf.NS ...@@ -35,7 +35,8 @@ import org.memobase.rdf.NS
import org.memobase.rdf.RDF import org.memobase.rdf.RDF
import org.memobase.rdf.RICO import org.memobase.rdf.RICO
import org.memobase.rdf.SCHEMA import org.memobase.rdf.SCHEMA
import rdf.WD import org.memobase.rdf.WD
import rdf.MB
class Transform { class Transform {
private val log = LogManager.getLogger("InstitutionTransform") private val log = LogManager.getLogger("InstitutionTransform")
...@@ -49,6 +50,7 @@ class Transform { ...@@ -49,6 +50,7 @@ class Transform {
val resource = model.createResource(NS.mbcb + input.field_memobase_id) val resource = model.createResource(NS.mbcb + input.field_memobase_id)
resource.addProperty(RDF.type, RICO.CorporateBody) resource.addProperty(RDF.type, RICO.CorporateBody)
resource.addProperty(RICO.type, "memobaseInstitution") resource.addProperty(RICO.type, "memobaseInstitution")
resource.addLiteral(MB.isPublished, input.status)
val identifier = model.createResource() val identifier = model.createResource()
identifier.addProperty(RDF.type, RICO.Identifier) identifier.addProperty(RDF.type, RICO.Identifier)
......
<https://memobase.ch/institution/RadioX> <http://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<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.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/P2699> "http://online-archiv-radiox.com" . <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/Q166118> .
......
...@@ -23,28 +23,12 @@ ...@@ -23,28 +23,12 @@
@prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix dc: <http://purl.org/dc/elements/1.1/> .
mbcb:RadioX a rico:CorporateBody ; mbcb:RadioX a rico:CorporateBody ;
internal:isPublished true ;
wdt:P2699 "http://online-archiv-radiox.com" ; wdt:P2699 "http://online-archiv-radiox.com" ;
wdt:P31 wd:Q327333 , wd:Q166118 ; wdt:P31 wd:Q327333 , wd:Q166118 ;
wdt:P856 "https://radiox.ch/" ; wdt:P856 "https://radiox.ch/" ;
wdt:P968 "radiox@test.com" ; wdt:P968 "radiox@test.com" ;
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>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: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 ;
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 ; rico:hasLocation [ a rico:Place ;
wdt:P131 [ a rico:Place ; wdt:P131 [ a rico:Place ;
schema:sameAs "http://www.wikidata.org/entity/Q12172" ; schema:sameAs "http://www.wikidata.org/entity/Q12172" ;
...@@ -63,6 +47,23 @@ mbcb:RadioX a rico:CorporateBody ; ...@@ -63,6 +47,23 @@ mbcb:RadioX a rico:CorporateBody ;
wdt:P669 "Oslo-Strasse" ; wdt:P669 "Oslo-Strasse" ;
wdt:P670 "8" wdt:P670 "8"
] ; ] ;
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 ;
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:identifiedBy [ a rico:Identifier ; rico:identifiedBy [ a rico:Identifier ;
rico:identifier "RadioX" ; rico:identifier "RadioX" ;
rico:type "main" rico:type "main"
......
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