semantic-kraus / dw-data

converts XML/TEI data into CIDOCish RDF
https://semantic-kraus.github.io/dw-data/
MIT License
0 stars 1 forks source link

dw listperson: finally, some events! #6

Closed BOberreither closed 1 year ago

BOberreither commented 1 year ago

Some person entries don't have either birth or death elements, instead one or more event elements (representing their burials, gone missing, declaration of death etc.)

So, for each event element in person,

https://sk.acdh.oeaw.ac.at/[person-xml:id]/event/[n]/time-span a ns1:E52_Time-Span ; rdfs:label "event/desc/date/@when" ; ns1:P82a_begin_of_the_begin "event/desc/date/@when"^^xsd:date ; ns1:P82b_end_of_the_end "event/desc/date/@when"^^xsd:date .

csae8092 commented 1 year ago

@linxOD just create a file e.g. extra_cidoc_utily.py (or whatever) in scripts, copy code from https://github.com/acdh-oeaw/acdh-cidoc-pyutils/blob/cde8558f5718e1e809dd196f67cd3f368eb29c46/acdh_cidoc_pyutils/__init__.py#L545 into this file (plus needed imports) and include the function in your script

see #https://github.com/acdh-oeaw/acdh-cidoc-pyutils/issues/63

linxOD commented 1 year ago

2528e55410581b21db925f7748efcc9a89977f5a and 9eeb441f8f0e32f52ed8e3399feb8b04aff7f6d8