Nothing Special   »   [go: up one dir, main page]

Property talk:P238

Documentation

IATA airport code
three-letter identifier for designating airports, railway stations or cities (for airlines, see P229)
DescriptionIATA code for identifying airports
RepresentsIATA airport code (Q192824)
Has qualityall caps (Q3960579)
Data typeString
Domain
According to this template: aerodrome (Q62447), mainly airport (Q1248784)
According to statements in the property:
airport (Q1248784), railway station (Q55488), aerodrome (Q62447) or runway (Q184590)
When possible, data should only be stored as statements
Allowed values[A-Z]{3}
ExampleFort Lauderdale–Hollywood (Q635361)FLL
Rimouski Airport (Q3912794)YXK
Paris (Q90)PAR
SourceIATA airport code (Q192824) (note: this information should be moved to a property statement; use property source website for the property (P1896))
Formatter URLhttps://www.iata.org/en/publications/directories/code-search/?airport.search=$1
Tracking: sameno label (Q32085214)
Tracking: differencesno label (Q22013022)
Tracking: usageCategory:Pages using Wikidata property P238 (Q22013029)
Tracking: local yes, WD nono label (Q22013019)
See alsoICAO airport code (P239), IATA airline designator (P229), Argentinean NCAA Airport code (P6120), Directorate General of Civil Aeronautics (Mexico) code (P5746), Ex-USSR internal airport code (P5851), Transport Canada LID (P5699), Brazilian aerodrome identification code (P11181)
Lists
Proposal discussionProposal discussion
Current uses
Total9,639
Main statement9,633>99.9% of uses
Qualifier4<0.1% of uses
Reference2<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
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).
List of violations of this constraint: Database reports/Constraint violations/P238#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: EuroAirport Basel-Mulhouse-Freiburg (Q156971), Old Ishigaki Airport (Q705963)
List of violations of this constraint: Database reports/Constraint violations/P238#Unique value, SPARQL (every item), SPARQL (by value)
Format “[A-Z]{3}: value must be formatted using this pattern (PCRE syntax). (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/P238#Format, SPARQL
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (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/P238#Item P625, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (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/P238#Item P17, search, SPARQL
Single best value: this property generally contains a single value. If there are several, one would have preferred rank (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/P238#single best value, SPARQL
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (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/P238#Scope, SPARQL
 
This property is being used by:

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

Request to change en title to IATA airport code

edit

I want to have the title changed to IATA airport code, in order to avoid conflict with the IATA airline code property. Harryboyles (talk) 10:35, 7 March 2013 (UTC)Reply

Have done so. Harryboyles (talk) 10:41, 7 March 2013 (UTC)Reply

Please change the title to "IATA location code" or "IATA location identifier" to avoid reverts by misleaded users (see history at Q698145). This three letter code is valid for airports, train stations, cities and sometimes more. It's not an airport code purely. IATA itself is calling it a location code too (compare https://www.iata.org/en/services/codes/). --4omni (talk) 06:15, 6 June 2020 (UTC)Reply

I know there is IATA codes for trains stations, heliports, very large cities and so on. But they aren't verifiable as IATA does not provide search for heliport/train stations, as they are not airports. Therefore I think IATA airport code (P238) should be mostly airports/heliports, if there is verifiability from IATA search tool. Another property would be a good idea for (the not-for-airports IATA codes, as they also are less consistent in uniqueness). Bouzinac (talk) 12:39, 6 June 2020 (UTC)Reply

IATA codes for train stations

edit

Berlin Hauptbahnhof (Q1097) has an IATA code even though it is a train station rather than an airport. This is actually a legitimate IATA code, presumably because travel agents might use IATA codes to book journeys that comprise both airline and international train segments. I'm not sure whether this weird exception should change how the consistency reports and rules are set up. —Tom Morris (talk) 20:36, 31 December 2015 (UTC)Reply

Hi Tom Morris,
I came here for the exact same reason (but about Rennes railway station (Q1866058)). I hesitate to add it as an exception but there a lot of them apparently so I changed the constraint instead.
Cdlt, VIGNERON (talk) 15:22, 7 December 2016 (UTC)Reply
Even some metropolitan areas with multiple airport have IATA codes (examples: NYC - New York City, BER - Berlin, YTO - Toronto, PAR - Paris). --MB-one (talk) 09:19, 29 June 2017 (UTC)Reply
Is there a way to modify the constraint that items with IATA codes must have ICAO codes? Most of these railway stations do not have ICAO codes. Pi.1415926535 (talk) 09:25, 2 December 2018 (UTC)Reply
I would rather advocate for a "iata airport code property + "iata train station code" property instead...Bouzinac (talk) 09:54, 2 December 2018 (UTC)Reply

IATA codes aren't truly unique

edit

The property constraint distinct-values constraint (Q21502410) is not really helpful for IATA codes, since IATA codes can be transferred from one airport to another and this is not even an especially rare occurrence. --MB-one (talk) 09:16, 29 June 2017 (UTC)Reply

Furthermore, there can be an old airport using the code XXX until date X and afterwards gets YYY. Exemple NGO Nagoya. Can it be precised that one code may apply to ONLY one airport at the same time ? --Bouzinac (talk) 21:47, 23 July 2018 (UTC)Reply

Why is this not an "identifier" data type?

edit

IATA code is clearly an identifier for an airport, so why is the data type "string"? I was expecting to see this property listed among the "identifiers" of an item, not in its "statements". Apparently, that would require the data type to be changed to "external identifier". For a similar example, see COSPAR ID (P247), which is correctly listed as an identifier. I don't see how the IATA code is different. — JFG talk 21:43, 23 August 2018 (UTC)Reply

@JFG: the datatype "external identifier" is a string that needs an external website for the links ; as far as I know, there is no such site for the IATA. Cdlt, VIGNERON (talk) 15:54, 10 October 2018 (UTC)Reply
Apparently, IATA sells access to its database airport codes, but there are plenty of freely available online directories of IATA codes. Could we simply use one of those? (picking a well-maintained one, of course) — JFG talk 16:16, 10 October 2018 (UTC)Reply
@JFG: I'm not sure... The best would be to ask for a new property (on Wikidata:Property proposal, datatype can't be changed, we have to create a new property and delete the old one) and to see where the discussion goes (it seems a good idea but more point of view - and more expert one - would be useful). Plus, I must correct myself, I was wrong: a formatter URL is almost always defined but technically it's not "needed". Cdlt, VIGNERON (talk) 16:45, 10 October 2018 (UTC)Reply
OK, thanks for the correction. We should perhaps bring this to the attention of more people. The same logic would apply to ICAO airport code (P239), which is also a string instead of an identifier. Both of those properties must have been created at the same time with the same reasoning. Pinging a few users who recently opined in my suggestions for other airport-related properties DBUnico MIBACT ID (P5782) and VOR/DME airport beacon ID (P5803). @ ديفيد عادل وهبة خليل 2 , ArthurPSmith , Pintoch , YULdigitalpreservation: — JFG talk 16:53, 10 October 2018 (UTC)Reply
See the discussion just above this one - IATA codes are re-used, so they are NOT unique identifiers for airports and don't meet the criteria we set up when we transitioned other string properties to "external identifier" that did qualify. However, there may be a way to make this work using deprecation, time-based qualifiers etc. if somebody is willing to look into it a bit more on what the actual criteria are for re-use etc. Being a proprietary code may make that harder though. ArthurPSmith (talk) 19:18, 10 October 2018 (UTC)Reply

IATA Location Identifier

edit

Reference for the IATA Location Identifiers (LI): https://www.iata.org/publications/store/Pages/airline-coding-directory.aspx

We should hence talk about IATA Location Identifiers (LI), in IATA parlance, as those codes can be assigned to any travel-/transport-related point of reference (POR), including, but not limited to, cities (location type: C), airports (location type: A), heliports (location type: H), ferry/maritime ports (location type: P), bus stations (location type: B) and railway stations (location type: R), "offline" points (most of the time, just a populated location; location type: O).

By the way, on the famous IATA code search page (https://www.iata.org/publications/Pages/code-search.aspx), in the selector, it is specified "Location Code" (rather than airport code), and when you select it, the help text for that field is "Enter city / airport code", hinting that cities are assigned IATA location identifiers (IATA codes) too.

Now, the issue is that on the above-mentioned public page, only the cities and airports are shown for a given code, not the records for the other location types. Only in the Location Identifier (LI) data files, which they sell, appear the codes for the other location types (eg, heliports, bus and railway stations). However, as it has been mentioned in other sections above, it is possible to book trips encompassing other location types, and those codes are therefore public. For instance:

Another kind of issue is that, in IATA parlance, a city, or metropolitan area as it is also sometimes referred to, actually refers to a populated area, which may be, among other entities, a city, an island, a homestead, a local area, a (national/regional) park, even a lake. For instance:

Proposal - Change Data type of IATA airport code (P238) from String to External identifier

edit

I think String is the wrong type for IATA airport code (P238). 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)Reply

Discussion

edit
  The property value will be transformed to uppercase automatically.
Testing: TODO list
Return to "P238" page.