Skip to content
create a subset view of LCSH
Python
Latest commit 5308b53 Aug 29, 2011 @edsu Merge pull request #1 from tfmorris/patch-1
Replace beer with government policy (although I'd prefer the reverse)

README.md

Sometimes you might want to have a working subset of the Library of Congress Subject Headings for some SKOS driven applications.

For example at the Library of Congress there is a government policy web archive, where it is desirable to catalog portions of the collection using the HIVE software, which can load SKOS RDF.

This command line program uses the OpenSearch API at id.loc.gov to do a query, page through the results, build up a graph of the SKOS concepts, and output the graph as RDF/XML.

For example:

% ./lcsh-subset.py "government policy"

dumps all the SKOS RDF for concepts mentioning government policy to the file:

government_policy.rdf

License: Public Domain Author: Ed Summers

Something went wrong with that request. Please try again.