Sometimes you might want to have a working subset of the Library of Congress Subject Headings for some SKOS driven applications.
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.
% ./lcsh-subset.py "government policy"
dumps all the SKOS RDF for concepts mentioning government policy to the file:
License: Public Domain Author: Ed Summers