Grants:IdeaLab/Tools for using wikidata items as citations
What is the problem you're trying to solve?
Currently on en wiki, citations are created using templates and the information is stored within the wiki-page itself. The data is not readily machine readable, and it is duplicated when the same source is cited on multiple pages. On other wikis, such as fr wikis, this data is sometimes transcluded from a single source, avoiding the duplication, but suffers the same issues with machine readability.
What is your solution?
A number of tools could be developed to use wikidata items within a citation.
The minimally necessary tool would be a template that would visually represent a citation within the page given a wikidata item. For instance, the representation could be in the format of a standard citation, but may allow additional information if the data in the wikidata item wasn't sufficient to represent the citation (for instance, the page number, if the citation was of a book).
Additionally, other tools would need to be developed to support the usage of this new template, as manually creating or searching for an existing wikidata item pointing to a source for every citation made would be relatively tedious. These include tools to easily import a source into a wikidata item and tools to add or search for existing wikidata items to import.
For instance, a workflow might go like this in VE:
- User gadget in VE and/or for wikitext that allows you to search for a URL or a search term, i.e. title.
- In the case of a URL, generate metadata using Citoid, and then search Wikidata using an API; in the case of a search term, search Wikidata and other APIs, such as WorldCat)
- Present the user with search results from Wikidata as well as those from other sources, which may not yet be in Wikidata;
- If the user selects a result which is not yet a Wikidata item, create the Wikidata item;
- Insert a template which uses the Wikidata item to perform lookup of metadata and format it.
- WikiData Query API
- Citoid (generates metadata from URL)
- Examples of templates using wikidata
- Lua module for pulling info from wikidata into template
- Module from Russian wiki that can pull information from Wikidata and display it as citation
- Template:Cite_item on Wikidata
- Adding wikidata entries with Pywikibot
- Data structure for reference details
- French wikipedia template to use a book as a reference, using Wikidata
Needed expertise: Templates, Wikidata Query API, pywikibot or similar.
- I would volunteer some pywikibot and wikidata parsing and item creation expertise. Maximilianklein (talk) 18:58, 29 September 2014 (UTC)
- This hack could unify the citation structure. Maximilianklein (talk) 16:47, 24 September 2014 (UTC)
- Great project, Strong support --Tobias1984 (talk) 15:00, 29 September 2014 (UTC)
- This will allow an unique data structure allowing reuse of citations in any WP. Snipre (talk) 07:48, 30 September 2014 (UTC)
- This would replace a lot of manual work to create Wikidata entries for journal articles and newly published reference works. PKM (talk) 01:57, 10 October 2014 (UTC)
- It is good idea. I support it. -Nizil Shah (talk) 13:12, 21 October 2014 (UTC)
- Such tools are much needed. -- Daniel Mietchen (talk) 22:18, 31 October 2014 (UTC)
- Very much needed -- especially tools to make data-entry easier and more consistent. Jodi.a.schneider (talk) 16:49, 24 December 2014 (UTC)
- Strong support. This could solve far more problems than the ones mentioned. It could make finding and citing good sources much easier, especially combined with ContentMine functionality. It could also be used to track down all uses of a bad/retracted/discredited source. It could tie together translations of a work. And more... HLHJ (talk) 22:35, 31 January 2015 (UTC)
- Strong support I've been dreaming of such a tool for years now. Every time I have to put the same book I used before in my bibliography, every time I have to fill in the blanks again and again. So far when editing Polish Wikipedia I usually use: the Google Books tool => manually correct errors and fill in the blanks => Cite to Cytuj converter => manually correct errors or fill in the blanks => ISBN converter to get a proper ISBN 13 with all the hyphens. BTW, too bad Zotero doesn't work that well with Wikipedia. Halibutt (talk) 00:16, 13 February 2015 (UTC)
- Strong support I love this (and User:Mvolz: great, great stuff). Have a look at my collection of +20 tools to help build citations: de:Benutzer:Atlasowa/ref citation tools (by bookmarklets, firefox addons, toolserver tools, new tools.wmflabs tools, enWP RefToolbar, user scripts, standalone software etc) and some stats on refs in Wikipedia at de:Benutzer:Atlasowa/ref stats. Mapping DOI-refs to the corresponding journal's Wikipedia articles, mapping newspaper URLs to the corresponding Wikipedia articles on the newspaper, etc. We can leverage/use parameters in existing, widely-used templates like cite news (with 2.107.890 "URL" parameters, 873.437 "work" parameters, 592.638 "newspaper" parameters, in enwiki alone, according to templatetiger). --Atlasowa (talk) 10:07, 6 March 2015 (UTC)
- This would make the data much more accessible. It would be important to practice good and close reviewing to avoid imorting the problmen of vandalism from wikipedia into wikidata. X black X (talk) 12:25, 16 April 2018 (UTC)