swiss-art-research-net / skkg-pipeline

ETL pipeline for the Sammlung Digital project
2 stars 0 forks source link

Map ObjDatePeriodVgr #153

Closed fkraeutli closed 6 months ago

fkraeutli commented 6 months ago

Vocabulary contains date ranges in name. e.g.

<vocabularyReference name="PeriodVoc" id="40088" instanceName="ObjDatePeriodVgr">
    <vocabularyReferenceItem id="149999" name="301;400">
         <formattedValue language="de">4. Jh.</formattedValue>
    </vocabularyReferenceItem>
</vocabularyReference>
fkraeutli commented 6 months ago

Added date spans as xsd:year

PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX type: <https://data.skkg.ch/type/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT * WHERE {
  ?s a crm:E55_Type ;
     skos:prefLabel ?label ;
     crm:P127_has_broader_term type:40088 .
  OPTIONAL {
    ?s crm:P82a_begin_of_the_begin ?begin .
  }
  OPTIONAL {
    ?s crm:P82b_end_of_the_end ?end
  }
} ORDER BY ?begin

Term https://data.skkg.ch/type/40088/207984 'Ende 15. Jh.' appears to be missing date information though