726
edits
Line 1,505: | Line 1,505: | ||
PREFIX bnpsv: <https://beyond-notability.wikibase.cloud/prop/statement/value/> | PREFIX bnpsv: <https://beyond-notability.wikibase.cloud/prop/statement/value/> | ||
SELECT DISTINCT ?person ?personLabel ?date_label ?date ?date_prop_type ?date_prop | SELECT DISTINCT ?person ?personLabel ?date_label ?date ?date_prop_type ?date_prop ?link_prop | ||
WHERE { | WHERE { | ||
Line 1,518: | Line 1,519: | ||
rdfs:label ?date_label. filter(lang(?date_label)="en-gb") . # what kind of date it is | rdfs:label ?date_label. filter(lang(?date_label)="en-gb") . # what kind of date it is | ||
# direct link to relevant section of page | |||
BIND (REPLACE(STR(?date_prop), "^.*/([^/]*)$", "$1") as ?pid). | |||
bind(iri(concat(str(?person), "#", ?pid)) as ?link_prop ) . | |||
?s ?psv ?wdv . # for the date value | ?s ?psv ?wdv . # for the date value |
edits