Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
create a subset view of LCSH
Python
branch: master

Merge pull request #1 from tfmorris/patch-1

Replace beer with government policy (although I'd prefer the reverse)
latest commit 5308b536d9
@edsu authored
Failed to load latest commit information.
.gitignore
README.md
buddhism.rdf
government_policy.rdf
lcsh-subset.py
requirements.pip

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.