Wikidata:Property proposal/formatter for periodical
general property-based URL formatter
editOriginally proposed at Wikidata:Property proposal/Creative work
Description | formatter URL to look up information about a class of items in an online resource. Use with one or several properties generally found on an item. Sample: {P478} for volume or {P304} for page(s), {P433} for issue. Special value {page} for the first value of {P304}. Use a more specific formatter when available, such as "third-party formatter URL" (P3303). |
---|---|
Data type | String |
Domain | any, e.g. periodicals |
Allowed values | https?://.+ including one or several of:
|
Example 4 | <example periodical> → https://example.com/archive/{P478}/{P433}/{page} |
Planned use | add to some items for periodicals |
See also |
|
Motivation
editA few items with scholarly article (Q13442814) don't have any links to full page version. The indexing at pubmed doesn't have any either, except that it can include a link to an entry about that periodical that does have a link to the official page of the periodical which can then be searched. To cut this short, this could generate a link or a search link based on values already at Wikidata.
I will try to add a few samples above. Please help complete the proposal. (Add your motivation for this property here.) --- Jura 12:17, 1 April 2020 (UTC)
WikiProject Periodicals has more than 50 participants and couldn't be pinged. Please post on the WikiProject's talk page instead.
@GZWDer:
--- Jura 12:17, 1 April 2020 (UTC)
Discussion
edit- Comment This might be useful, but I'm concerned it may change. But it probably is a good solution where we don't have a DOI or the DOI doesn't resolve to anything. ArthurPSmith (talk) 19:41, 1 April 2020 (UTC)
- Isn't it one of the advantages of formatters that we add newer ones easily? For pubmed entries without an abstract or any link that might help. --- Jura 11:32, 2 April 2020 (UTC)
- Comment It occurs to me that this concept could be generalised further and perhaps apply to other things too, allowing direct insertion of any property value into a given formatter string:
https://example.com/{P478}/{P433}
. Suppose that's almost a new datatype though. --SilentSpike (talk) 09:48, 2 April 2020 (UTC)- Yes, I had thought about including other works that use volume (P478). We already have third-party formatter URL (P3303). I think it would be good to have {page} for the first page of page(s) (P304), but beyond that, I wouldn't mind the syntax you suggest. --- Jura 11:32, 2 April 2020 (UTC)
- @SilentSpike: don't hesitate to update the proposal per your suggestion. --- Jura 16:20, 6 April 2020 (UTC)
- @Jura1: I'm not entirely sure how best to realise it (my thinking being there could be a more general property for more than periodicals - rather than just changing the syntax). --SilentSpike (talk) 21:35, 9 April 2020 (UTC)
- @SilentSpike: I revised it. I wonder if we'd need to make it less generic now ;) --- Jura 03:49, 10 April 2020 (UTC)
- It might be easier to use the formatter if the number of properties that can be used with it is limited. --- Jura 08:08, 12 April 2020 (UTC)
- Support I'm going to vote to support this, either in current version or expanded as suggested by SilentSpike. ArthurPSmith (talk) 18:24, 2 April 2020 (UTC)
- @Jura1, ArthurPSmith, SilentSpike: Done --Tinker Bell ★ ♥ 06:20, 4 May 2020 (UTC)