Skip to content

NatLibFi/Skosmos-widget-wiki

Repository files navigation

Skosmos plugin for displaying wikipedia articles on concept pages

Motivation

In order to improve user experience for users of a Skosmos installation, display the corresponding wikipedia page in a plugin.

How does it work?

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.

Noteworthy

  • 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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •