Wikidata:Property proposal/Oslo Byleksikon ID

From Wikidata
Jump to navigation Jump to search

Oslo City Encyclopedia ID[edit]

Originally proposed at Wikidata:Property proposal/Authority control

DescriptionIdentifier for an item in Oslo Encyclopedia ID
RepresentsOslo byleksikon (Q6980505)
Data typeExternal identifier
Template parameteras identifier in Template:Authority control (Q3907614)
DomainAll kind of types within items related to Oslo city
Allowed values[A-Za-z0-9_-]+
Example 1Bjørvika (Q3267175)Bjørvika
Example 2Hans Arnt Hartvig Paulsen (Q11973965)H._A._H._Paulsen
Example 3Centralteatret (Q4570219)Centralteatret
Example 4Blankvann (Q4560220)Blankvann
Sourcehttps://www.oslobyleksikon.no/
Planned useas authenticator (Q4825890)
Number of IDs in source6100
Expected completenesseventually complete (Q21873974)
Formatter URLhttps://www.oslobyleksikon.no/side/$1
Robot and gadget jobsM'n'M or scraping
Wikidata projectWikidata:WikiProject Norway

Motivering/begrunnelse[edit]

(Legg inn motivering/begrunnelse for forslaget til denne egenskapen her.) Identefier for items realted to Oslo City and its circumferences Pmt (talk) 22:58, 3 November 2021 (UTC)[reply]

Discussion[edit]

@Pmt, MasterRus21thCentury, Jon Harald Søby, Infrastruktur, Arbnos: ✓ Done Oslo Byleksikon ID (P10217) Pamputt (talk) 18:32, 30 December 2021 (UTC)[reply]
@Pmt, MasterRus21thCentury, Jon Harald Søby, Infrastruktur, Arbnos: I just discover that the website uses MediaWiki. Thus, it is possible to use a stable identifier called the curid. Thus, the formatter URL is https://www.oslobyleksikon.no/index.php?curid=$1. To find, the ID, one can use this URL https://www.oslobyleksikon.no/index.php?title=TITLE&action=info and replace TITLE by the name of the page ; then the id is in the field "Side-ID". For example, Hans Arnt Hartvig Paulsen (Q11973965)11694, Bjørvika (Q3267175)6405, etc. The advantage of using curid is the identifier is stable even if the page is renamed. As possible users of this property, what do you think? Pamputt (talk) 18:47, 30 December 2021 (UTC)[reply]
I suppose the same can be done on Wikistrinda ID too. Infrastruktur (talk) 19:18, 30 December 2021 (UTC)[reply]
@Pamputt: Infrastruktur (talk) 19:21, 30 December 2021 (UTC)[reply]
Indeed. For WikiStrinda, it is explicitely written that it uses MediaWiki. Pamputt (talk) 20:22, 30 December 2021 (UTC)[reply]
FYI, there is MediaWiki page ID (P9675) in case we keep the full page name (not numerical identifier). Pamputt (talk) 20:23, 30 December 2021 (UTC)[reply]
@Pamputt:Thinking that your suggestion should be followed. Pmt (talk) 10:19, 31 December 2021 (UTC)[reply]
Perfect, I've modified the formatter URL and the regex. I also added a note explaining how to get the curid. Pamputt (talk) 11:24, 31 December 2021 (UTC)[reply]