Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 806 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 806 Bytes

LOSH - Tools

This repo contains tools for the LOSH project.

Install (Python) dependencies

sudo pip install -r requirements.txt

Tools

RDF to WikiBase ontology converter

Reads our osh-metadata.ttl OKH meta-data ontology file (format: RDF/Turtle), and converts it to a quasi equivalent ontology on a WikiBase instance through the api.php web interface. It writes to our OHO WikiBase instance, and cna be used like this:

python3 rdfont2wb.py 'MyOhoUser' 'MyOhoPasswd'

It can be used to create the ontology from scratch, or to update it - just run it! :-)

OKH YAML file statistics gatherer

Gathers statistics about the keys used in a bunch of OKh yaml files. It can be run like this:

python3 stats_okh1.py