Wikidata:Property proposal/Google Fonts ID

Google Fonts ID edit

Originally proposed at Wikidata:Property proposal/Authority control

   Done: Google Fonts ID (P10687) (Talk and documentation)
Descriptionfont name on Google Fonts
Data typeExternal identifier
Template parameterGoogle Fonts link
Domainitem
Allowed valuesany value that is allowed on Google Fonts (it depends on the font name)
Allowed unitsunlimited number of links
Example 1Ubuntu (Q637171)Ubuntu, Ubuntu+Condensed and Ubuntu+Mono
Example 2Allerta (Q4732131)Allerta and Allerta+Stencil
Example 3Open Sans (Q7096182)Open+Sans and Open+Sans+Condensed
SourceGoogle Fonts (Q14799884) and https://fonts.google.com
External linksUse in sister projects: [ar][de][en][es][fr][he][it][ja][ko][nl][pl][pt][ru][sv][vi][zh][commons][species][wd][en.wikt][fr.wikt].
Planned useOn all font items on Wikidata that can be found on Google Fonts (Q14799884)
Number of IDs in sourcedepends on the font. Maybe only one, more are possible
Expected completenesseventually complete
Formatter URLhttps://fonts.google.com/specimen/$1
Robot and gadget jobscould be done using a bot
See alsoGoogle Knowledge Graph ID (P2671)
Applicable "stated in"-valueGoogle Fonts (Q14799884)
Single-value constraintno
Distinct-values constraintyes
Wikidata projectGoogle Fonts (Q14799884)

Motivation edit

While working on the Ubuntu (Q637171) font family I saw that on Google Fonts (Q14799884) many fonts are collected that are licenced under a free licence. Since Wikimedia Commons does not allow the upload of font files, there could be the question where one could download an open-source and free-to-use font. This property is menat to be an easy and fast to use cross site connection. The idea for this property is loosely based on Google Knowledge Graph ID (P2671). --D-Kuru (talk) 21:32, 11 September 2021 (UTC)[reply]

Comments
  • single value constraint: There can be more than one link to a (family of) font(s). Eg. Ubuntu (Q637171) with "Ubuntu" "Ubuntu Condensed" and "Ubuntu Mono". The link should be combined with title (P1476) as qualifier and the name of the font.
  • infobox parameter: The link could be displayed in the Wikidata infobox as direct link to the font eg. [https://fonts.google.com/specimen/Ubuntu ''Ubuntu'' on Google Fonts]. (of course as real link)
Changes

Discussion edit

In my opinion "Ubuntu" "Ubuntu Condensed" and "Ubuntu Mono" should be three items, and we explicitly identify Ubuntu (Q637171) as a font family instead of individual font.--GZWDer (talk) 17:41, 12 September 2021 (UTC)[reply]
@GZWDer: That would be fine for me as well. The question how far do you want to go? Would you create one item for each of Ubuntu Regular, Ubuntu Italic, Ubuntu Bold, Ubuntu Bold Italic, Ubuntu Light, Ubuntu Light Italic, Ubuntu Medium and Ubuntu Medium Italic? They do have the same ID on Google Fonts, but you could create a separate item for each of them. Should each of them have the same link in that case? --D-Kuru (talk) 07:27, 13 September 2021 (UTC)[reply]
I also think it would be best to have a unique, distinct values mapping (and make this an external id), with one item per font however font is defined (but if different sources have different definitions then we may have some issues or more difficult choices). ArthurPSmith (talk) 17:15, 13 September 2021 (UTC)[reply]
It was planned to be a link that will take you directly to the google page. I changed the datatype to external-id. Would that work better? --D-Kuru (talk) 18:18, 14 September 2021 (UTC)[reply]
String properties can link too. If the datatype is external-ID, the problem ArthurPSmith and GZWDer mentioned should be resolved. --- Jura 10:08, 16 September 2021 (UTC)[reply]
@ArthurPSmith: You are no against the property as such, but you don't think that an external id is the best data type for this, is that correct? What would be your suggestion in that case?
My personal goal is to link the giant library of Google Fonts with Wikidata. I want that the Google site can directly be accessed via the Wikdata page (and not that you may would have to search for it). This is what the data type should be able to do. How this is done is not really something I care about much.
--D-Kuru (talk) 10:43, 15 February 2022 (UTC)[reply]
@D-Kuru: Then perhaps a URL datatype is what you want, if the primary purpose is linking and you don't want to create new items for each individual font? ArthurPSmith (talk) 20:59, 15 February 2022 (UTC)[reply]
@ArthurPSmith: As previously said: This proposal is loosely based on Google Knowledge Graph ID (P2671). This property's data type is External identifier. It is combined with formatter URL (P1630). The property works like I this property should work ---D-Kuru (talk) 13:39, 18 February 2022 (UTC)[reply]
Google Knowledge Graph ID (P2671) is a unique identifier for a concept. But "Ubuntu+Mono", as you propose here, is not an identifier for the "Ubuntu" font family (or superfamily). It could be an identifier if there was an item in wikidata for the "Ubuntu Mono" font family - it would uniquely identify that. If you plan on adding such items, I think that's a good approach. But I don't think it should be considered an external id if it's not really an id for what you're putting it on. You can always use described at URL (P973) or another property like that to directly link items like "Ubuntu" to these Google font pages. ArthurPSmith (talk) 18:14, 18 February 2022 (UTC)[reply]
  Comment I agree that "External identifier" should not be used here if one Q-item maps to multiple font pages on Google Font. If we want to use "External identifier" then we would need to create Q-items for each font (which I would also be fine with) but the proposal needs to be adapted. --Hannes Röst (talk) 15:46, 28 March 2022 (UTC)[reply]
As said: I don't really care about the actual type or way the property is included. The potential creator of this property should know what works and what does not so I forward this decision to this user. I want to use the property as link and not have an endless discussion about if the same same entry that is supposed to do the same thing is included one way or another. TLDR: @Property creator: Fell free to change the the type --D-Kuru (talk) 12:54, 3 April 2022 (UTC)[reply]