This minimal project converts a visually hierarhical text representation (lc_class.txt) of the Library of Congress Classification Outline (scraped from PDFs by Karen Coyle) to SKOS RDF (lcco.rdf). The SKOS RDF is then published on the Web using PHP's ARC2.
Since Python is used to convert the text file to RDF, and PHP is used to publish the RDF, lcco is also a little demonstration of how RDF can be used as an neutral interchange format between databases.
If you don't want to regenerate the lcco.rdf file installation of Python and rdflib and steps 2 and 3 are not necessary.
- install Apache, MySQL and PHP, Python and rdflib
- adjust the LCCO Namespace appropriately in skosify.py
- ./skosify.py > lcco.rdf
- create a MySQL database and adjust settings.php appropriately
- php -e load.php
Ed Summers <ehs@pobox.com>