Property talk:P11109

Latest comment: 1 year ago by Bamyers99 in topic Onestop IDs are not unique

Documentation

Onestop ID
identifier for public transporation-related entities in Transitland database
Applicable "stated in" valueTransitland (Q113379392)
Data typeExternal identifier
Domaintransport service itinerary (Q1067164), General Transit Feed Specification feed (Q113379415), public transport network (Q18325841) or public transport stop (Q548662)
Allowed values[fosr]-([0123456789bcdefghjkmnpqrstuvwxyz]+-)?[\p{Ll}0-9~]+
ExampleAmtrak (Q23239)o-9-amtrak
Transport for London (Q682520)o-gcpv-transportforlondon
Piccadilly line (Q207689)r-gcpv-piccadilly
Bay Area Rapid Transit (Q610120)o-9q9-bart
Aachen Central Station (Q300706)s-u1h2f9gxy5-aachenhbf
Amtrak General Transit Feed Specification feed (Q113379480)f-9-amtrak~amtrakcalifornia~amtrakcharteredvehicle
Sourcehttps://www.transit.land/documentation/onestop-id-scheme/
Formatter URLhttps://www.transit.land/onestop-id/$1
See alsoRICS company code (P9950), WikiRoutes ID (P9454)
Lists
Proposal discussionProposal discussion
Current uses
Total11,315
Main statement11,309>99.9% of uses
Qualifier6<0.1% of uses
Search for values
Explanations [Edit]

Type statistics edit

#Onestop ID type statistics
SELECT ?type (COUNT(?type) AS ?count)
(IRI(CONCAT("https://query.wikidata.org/#%23%20Onestop%20ID%20type%20",?type,"%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fid%0AWHERE%0A{%0A%09%3Fitem%20wdt%3AP11109%20%3Fid%20.%0A%20%20%20%20FILTER(SUBSTR(%3Fid%2C%201%2C%201)%20%3D%20%22",?type,"%22)%20.%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20{%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20}%20%20%20%20%0A}%0AORDER%20BY%20%3FitemLabel")) as ?instances)
WHERE {
  ?s wdt:P11109 ?id .
  BIND (SUBSTR(?id, 1, 1) AS ?type) .
 }
GROUP BY ?type
Try it!

Items with multiple Onestop IDs edit

The following separators are used to disambiguate IDs:

Route with multiple IDs edit

Opposite directions

Green Line (Q3720557)

Daytime / nighttime

501 Queen (Q3238944)

Station with multiple IDs edit

Two transport networks

Burbank Airport–South station (Q3096094)

Opposite directions with separate ID for the station

California Avenue station (Q5020256)

Two transport networks, multiple routes

Los Angeles Union Station (Q198019)

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).
List of violations of this constraint: Database reports/Constraint violations/P11109#Unique value, 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: Lakeland (Q14686092)
List of violations of this constraint: Database reports/Constraint violations/P11109#Single value, SPARQL
Format “[fosr]-([0123456789bcdefghjkmnpqrstuvwxyz]+-)?[\p{Ll}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/P11109#Format, 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/P11109#Scope, 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/P11109#Entity types

Onestop IDs are not unique edit

per this discussion (GitHub), if multiple routes/stops/stations/platforms have the same coordinates and name, then the Onestop ID is the same. Bamyers99 (talk) 21:53, 22 December 2022 (UTC)Reply

Return to "P11109" page.