-
Notifications
You must be signed in to change notification settings - Fork 30
Understanding Existing Authorities
E. Lynette Rayle edited this page Mar 4, 2019
·
1 revision
Qa::Authorities::Base
- defines the abstract interface with methods
all
find(id)
Qa::Authorities::WebServiceBase
- defines
json(url)
which calls response(url) and parses the response withJSON.parse(response)
- defines
response(url)
which usesFaraday
to request a response from the url - defines
attr_accessor :raw_response
(which is not set by eitherjson
orresponse methods
)
Qa::Authorities::AssignFast
- extend
AuthorityWithSubAuthority
- extend
AssignFastSubauthority
- requires
lib/qa/authorities/assign_fast/generic_authority
- defines
subauthority_for
which creates an instance ofQa::Authorities::AssignFast::GenericAuthority
for the requested subauthority
Qa::Authorities::AssignFastSubauthority
- defines
subauthorities
which returns an array of supported subauthorities - converts English subauthority name into the required subauthority code to use in the request URL
Qa::Authorities::AssignFast::GenericAuthority
- inherits from
Base
- includes
WebServiceBase
- defines
attr_reader :subauthority
with @subauthority set ininitialize(subauthority)
method -
search
- defines
search(q)
which uses WebServiceBase'sjson(url)
method to access the authority - defines
build_query_url(q)
used bysearch(q)
- defines
private parse_authority_response(raw_response)
used bysearch(q)
- defines
response(url)
which overrides WebServiceBase'sresponse(url)
- defines
NOT SUPPORTED
- list terms
- fetch term (unclear whether or not this works; couldn't locate the
find
method)
Qa::Authorities::Geonames
- inherits from
Base
- includes
WebServiceBase
-
search
- defines
search(q)
which uses WebServiceBase'sjson(url)
method to access the authority - defines
build_query_url(q)
used bysearch(q)
- defines
private parse_authority_response(response)
used bysearch(q)
- defines
-
find
- defines
find(id)
which uses WebServiceBase'sjson(url)
method to access the authority - defines
find_url(id)
used byfind(id)
- defines
NOT SUPPORTED
- list terms
TBD
Qa::Authorities::Loc
- extend
AuthorityWithSubAuthority
- extend
LocSubauthority
- requires
lib/qa/authorities/loc/generic_authority
- defines
subauthority_for
which creates an instance ofQa::Authorities::Loc::GenericAuthority
for the requested subauthority - defines
subauthorities
which returns an array of supported subauthority names
Qa::Authorities::LocSubauthority
- defines multiple sets of subauthorities and determins the base_url to use based on the type of subauthority
Qa::Authorities::Loc::GenericAuthority
- inherits from
Base
- includes
WebServiceBase
- defines
attr_reader :subauthority
with @subauthority set ininitialize(subauthority)
method -
search
- defines
search(q)
which uses WebServiceBase'sjson(url)
method to access the authority & setting @raw_response - defines
build_query_url(q)
used bysearch(q)
- defines
private parse_authority_response
used bysearch(q)
and using @raw_response as the response instead of passing it in - defines additional private methods for parsing
- defines
response(url)
which overrides WebServiceBase'sresponse(url)
- defines
-
find
- defines
find(id)
which uses WebServiceBase'sjson(url)
method to access the authority - defines
find_url(id)
used byfind(id)
- defines
NOT SUPPORTED
- list terms
TBD
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