-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* list - returns a list of the loaded linked data authorities * reload - reload linked data configurations (does not require restart of rails server) * fetch - retrieve a single linked data term by passing URI as a parameter
- Loading branch information
Showing
14 changed files
with
1,070 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
auth_cfg = {} | ||
# load QA configured linked data authorities | ||
Dir[File.join(Qa::Engine.root, 'config', 'authorities', 'linked_data', '*.json')].each do |fn| | ||
auth = File.basename(fn, '.json').upcase.to_sym | ||
json = File.read(File.expand_path(fn, __FILE__)) | ||
cfg = JSON.parse(json).deep_symbolize_keys | ||
auth_cfg[auth] = cfg | ||
end | ||
|
||
# load app configured linked data authorities and overrides | ||
Dir[Rails.root.join('config', 'authorities', 'linked_data', '*.json')].each do |fn| | ||
auth = File.basename(fn, '.json').upcase.to_sym | ||
json = File.read(File.expand_path(fn, __FILE__)) | ||
cfg = JSON.parse(json).deep_symbolize_keys | ||
auth_cfg[auth] = cfg | ||
end | ||
LINKED_DATA_AUTHORITIES_CONFIG = auth_cfg.freeze | ||
Qa::Authorities::LinkedData::AuthorityService.load_authorities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.