https://github.com/edsu/skosdict
turn a SKOS concept scheme into a simple JSON dictionary
https://github.com/edsu/skosdict
Last synced: 10 months ago
JSON representation
turn a SKOS concept scheme into a simple JSON dictionary
- Host: GitHub
- URL: https://github.com/edsu/skosdict
- Owner: edsu
- Created: 2011-09-19T19:06:48.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-22T16:54:06.000Z (about 14 years ago)
- Last Synced: 2025-05-07T12:12:33.912Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 129 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Have you ever wanted to use a SKOS concept scheme as a JSON dictionary, where the key is the familiar legacy code (skos:notation) and the value is the human readable label (skos:prefLabel)? Is the SKOS available in JSON, but instead of idiomatic JSON it's [some unusable stew of URIs](http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-json/index.html)? If you answered yes to either of these perhaps skosdict is for you.
./skosdict.py http://id.loc.gov/vocabulary/relators.rdf
```javascript
{
"scl": "Sculptor",
"cot": "Contestant-appellant",
"ivr": "Interviewer",
"pth": "Patent holder",
"uvp": "University place",
"lso": "Licensor",
"drm": "Draftsman",
"rth": "Research team head",
"pta": "Patent applicant",
"dln": "Delineator",
"ldr": "Laboratory director",
"mfr": "Manufacturer",
"lse": "Licensee",
"tch": "Teacher",
"dbp": "Distribution place",
"tcd": "Technical director",
"ptt": "Plaintiff-appellant",
"itr": "Instrumentalist",
"scr": "Scribe",
"cll": "Calligrapher",
"mrb": "Marbler"
...
}
```
Some examples are included in the examples sub-directory, as well as an
update.py file to pull them down. If you know of a SKOS file that would be worth
adding please add it, and send a pull request.