Wikidata:Property proposal/WSJ article ID

From Wikidata
Jump to navigation Jump to search

The Wall Street Journal article ID

[edit]

Originally proposed at Wikidata:Property proposal/Authority control

   Done: WSJ article ID (P11614) (Talk and documentation)
Descriptionunique identifier of an article on The Wall Street Journal
RepresentsThe Wall Street Journal (Q164746)
Data typeExternal identifier
Domainarticle (Q191067)
Allowed values^(SB[0-9]{10,41}|[A-Z]{2}-[A-Z]{3}-[0-9]{5,10})$
Example 1Alameda, FTX Executives Are Said to Have Known FTX Was Using Customer Funds (Q115184709)WP-WSJ-0000350237
Example 2PG&E Bankruptcy Protections Could Mean Less Money for Wildfire Victims (Q114385792)SB10662303665469894532704585653770242966034
Example 3Red Sox, Manager Alex Cora Part Ways After Sign-Stealing Scandal (Q115584823)SB10578488405656114843704586141350525227090
Example 4Convenience-Store Giants Couche-Tard, EG Group in Deal Talks (Q114685803)SB12210590376247964229504588511900894343548
Planned useBackfilling the property for all WSJ articles on WD (~6000)
Number of IDs in source6100 (currently, expect growth)
Expected completenesseventually complete (Q21873974)
Formatter URLhttps://www.wsj.com/articles/$1
Applicable "stated in"-valueThe Wall Street Journal (Q164746)
Single-value constraintyes
Distinct-values constraintyes

Motivation

[edit]

The Wall Street Journal provides a unique ID for its articles. It can be used to get the article's page by its ID (thourgh the URL: https://wsj.com/articles/<id>), call their article APIs, but more importantly, it can be very helpful on Wikidata to track duplicates.

We're currently using article ID (P2322) for it, but there are some issues with it:

  1. The current format of the property doesn't allow dashes, so it raises an error when we use it for WSJ article ID.
  2. There's no constraint of uniqueness on article ID (P2322).

One way we can retrieve it is through the source code of the page: the meta HTML tag article.id in the header of the page has its value. Example: <meta name="article.id" content="WP-WSJ-0000396432">

I will run a script to update all the current articles if the property is approved. Deansfa (talk) 05:14, 6 December 2022 (UTC)[reply]

P.S: the examples above are WSJ articles used in Wikipedia articles as references with Template:Bibliographie on the French Wikipedia or with Template:Cite Q on the English Wikipedia

Discussion

[edit]