Class: OpenBEL::Routes::Expressions
- Defined in:
- app/openbel/api/routes/expressions.rb
Defined Under Namespace
Classes: BELSerializationTransform, OrthologAdapter, ParameterOrthologTransform, SequenceVariationFunctionHasLocationPredicate
Constant Summary
Constants inherited from Base
Base::DEFAULT_CONTENT_TYPE, Base::DEFAULT_CONTENT_TYPE_ID, Base::RESOURCE_SERIALIZERS, Base::SCHEMA_BASE_URL, Base::SPOKEN_CONTENT_TYPES
Constants included from Schemas
Schemas::COMPILED_SCHEMAS, Schemas::SCHEMA_DIR, Schemas::SUFFIX
Constants included from OpenBEL::Resource::Namespaces
OpenBEL::Resource::Namespaces::VOCABULARY_RDF
Constants included from OpenBEL::Resource::Annotations
OpenBEL::Resource::Annotations::VOCABULARY_RDF
Instance Method Summary collapse
-
#initialize(app) ⇒ Expressions
constructor
A new instance of Expressions.
Methods included from Schemas
Constructor Details
#initialize(app) ⇒ Expressions
Returns a new instance of Expressions.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/openbel/api/routes/expressions.rb', line 10 def initialize(app) super # RdfRepository using Jena. @rr = BEL::RdfRepository.plugins[:jena].create_repository( :tdb_directory => OpenBEL::Settings[:resource_rdf][:jena][:tdb_directory] ) # Annotations using RdfRepository @annotations = BEL::Resource::Annotations.new(@rr) # Namespaces using RdfRepository @namespaces = BEL::Resource::Namespaces.new(@rr) # Resource Search using SQLite. @search = BEL::Resource::Search.plugins[:sqlite].create_search( :database_file => OpenBEL::Settings[:resource_search][:sqlite][:database_file] ) @sequence_variation = SequenceVariationFunctionHasLocationPredicate.new end |