Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dpriskorn/lexsaob
Script that adds SAOB identifiers to Swedish lexemes in Wikidata
https://github.com/dpriskorn/lexsaob
Last synced: 5 days ago
JSON representation
Script that adds SAOB identifiers to Swedish lexemes in Wikidata
- Host: GitHub
- URL: https://github.com/dpriskorn/lexsaob
- Owner: dpriskorn
- License: gpl-3.0
- Created: 2021-04-04T19:50:48.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T00:52:58.000Z (about 3 years ago)
- Last Synced: 2024-12-21T06:43:05.115Z (15 days ago)
- Language: Python
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LexSAOB
Add SAOB identifier to Wikidata Lexemes [Wikidata Property:P8478](https://www.wikidata.org/wiki/Property:P8478)/ example [usage Wikidata](https://w.wiki/3B7P). This script is maybe not that useful to run for anyone else besides the author in its current form. It is shared here to help others get started writing scripts to improve Wikidata.It would be interesting to edit it to monitor the SAOB website for newly published articles/words.
This script can easily be modified to create new lexemes for every word found in the list from SAOB. Unfortunately that is not legal because of the database protection law.
## Thanks
Big thanks to Magnus Sälgö for reverse engineering of the SAOB website to make this possible. <3## Requirements
* wikibaseintegratorInstall using pip:
`$ sudo pip install wikibaseintegratorIf pip fails with errors related to python 2.7 you need to upgrade your OS. E.g. if you are using an old version of Ubuntu like 18.04.
## Getting started
To get started install the following libraries with your package manager or
python PIP:
* wikibaseintegratorPlease create a bot password for running the script for
safety reasons here: https://www.wikidata.org/wiki/Special:BotPasswordsCopy config.example.py to config.py yourself and adjust the following
content:username = "username"
password= "password"# License
The code for crawling the SAOB website is not covered by license file, see the source URL in that file for more information.