Property talk:P402

From Wikidata
Jump to navigation Jump to search

Documentation

OpenStreetMap relation ID
identifier for a relation in OpenStreetMap
Descriptionthe ID of the relation of this place/object in OpenStreetMap (Q936). http://wiki.openstreetmap.org/wiki/Relation
RepresentsOpenStreetMap relation (Q100320716), OpenStreetMap (Q936)
Applicable "stated in" valueOpenStreetMap (Q936)
Data typeExternal identifier
Corresponding templateTemplate:OSM relation (Q6177348)
Domaingeographical feature: streets, countries, states, buildings, places, everything with geocoordinates (note: this should be moved to the property statements)
Allowed values[1-9][0-9]{0,9}
Usage notes本項用來對應開放街圖中的關聯物件。填入關係識別碼,可連結至開放街圖的對應頁面。
Buat relasi di OpenStreetMap yang menunjukkan suatu titik, garis, atau area. Lalu tambahkan kode relasinya disini
ExampleBerlin (Q64)62422 (RDF)
Lizard Head Wilderness (Q6660504)396588 (RDF)
Washington County (Q501559)270624 (RDF)
Sudirman Road (Q12487040)13000761 (RDF)
Busan Asiad Main Stadium (Q482589)10952708 (RDF)
Vrelo Bosne (Q108146920)28784587 (RDF)
Sourcehttps://www.openstreetmap.org
Formatter URLhttps://www.openstreetmap.org/relation/$1
Tracking: differencesCategory:OSM relation different from Wikidata (Q15088393)
Tracking: usageCategory:Pages using Wikidata property P402 (Q28003135)
Tracking: local yes, WD noCategory:OpenStreetMap Relation identifier not in Wikidata, but available on Wikipedia (Q14947065)
See alsoOpenStreetMap tag or key (P1282), OpenStreetMap zoom level (P6592), URL (P2699), OpenHistoricalMap relation ID (P8424), OpenStreetMap way ID (P10689), OpenStreetMap numeric user ID (P8754), OpenStreetMap node ID (P11693)
Lists
Proposal discussionProposal discussion
Current uses
Total453,761
Main statement438,364 out of 11,501,272 (4% complete)96.6% of uses
Qualifier25<0.1% of uses
Reference15,3723.4% 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/P402#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: U.S. Route 29 in the District of Columbia (Q718261), U.S. Route 29 in Maryland (Q2214556)
List of violations of this constraint: Database reports/Constraint violations/P402#Unique value, SPARQL (every item), SPARQL (by value)
Format “[1-9]\d{0,9}: 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/P402#Format, SPARQL
Allowed 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/P402#Entity types
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/P402#Scope, SPARQL
Conflicts with “instance of (P31): Wikimedia disambiguation page (Q4167410), Wikimedia category (Q4167836), Wikimedia list article (Q13406463): this property must not be used with the listed properties and values. (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/P402#Conflicts with P31, SPARQL
Conflicts with “instance of (P31): Wikimedia project page (Q14204246): this property must not be used with the listed properties and values. (Help)
List of violations of this constraint: Database reports/Constraint violations/P402#Conflicts with P31, hourly updated report, search, SPARQL
Conflicts with “instance of (P31): Wikimedia template (Q11266439): this property must not be used with the listed properties and values. (Help)
List of violations of this constraint: Database reports/Constraint violations/P402#Conflicts with P31, hourly updated report, search, SPARQL
This property is being used by:

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

Discussion

[edit]

New Formatter URL to expand scope

[edit]

The scope of the current Property:P1630 (Formatter URL) is "OpenStreetMap relation", so, it is impossible to use P402 (OpenStreetMap relation ID) with points or addresses.

For example Q41796695 is represented by the node https://www.openstreetmap.org/node/4913452739

With a consistent PURL redirector we can use all 3 kinds of OSM identifiers: node, way and relation (abbreviated by the "n", "w" or "r" letters).

Allowed values will be expanded to [nrw]?[1-9]\d{0,8}, where [nrw]? is the new optional 1-letter prefix.

Examples using https://osm.codes/$1 for each entity type:

The change from the current Formatter URL to this new (more widely usable) URL, causes no impact (the default with no letter is the relation). And it is also a solution for many constraint violations.

PS1: an alternative Formatter URL would be https://nominatim.openstreetmap.org/ui/details.html?osmid=$1. Problems:

PS2: suggestion to Nominatim community, enhance with an osmid_mix resolution, as "mix osmtype+osmid".

--Krauss (talk) 20:18, 18 February 2023 (UTC)[reply]

P402 mediwiki synchronization with kartographer tags

[edit]

Is there any documente use of tools like OpenRefine to synchronize these tags with what Kartographer have?

Is there any talks of automating the import from the Kartopgrapher server copy of all the OSM (Tools such as Maplink needs both a wikidata QID on the OSM data and someone to fill in the Property:P10689/P402 to display the shape and not to display the maplink frame if there is not a value in those properties as defualt behaviour) This could also work to mitigate problems when the OSM way or relation ID have changed for a object which could happen. The only thing you really need is the OSM folks to put in the wikidata tag and we could look at the Kartographer copy for tags without these Properties in the wikidata entries.

Also posted a dicussion topic on the P10689 page. Dengamlapotatisen (talk) 09:50, 18 August 2024 (UTC)[reply]