Class: DbdDataEngine::Context
- Inherits:
-
Object
- Object
- DbdDataEngine::Context
- Defined in:
- app/models/dbd_data_engine/context.rb
Class Method Summary collapse
- .business_today ⇒ Object
- .default_from_params(context_param, current_graph) ⇒ Object
- .personal_today ⇒ Object
- .predicates ⇒ Object
- .public_today ⇒ Object
Class Method Details
.business_today ⇒ Object
18 19 20 |
# File 'app/models/dbd_data_engine/context.rb', line 18 def self.business_today context_from_context_facts(business_today_context_facts) end |
.default_from_params(context_param, current_graph) ⇒ Object
22 23 24 |
# File 'app/models/dbd_data_engine/context.rb', line 22 def self.default_from_params(context_param, current_graph) find_context(context_param, current_graph) || create_context(context_param) end |
.personal_today ⇒ Object
14 15 16 |
# File 'app/models/dbd_data_engine/context.rb', line 14 def self.personal_today context_from_context_facts(personal_today_context_facts) end |
.predicates ⇒ Object
4 5 6 7 8 |
# File 'app/models/dbd_data_engine/context.rb', line 4 def self.predicates resources = ::DbdOnto::Context.new.resources predicate_defining_resources = select_with_defines_predicate(resources) make_predicate_label_hash(predicate_defining_resources) end |
.public_today ⇒ Object
10 11 12 |
# File 'app/models/dbd_data_engine/context.rb', line 10 def self.public_today context_from_context_facts(public_today_context_facts) end |