forked from ontoportal/ontologies_api_ruby_client
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ncbo/master
Sync: merge releases 2.2.3 and onward from ncbo
- Loading branch information
Showing
19 changed files
with
290 additions
and
137 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,8 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'pry' | ||
gem 'rake' | ||
gem 'rubocop', '~> 1.43' | ||
gem 'pry' | ||
gem 'test-unit' |
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,10 +1,11 @@ | ||
# ontologies_api_client | ||
|
||
Models and serializers for ontologies and related artifacts backed by a [4store](https://github.com/4store/4store) | ||
RDF database. This library can be used for interacting with a 4store instance that stores | ||
[BioPortal](https://bioportal.bioontology.org/) ontology data. Models in the library are based on | ||
[Graph Oriented Objects for Ruby (Goo)](https://github.com/ncbo/goo). Serializers support RDF serialization as | ||
Rack Middleware and automatic generation of hypermedia links. | ||
Models and serializers for ontologies and related artifacts backed by an | ||
[AllegroGraph](https://allegrograph.com/products/allegrograph/) or a [4store](https://github.com/4store/4store) | ||
database. This library can be used for interacting with an AllegroGraph or a 4store instance that | ||
stores [BioPortal](https://bioportal.bioontology.org/) ontology data. Models in the library are based on | ||
[Graph Oriented Objects for Ruby (Goo)](https://github.com/ncbo/goo). Serializers support RDF serialization as Rack Middleware and automatic | ||
generation of hypermedia links. | ||
|
||
## Install | ||
|
||
|
@@ -152,7 +153,7 @@ For questions please email [[email protected]]([email protected].) | |
|
||
## License | ||
|
||
Copyright (c) 2021, The Board of Trustees of Leland Stanford Junior University All rights reserved. | ||
Copyright (c) 2024, The Board of Trustees of Leland Stanford Junior University All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
|
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,13 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
# config.rb is required for testing | ||
# unit test makes calls to bioportal api so it needs a valid API key which can | ||
# be set via ENV variable UT_APIKEY | ||
abort('UT_APIKEY env variable is not set. Canceling tests') unless ENV.include?('UT_APIKEY') | ||
abort('UT_APIKEY env variable is set to an empty value. Canceling tests') unless ENV['UT_APIKEY'].size > 5 | ||
|
||
LinkedData::Client.config do |config| | ||
config.rest_url = 'https://data.bioontology.org' | ||
config.apikey = ENV['UT_APIKEY'] | ||
# config.apikey = 'xxxxx-xxxxx-xxxxxxxxxx' | ||
config.links_attr = 'links' | ||
config.cache = false | ||
config.rest_url = 'https://data.bioontology.org' | ||
config.apikey = ENV['UT_APIKEY'] | ||
# config.apikey = 'xxxxx-xxxxx-xxxxxxxxxx' | ||
config.links_attr = 'links' | ||
config.purl_host = 'purl.bioontology.org' | ||
config.purl_prefix = 'https://purl.bioontology.org/ontology' | ||
config.cache = false | ||
end |
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
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
Oops, something went wrong.