Module: BEL::Annotation
- Defined in:
- lib/bel/annotation.rb
Defined Under Namespace
Classes: AnnotationDefinition
Constant Summary collapse
- LATEST_PREFIX =
'http://resource.belframework.org/belframework/latest-release/'
- DEFAULT_URI =
'http://www.openbel.org/bel/namespace/'
- ANNOTATION_LATEST =
{ Anatomy: [ LATEST_PREFIX + 'annotation/anatomy.belanno', 'http://www.openbel.org/bel/namespace/uberon/' ], CellLine: [ LATEST_PREFIX + 'annotation/cell-line.belanno', 'http://www.openbel.org/bel/namespace/cell-line-ontology/' ], CellStructure: [ LATEST_PREFIX + 'annotation/cell-structure.belanno', 'http://www.openbel.org/bel/namespace/mesh-cellular-structures/' ], Cell: [ LATEST_PREFIX + 'annotation/cell.belanno', 'http://www.openbel.org/bel/namespace/cell-ontology/' ], Disease: [ LATEST_PREFIX + 'annotation/disease.belanno', 'http://www.openbel.org/bel/namespace/disease-ontology/' ], MeSHAnatomy: [ LATEST_PREFIX + 'annotation/mesh-anatomy.belanno', 'http://www.openbel.org/bel/namespace/mesh-anatomy/' ], MeSHDisease: [ LATEST_PREFIX + 'annotation/mesh-diseases.belanno', 'http://www.openbel.org/bel/namespace/mesh-diseases/' ], Species: [ LATEST_PREFIX + 'annotation/species-taxonomy-id.belanno', 'http://www.openbel.org/bel/namespace/ncbi-taxonomy/' ], }
- DEFAULT_ANNOTATIONS =
create classes for each standard keyword
ANNOTATION_LATEST.collect do |keyword, values| rdf_uri = ANNOTATION_LATEST[keyword][1] || DEFAULT_URI anno_def = AnnotationDefinition.new(keyword, values[0], rdf_uri) Annotation.const_set(keyword, anno_def) anno_def end