-
Notifications
You must be signed in to change notification settings - Fork 30
Connecting to States local controlled vocabulary
E. Lynette Rayle edited this page Feb 26, 2019
·
1 revision
The States controlled vocabulary was created as an example of using YAML to define a custom controlled vocabulary. This doc describes how to setup and use the States vocabulary.
Run the generator to install configuration files and an example authority.
rails generate qa:local:files
This creates the file config/authorities/states.yml
. The following gives a few examples of terms defined in that file.
:terms:
- :id: AL
:term: Alabama
- :id: AK
:term: Alaska
- :id: AZ
:term: Arizona
Authority: | local |
---|
Subauthorities:
- states
/qa/search/local/states?q=Nor
Result:
[
{"id":"NC","label":"North Carolina"},
{"id":"ND","label":"North Dakota"}
]
NOTES:
- Search searches terms, but not IDs. If you search for
q=NC
, the result set will be empty. - Search is NOT case-sensitive. The result set is the same when searching for
q=nor
.
/qa/show/local/states/NE
Result:
{"id":"NE","term":"Nebraska"}
/qa/terms/local/states
Result:
[
{"id":"AL","label":"Alabama","active":true},
{"id":"AK","label":"Alaska","active":true},
{"id":"AZ","label":"Arizona","active":true},
etc.
]
This is a locally defined controlled vocabulary and does not have any associated documentation.
Using Questioning Authority
- Connecting to Discogs
- Connecting to GeoNames
- Connecting to Getty
- Connecting to Library of Congress (LOC)
- Connecting to Medical Subject Headings (MeSH)
- Connecting to OCLC FAST
Custom Controlled Vocabularies
Linked Data Access to Authorities
- Connecting to Linked Data authorities
- Using the Linked Data module to access authorities
- Configuring access to a Linked Data authority
- Language processing in Linked Data authorities
Contributing to Questioning Authority
- Contributing a new external authority
- Template for authority documentation
- Understanding Existing Authorities