Code Monkey home page Code Monkey logo

rdmo-plugins-wikidata's Introduction

rdmo-plugins-wikidata

This plugin implements dynamic option set, that queries the Wikidata Search API at https://www.wikidata.org/w/api.php. See Wikidata:Data_access for more information about the different Wikidata endpoints. Please also note the access best practices on the same page.

Setup

Install the plugin in your RDMO virtual environment using pip (directly from GitHub):

pip install git+https://github.com/rdmorganiser/rdmo-plugins-wikidata

Add the plugin to OPTIONSET_PROVIDERS in config/settings/local.py:

OPTIONSET_PROVIDERS += [
    ('wikidata', _('Wikidata Provider'), 'rdmo_wikidata.providers.WikidataProvider')
]

The option set provider should now be selectable for option sets in your RDMO installation. For a minimal example catalog, see the files in xml.

Wikidata's policy asks to add a custom User-Agent to your requests so that they can perform statistical analyses and, if you add an email address, might contact you. This can be done by adding the following to your settings.

WIKIDATA_PROVIDER_HEADERS = {
    'User-Agent': 'rdmo.example.com/0.0 ([email protected]) rdmo-wikidata/1.0'
}

rdmo-plugins-wikidata's People

Contributors

jochenklar avatar

Watchers

 avatar Olaf Michaelis avatar David Wallace avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.