Skip to content

Wiki tool to add items of Brazilian legislation to Wikidata.

License

Notifications You must be signed in to change notification settings

WikiMovimentoBrasil/brazilianlaws

Repository files navigation

Brazilian Laws

This tool is a metadata application to be hosted in Toolforge. It invites Wikimedia users to create a Wikidata item of a law contained in the LexML database.

The tool presents a text field where the URL to a LexML law can be added. Once the law has been parsed by the tool, the users see a list of metada to be reconciled. Items reconciled automatically are listed in gree, while those in need of being manually reviewed by the user are displayed in red.

This tool is available live at: http://brazilianlaws.toolforge.org

More information on the WikiProject Brazilian Laws can be found at: https://www.wikidata.org/wiki/Wikidata:WikiProject_Brazilian_Laws

Installation

There are several packages need to this application to function. All of them are listed in the requeriments.txt file. To install them, use

pip install -r requirements.txt

You also need to set the configuration file. To do this, you need a Oauth consumer token and Oauth consumer secret. Your config file should look like this:

SECRET_KEY: "YOUR_SECRET_KEY"
BABEL_DEFAULT_LOCALE: "pt"
APPLICATION_ROOT: "brazilianlaws/"
OAUTH_MWURI: "https://meta.wikimedia.org/w/index.php"
CONSUMER_KEY: "YOUR_CONSUMER_KEY"
CONSUMER_SECRET: "YOUR_CONSUMER_SECRET"
LANGUAGES: ["pt","en"]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU General Public License v3.0

Credits

This application was developed by the Wiki Movimento Brasil User Group, supported by WikiCite.

About

Wiki tool to add items of Brazilian legislation to Wikidata.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published