Skip to content
Snippets Groups Projects
Commit ed47b9fd authored by Jonas Waeber's avatar Jonas Waeber
Browse files

update person morph to extract years!

parent 3066d999
No related branches found
Tags 1.1.1
No related merge requests found
Pipeline #59980 passed
......@@ -184,8 +184,18 @@
<data source="http://www.wikidata.org/prop/direct/P509" name="wdt:P509"/>
<!-- date of birth -->
<call-macro name="remove-datatype" predicate="http://www.wikidata.org/prop/direct/P569" abbrev="wdt:P569"/>
<!-- extract birth year -->
<data source="http://www.wikidata.org/prop/direct/P569" name="dbo:deathYear">
<regexp match="^(-?\d+)-\d{2}-\d{2}T(.*)Z$" format="${1}"/>
<not-equals string=""/>
</data>
<!-- date of death -->
<call-macro name="remove-datatype" predicate="http://www.wikidata.org/prop/direct/P570" abbrev="wdt:P570"/>
<!-- extract death year -->
<data source="http://www.wikidata.org/prop/direct/P570" name="dbo:deathYear">
<regexp match="^(-?\d+)-\d{2}-\d{2}T(.*)Z$" format="${1}"/>
<not-equals string=""/>
</data>
<!-- Open Library ID -->
<data source="http://www.wikidata.org/prop/direct/P648" name="wdt:P648"/>
<!-- Open Library URI -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment