Property talk:P3108

Latest comment: 1 year ago by Tr3ndyBEAR in topic Yelp's internal IDs vs their URL "slugs"

Documentation

Descriptionidentifier of a place, in Yelp
Associated itemYelp (Q2299611)
Applicable "stated in" valueYelp (Q2299611)
Data typeExternal identifier
Domaingeographic location (Q2221906), business (Q4830453), fixed construction (Q811430), school (Q3914) or organization (Q43229)
Allowed values[^/]+
ExampleCencio la Parolaccia (Q3664378)cencio-la-parolaccia-roma
Yelp (Q2299611)yelp-san-francisco
Sourcehttps://www.yelp.com/
Formatter URLhttps://www.yelp.com/biz/$1
Robot and gadget jobsConvert P553Q2299611 (P554 → $1) into Yelp ID → $1
Tracking: usageCategory:Pages using Wikidata property P3108 (Q39264661)
Related to country  United States of America (Q30) (See 762 others)
See alsoFoursquare City Guide venue ID (P1968)
Lists
Proposal discussionProposal discussion
Current uses
Total3,439
Main statement3,31596.4% of uses
Qualifier2<0.1% of uses
Reference1223.5% 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). Known exceptions: National World War I Museum and Memorial (Q6303624)
List of violations of this constraint: Database reports/Constraint violations/P3108#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).
List of violations of this constraint: Database reports/Constraint violations/P3108#Unique value, SPARQL (every item), SPARQL (by value)
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P3108#Scope, hourly updated report, SPARQL
Format “[^/]+: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P3108#Format, hourly updated report, SPARQL
Qualifiers “has characteristic (P1552), subject named as (P1810), reason for deprecated rank (P2241), reason for preferred rank (P7452): this property should be used only with the listed qualifiers. (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/P3108#allowed qualifiers, 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/P3108#Entity types

exception for nonprofit orgs? edit

Manatee County Florida Democratic Party (Q99522251) has a "Community Service/Non-Profit" Yelp page that would be useful to record in Wikidata. Can an exception be made for this type? -- M2545 (talk) 08:30, 23 September 2020 (UTC)Reply

I don't think that would make much sense unless the WikiData entry was meant to represent the geographic location or building. But instead that entry is meant to represent the political organization. The building would have to be a separate entry imo Tr3ndyBEAR (talk) 22:30, 6 December 2022 (UTC)Reply

Yelp's internal IDs vs their URL "slugs" edit

Most instances of this useage use the URL slugs not the actual ID that Yelp uses internally.

For example, for Tom's restaurant the Yelp internal id is actually 6nOxwnuN0ZwLX3h3JYSJnA. And this works as a URL as well:

https://www.yelp.com/biz/6nOxwnuN0ZwLX3h3JYSJnA

Yelp takes this id and converts it to a slug to make the urls more readable so we end up with

https://www.yelp.com/biz/toms-restaurant-new-york

However, relying on this slug is much less stable imo. First of all, we don't really know how Yelp generates these or how it handles multiple restaurants with similar names or how stable they are. The internal IDs are guaranteed to always remain the same and not change.

Second of all, this slug is less useful as "data" (as in WikiData). If I'm building an app that wants to parse WikiData and map certain entries to certain properties from Yelp's dataset[1] I need the ID not the slug! And for end-users it doesn't really matter which we use for the url since they map to the same page. The negative impacts of using slugs instead of ids are on people who want to use WikiData as an actual DATAset

Tr3ndyBEAR (talk) 22:41, 6 December 2022 (UTC)Reply

Return to "P3108" page.