id is a django project for serving up LCSH authority data as SKOS RDF, JSON and HTML. Once upon a time it was the prototype code for the service running at id.loc.gov, but it has since been superseded. It is here in GitHub mainly for historical reasons, and also to keep the MARC -> SKOS mapping, which could be useful for some purposes in the future.
The paper LCSH, SKOS and Linked Data has some background information, on why this project was done.
- install python
- install mysql
- python setup.py build # should install python dependencies
- echo "CREATE DATABASE id CHARACTER SET utf8; GRANT ALL ON id.* to '{username}'@'localhost' identified by '{password}';" | mysql -u root -p
- update DATABASE_USER and DATABASE_PASSWORD in settings.py
- update MEDIA_ROOT in settings.py to be the full path to the static directory
- change AUTHORITIES_URL as appropriate in settings.py
- python manage.py syncdb
- echo "ALTER table authorities_concept ADD FULLTEXT INDEX concept_fulltext_index (pref_label);" | mysql -u {username} -p id
- python manage.py load_marcxml marc.xml
- python manage.py runserver
- go to http://localhost:8000/authorities
Public Domain http://creativecommons.org/licenses/publicdomain/