Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

LCSH SKOS webapp

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 authorities
Octocat-spinner-32 static
Octocat-spinner-32 test_data
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 __init__.py
Octocat-spinner-32 ez_setup.py
Octocat-spinner-32 manage.py
Octocat-spinner-32 settings.py
Octocat-spinner-32 settings.py.tmpl
Octocat-spinner-32 setup.py
Octocat-spinner-32 urls.py
README.md

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.

Installation

  1. install python
  2. install mysql
  3. python setup.py build # should install python dependencies
  4. echo "CREATE DATABASE id CHARACTER SET utf8; GRANT ALL ON id.* to '{username}'@'localhost' identified by '{password}';" | mysql -u root -p
  5. update DATABASE_USER and DATABASE_PASSWORD in settings.py
  6. update MEDIA_ROOT in settings.py to be the full path to the static directory
  7. change AUTHORITIES_URL as appropriate in settings.py
  8. python manage.py syncdb
  9. echo "ALTER table authorities_concept ADD FULLTEXT INDEX concept_fulltext_index (pref_label);" | mysql -u {username} -p id
  10. python manage.py load_marcxml marc.xml
  11. python manage.py runserver
  12. go to http://localhost:8000/authorities

License

Public Domain http://creativecommons.org/licenses/publicdomain/

Something went wrong with that request. Please try again.