Class: DbdOntoEngine::OntologiesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- DbdOntoEngine::OntologiesController
- Defined in:
- app/controllers/dbd_onto_engine/ontologies_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/dbd_onto_engine/ontologies_controller.rb', line 5 def index @ontologies = supported_ontologies end |
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/dbd_onto_engine/ontologies_controller.rb', line 9 def show @ontology = params[:id] @ontology_predicates = ontology_class(@ontology).new. select{ |e| e.predicate == 'meta:defines_predicate'}. map(&:object) end |