Property talk:P502
Latest comment: 5 years ago by Pigsonthewing in topic Proposal - Change Data type of HURDAT ID (P502) from String to External identifier
Documentation
HURDAT ID
identifier per HURDAT (North Atlantic hurricane database)
identifier per HURDAT (North Atlantic hurricane database)
Description | Tropical cyclone identified in the NOAA AOML HRD's HURDAT database | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Represents | HURDAT (Q5636186) | ||||||||||||
Data type | External identifier | ||||||||||||
Domain | According to this template:
tropical cyclone [ tropical cyclone (Q8092)] items within the Atlantic, eastern Pacific, and central Pacific tropical cyclone basins
According to statements in the property:
When possible, data should only be stored as statementscyclone (Q79602) | ||||||||||||
Allowed values | (AL|EP|CP)\d{2}(1[89]|20)\d{2} (letters "AL," "EP," or "CP" followed, without a space, by a six-number string, the first two numbers indicating the storm number, and the last four indicating the year) | ||||||||||||
Example | Hurricane Sandy (Q264) → AL182012 Hurricane Hernan (Q498340) → EP102002 | ||||||||||||
Source | Atlantic source full listing | ||||||||||||
Formatter URL | https://wikidata-externalid-url.toolforge.org/?p=502&url_prefix=https://www.nhc.noaa.gov/archive/&id=$1 https://www.nhc.noaa.gov/archive/$1/ (Can only link to list for year < 2005) https://www.nhc.noaa.gov/archive/$3/\L$1$2/ ("\L$1" is a lowercasing operator; so "AL182012" will be replaced with "https://www.nhc.noaa.gov/archive/2012/al18/") | ||||||||||||
See also | JTWC tropical cyclone ID (P3399), IBTrACS cyclone ID (P4540), Digital Typhoon typhoon ID (P5015), Digital Typhoon cyclone ID (P5016) | ||||||||||||
Lists |
| ||||||||||||
Proposal discussion | Proposal discussion | ||||||||||||
Current uses |
| ||||||||||||
Search for values |
[create Create a translatable help page (preferably in English) for this property to be included here]
Distinct values: this property likely contains a value that is different from all other items. (Help)
List of violations of this constraint: Database reports/Constraint violations/P502#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Hurricane Cesar–Douglas (Q3137650), Hurricane Irene–Olivia (Q1473273), Hurricane Fifi–Orlene (Q3243984), Hurricane Greta–Olivia (Q7485697), Hurricane Joan–Miriam (Q8349158), Tropical Storm Hermine (Q1141228), Hurricane Ruby (Q64212557)List of violations of this constraint: Database reports/Constraint violations/P502#Single value, SPARQL
Format “
List of violations of this constraint: Database reports/Constraint violations/P502#Format, hourly updated report, SPARQL(AL|EP|CP|WP)\d{2}(1[89]|20)\d{2}
”: value must be formatted using this pattern (PCRE syntax). (Help)Type “cyclone (Q79602)”: item must contain property “instance of (P31)” with classes “cyclone (Q79602)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: October 1999 Mexico floods (Q7076905)List of violations of this constraint: Database reports/Constraint violations/P502#Type Q79602, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P502#Scope, hourly updated report, SPARQLAllowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P502#Entity types
Check correspondence between the year in the identifier and the year of the event
Check when the ID contain the year (Help)
Violations query:
List of this constraint violations: Database reports/Complex constraint violations/P502#Check correspondence between the year in the identifier and the year of the event
Check when the ID contain the year (Help)
Violations query:
SELECT ?item { ?item wdt:P502 ?value. ?item wdt:P580 ?begin. BIND (YEAR(?begin) AS ?beginYear). BIND (SUBSTR(?value, 5, 4) AS ?substr). FILTER (STR(?beginYear) != ?substr) }
List of this constraint violations: Database reports/Complex constraint violations/P502#Check correspondence between the year in the identifier and the year of the event
Data type External identifier?
editThe property HURDAT HURDAT ID (P502) is described as an identifier per HURDAT (North Atlantic hurricane database) The property has datatype String. But is is described With Wikidata property for authority control (Q18614948). Should the Property therefore have datatype External identifier? Pmt (talk) 21:46, 25 September 2018 (UTC)
- I think the main reason this was initially skipped is that the link varies based on its value. In the meantime, the redirector service takes care of that so this could easily be converted. As you already advertised it on project chat, you might want to Wikidata:Contact the development team and ask for conversion. --- Jura 08:46, 6 October 2018 (UTC)
Proposal - Change Data type of HURDAT ID (P502) from String to External identifier
editI think String is the wrong type for HURDAT ID (P502). Can we please change it to be External identifier.
As per Help:Data_type#Changing_datatype please indicate support/opposition below. Iwan.Aucamp (talk) 16:52, 15 October 2019 (UTC)
Discussion
edit- Comment for your attention @Pmt: Iwan.Aucamp (talk) 17:08, 15 October 2019 (UTC)
- Support This one makes sense. ArthurPSmith (talk) 17:24, 15 October 2019 (UTC)
- Support. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:34, 15 October 2019 (UTC)