diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f27b2e0d68..8385fd841be 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -112,7 +112,8 @@ Most data is pulled from Wikidata without any particular requirements, however, | Data | Requirement | |--------|--------| | Phone number | For a phone number to be displayed it must be supported by one or more references. | -| Main regulatory text | For a main regulatory text to be displayed the item describing the regulatory text must have both _full work available online at_ and _title_ statements. | +| Email address | For an email address to be displayed it must be supported by one or more references. | +| Main regulatory text | For a main regulatory text to be displayed the item describing the regulatory text must have both _full work available online at_ and _title_ statements. | You can test if an organization on Wikidata matches these requirements using the following SPARQL-query: diff --git a/queries/organization-optional.rq b/queries/organization-optional.rq index 233303ddbd1..f411071471e 100644 --- a/queries/organization-optional.rq +++ b/queries/organization-optional.rq @@ -45,6 +45,13 @@ WHERE { FILTER(EXISTS { ?phoneStatement prov:wasDerivedFrom ?reference. }) } + OPTIONAL { + ?org wdt:P968 ?email . + ?org p:P968 ?emailStatement . + ?emailStatement (ps:P968) [] . + FILTER(EXISTS { ?emailStatement prov:wasDerivedFrom ?reference. }) + } + OPTIONAL { ?wikipedia schema:about ?org ; schema:isPartOf .