-
Notifications
You must be signed in to change notification settings - Fork 12
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 #7 from ncbo/master
Sync with BioPortal release 2.5.0
- Loading branch information
Showing
7 changed files
with
84 additions
and
55 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
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 |
---|---|---|
|
@@ -153,14 +153,4 @@ For questions please email [[email protected]]([email protected].) | |
|
||
## License | ||
|
||
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: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE BOARD OF TRUSTEES OF LELAND STANFORD JUNIOR UNIVERSITY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL The Board of Trustees of Leland Stanford Junior University OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of The Board of Trustees of Leland Stanford Junior University. | ||
This project is licensed under the [FreeBSD License](LICENSE.txt) © 2025 The Board of Trustees of Leland Stanford Junior University. |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module LinkedData | ||
module Client | ||
VERSION = '2.4.0' | ||
VERSION = '2.5.0' | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'test_case' | ||
|
||
class LinkExplorerTest < LinkedData::Client::TestCase | ||
def test_explore_ontology_submission_by_id | ||
ont = LinkedData::Client::Models::Ontology.get('FMA') | ||
sub = ont.explore.submissions('29') | ||
refute_nil(sub) | ||
assert_instance_of(LinkedData::Client::Models::OntologySubmission, sub) | ||
assert_equal(29, sub.submissionId) | ||
end | ||
|
||
def test_explore_ontology_class_by_id | ||
ont = LinkedData::Client::Models::Ontology.get('FMA') | ||
cls = ont.explore.classes('http://purl.org/sig/ont/fma/fma70742') | ||
refute_nil(cls) | ||
assert_instance_of(LinkedData::Client::Models::Class, cls) | ||
assert_equal('http://purl.org/sig/ont/fma/fma70742', cls.id) | ||
assert_equal('Set of eyelashes', cls.prefLabel) | ||
end | ||
|
||
def test_explore_ontology_single_class | ||
ont = LinkedData::Client::Models::Ontology.get('FMA') | ||
cls = ont.explore.single_class('http://purl.org/sig/ont/fma/fma322428') | ||
refute_nil(cls) | ||
assert_instance_of(LinkedData::Client::Models::Class, cls) | ||
assert_equal('http://purl.org/sig/ont/fma/fma322428', cls.id) | ||
assert_equal('Set of salivary glands', cls.prefLabel) | ||
end | ||
end |