Property talk:P9267
Documentation
numeric identifier for a person on the ANPI Web portal
List of violations of this constraint: Database reports/Constraint violations/P9267#Entity types
List of violations of this constraint: Database reports/Constraint violations/P9267#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P9267#Type Q5, Q16334295, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P9267#Label in 'it' language, search, SPARQL
|
I set the number of records (P4876) to 3158, because currently the greatest valid ID is 3170 and the following twelve IDs are invalid:
- 36, 480, 513, 1326, 1630, 2011, 2265, 2932, 3011, 3055, 3091, 3107.
--Horcrux (talk) 16:49, 13 November 2021 (UTC)
URL formatting and ID
[edit]It appears that old numeric IDs are still redirected correctly. However, there is no way from the current page to derive the numeric id. There is however a numeric id, effectively associated with each individual. It can be found in the header as the suggested shorturl, e.g. https://www.anpi.it/node/104461 for Primo Levi.
As things stand, there is apparently no consistent method for applying this identifier for individuals who were not previously included, e.g. https://www.anpi.it/biografia/clorinda-menguzzato / https://www.anpi.it/node/104526 Giocomai (talk) 09:28, 10 May 2023 (UTC)
- @Giocomai: Unfortunately here we decided to bet on the wrong identifier (the numerical one). I re-proposed the other property in Wikidata:Property proposal/ANPI person ID (2). --Horcrux (talk) 10:14, 14 August 2023 (UTC)
- "there is no way from the current page to derive the numeric id" => actually there is a (complicated) way to find the numeric ID: in the page with the text ID (ex. https://www.anpi.it/biografia/achille-grandi ) open the dev tools and search for the
shortlink
, you will find the URL (in this example https://www.anpi.it/node/106360 => 106360 ). - You can find it programmatically using the CSS selector
head>link[rel="shortlink"]
or the XPath selector/html/head/link[@rel="shortlink"]/@href
. - It is also possible to go the other way around and find the text ID from the numeric ID page with the CSS selector
head>link[rel="canonical"]
or the XPath selector/html/head/link[@rel="canonical"]/@href
. - That said, I agree on the choice to propose a new property with the text ID (thanks for creating the proposal).
- Given that the numeric ID works now only as a redirect I suspect that ANPI may be switching from numeric IDs to text IDs and in the future may completely shut down numeric IDs, so once the text ID is approved it may be worth the time to create an automatic procedure to scrap text IDs from numeric ID pages and add them to the respective Wikidata items. Danysan1 (talk) 11:31, 14 August 2023 (UTC)
- @Danysan1: No, that one is still another ID. For example, for Primo Levi (Q153670) we have both /donne-e-uomini/140 (which is currently linked in Q153670#P9267) and /node/104461. --Horcrux (talk) 10:55, 16 August 2023 (UTC)
- "there is no way from the current page to derive the numeric id" => actually there is a (complicated) way to find the numeric ID: in the page with the text ID (ex. https://www.anpi.it/biografia/achille-grandi ) open the dev tools and search for the
- Italy-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 1000+ items
- Properties with single value constraints
- Properties with unique value constraints
- Properties with format constraints
- Properties with entity type constraints
- Properties with scope constraints
- Properties with constraints on type
- Properties with label language constraints