https://github.com/edsu/skos_wikidata
match a SKOS concept scheme to Wikidata from the command line
https://github.com/edsu/skos_wikidata
Last synced: about 1 year ago
JSON representation
match a SKOS concept scheme to Wikidata from the command line
- Host: GitHub
- URL: https://github.com/edsu/skos_wikidata
- Owner: edsu
- License: mit
- Created: 2015-05-20T10:12:29.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-20T20:50:57.000Z (about 11 years ago)
- Last Synced: 2024-10-06T06:03:57.241Z (over 1 year ago)
- Language: Python
- Size: 305 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# skos_wikidata
An experimental command line tool for interactively matching SKOS concepts
to Wikidata.
% pip install -r requirements.txt
% ./skos_wikidata.py example/uat.rdf
This will look for concepts in your RDF file and ask you to match them up
against Wikidata entities. As assertions are added to the graph they will be
serialized back to the RDF file. So you can quit at any time and have your work
saved.
By default `skos:exactMatch` assertions will be created between your SKOS
concepts and Wikidata. If you would like to be more nuanced and to also use
`skos:closeMatch`, `skos:broadMatch`, `skos:narrowMatch` and `skos:relatedMatch`
you will will want to:
% ./skos_wikidata.py --relations-prompt example/uat.rdf
Also your SKOS may use SKOSXL for labels, in which case you'll need to tell
skos_wikidata.py to query the data a bit differently:
% ./skos_wikidata.py --skosxl example/uat.rdf
Because it loads the graph for the entire concept scheme into memory and
writes it back to disk after every mapping assertion this may not be practical
for super large SKOS concept schemes. But for thousands and tens of thousands
of concepts it's not so bad. YMMV. Optimizations could be made
(not saving all the time, etc) so give it a try and let me know!
Oh, and [here](https://vimeo.com/128396304) is a video demonstration of
the tool in action.