$services.vocabularies
instead@Deprecated @Component @Named(value="ontologies") @Singleton public class OntologyScriptService extends Object implements org.xwiki.script.service.ScriptService
$services.vocabulary
instead.Constructor and Description |
---|
OntologyScriptService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Vocabulary |
get(String vocabularyId)
Deprecated.
use
$services.vocabularies.get instead |
Vocabulary |
getOntology(String vocabularyId)
Deprecated.
use
$services.vocabularies.getVocabulary instead |
VocabularyTerm |
resolveTerm(String termId)
Deprecated.
use
$services.vocabularies.resolveTerm instead |
@Deprecated public VocabularyTerm resolveTerm(String termId)
$services.vocabularies.resolveTerm
insteadtermId
- the term identifier, in the format <vocabulary prefix>:<term id>
, for example
HP:0002066
null
if the term doesn't exist in the vocabulary, or no matching
vocabulary is available@Deprecated public Vocabulary getOntology(String vocabularyId)
$services.vocabularies.getVocabulary
insteadvocabularyId
- the vocabulary identifier, which is also used as a prefix in every term identifier from that
vocabulary, or a known alias
for it, for example MIM
,
hpo
, HP
or HPO
null
if it doesn't exist or isn't available in the platform@Deprecated public Vocabulary get(String vocabularyId)
$services.vocabularies.get
insteadgetOntology(String)
which allows
scripts to use the shorter $services.ontologies.hpo
notation for accessing a vocabulary.vocabularyId
- the vocabulary identifier, which is also used as a prefix in every term identifier from that
vocabulary, or a known alias
for it, for example MIM
,
HP
or HPO
null
if it doesn't exist or isn't available in the platformCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.