Class: Qa::LDF::FAST

Inherits:
Authority
  • Object
show all
Defined in:
lib/qa/ldf/authorities/fast.rb

Overview

A caching OCLC Faceted Application of Subject Terminology (FAST) authority.

See Also:

Defined Under Namespace

Classes: SearchService

Constant Summary collapse

DEFAULT_DATASET_NAME =
:fast
NAMESPACE =
'http://id.id.worldcat.org/fast/'.freeze

Constants inherited from Authority

Authority::DEFAULT_CLIENT, Authority::DEFAULT_MAPPER, Authority::DEFAULT_SEARCH_SERVICE

Instance Attribute Summary

Attributes inherited from Authority

#client, #dataset, #mapper

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Authority

#all, #find, for, #graph, #initialize, namespaces, register_namespace, reset_namespaces, #search

Constructor Details

This class inherits a constructor from Qa::LDF::Authority

Class Method Details

.namespaceString

Returns the URI namespace associated with this authority.

Returns:

  • (String)

    the URI namespace associated with this authority



31
32
33
# File 'lib/qa/ldf/authorities/fast.rb', line 31

def self.namespace
  NAMESPACE
end

Instance Method Details

#search_serviceObject

Uses the LC AssignFast 'all' subauthority as the search provider



37
38
39
40
41
42
43
# File 'lib/qa/ldf/authorities/fast.rb', line 37

def search_service
  @search_service ||= NamespacedSearchService.new do |service|
    service.namespace      = NAMESPACE
    service.parent_service =
      Qa::Authorities::AssignFast.subauthority_for('all')
  end
end