Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix lov lookup endpoint #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OntologySearch.gs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ function searchLOV(term) {
var restriction = findRestrictionForCurrentColumn("LOV");
var vocabularies = getLinkedOpenVocabularies();

var url = "http://lov.okfn.org/dataset/lov/api/v2/search?q=" + term;
var url = "https://lov.linkeddata.es/dataset/lov/api/v2/search?q=" + term;
var vocabShortname;
var vocabURI;
if (restriction.source) {
vocabShortname = restriction.ontologyId.replace(/\s/g, ""); //string trim
if (vocabularies[vocabShortname]) {
vocabURI = vocabularies[vocabShortname].uri;
if (vocabURI)
url = "http://lov.okfn.org/dataset/lov/api/v2/search?q=" + term + "&voc=" + vocabURI;
url = "https://lov.linkeddata.es/dataset/lov/api/v2/search?q=" + term + "&voc=" + vocabURI;
} else {
url = "";
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Please, note that at the time of the publication, OntoMaton was powered by the <

- we upgraded the code to [Google Add-ons for Docs and Sheets](http://googledrive.blogspot.it/2014/03/add-ons.html), which [deprecated the Apps Script applications and the Script Gallery](http://googleappsdeveloper.blogspot.co.uk/2014/06/deprecating-script-gallery-in-old.html), used in the original OntoMaton version
- we upgraded to the new BioPortal API for searching ontology terms and annotator services (see BioPortal 4.0 release notes), as the old API was deprecated in 2014
- we extended the ontology search functionality to support REST services from the <a href="http://lov.okfn.org/">Linked Open Vocabularies</a> and the <a href="https://www.ebi.ac.uk/ols/">EBI Ontology Lookup Service</a>, thus now allowing ontology term searches over three separate services.
- we extended the ontology search functionality to support REST services from the <a href="https://lov.linkeddata.es/">Linked Open Vocabularies</a> and the <a href="https://www.ebi.ac.uk/ols/">EBI Ontology Lookup Service</a>, thus now allowing ontology term searches over three separate services.

For more information, see [our blog posts on OntoMaton](https://isatools.wordpress.com/?s=ontomaton).

Expand Down Expand Up @@ -82,7 +82,7 @@ You can access it through the 'Add On' menu option.

### Ontology Search

From OntoMaton, you can search three different services within one tool: the [NCBO Bioportal](http://bioportal.bioontology.org/), [Linked Open Vocabularies](http://lov.okfn.org) and [EBI Ontology Lookup Service](https://www.ebi.ac.uk/ols/), and insert the terms in your Google Spreadsheet directly. Full term provenance is recorded for you and later downstream analysis.
From OntoMaton, you can search three different services within one tool: the [NCBO Bioportal](http://bioportal.bioontology.org/), [Linked Open Vocabularies](https://lov.linkeddata.es) and [EBI Ontology Lookup Service](https://www.ebi.ac.uk/ols/), and insert the terms in your Google Spreadsheet directly. Full term provenance is recorded for you and later downstream analysis.

<div align="center">
<img src="https://github.com/ISA-tools/OntoMaton/blob/master/figures/ontomaton-fig8.png" width="700">
Expand Down
2 changes: 1 addition & 1 deletion Settings.gs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function getBioPortalOntologies() {

function getLinkedOpenVocabularies(){

var vocabsURL = "http://lov.okfn.org/dataset/lov/api/v2/vocabulary/list";
var vocabsURL = "https://lov.linkeddata.es/dataset/lov/api/v2/vocabulary/list";
var cache = CacheService.getPrivateCache();

if (cache.get("lov_fragments") == null) {
Expand Down