In order to improve user experience for users of a Skosmos installation, display the corresponding wikipedia page in a plugin.
This plugin fulfills the requirements for Skosmos plugins. Functionality-wise, reads concept data as JSON-LD and searches for the possible wikidata link. If one is found, looks for the best available content language wikipedia page (which is determined by the preferred language order of the Skosmos vocabulary) and asynchronically queries that via the Wikipedia REST API. Finally, the response is rendered to the user.
- Pollutes the global namespace with
WIKI
. - If one wants to update the wiki css, run
prepender.py --input $INPUT --output $OUTPUT --prepend-with "#wiki"
(see the file for details) on an unminified file to prepend the input file CSS selectors with#wiki
in order to avoid polluting the global css definitions. - Please also remember to add LICENSE information for each CSS file (also supported in
prepender.py
).