Searched refs:ontology (Results 1 - 25 of 174) sorted by relevance

1234567

/ontohub/app/controllers/
H A Dtools_controller.rb2 belongs_to :ontology
4 @ontology = Ontology.find(params[:ontology_id])
5 @projects = Project.where(ontology: @ontology)
H A Dontology_version_member.rb3 # ontology version.
9 def ontology method in class:OntologyVersionMember
10 @ontology ||= Ontology.find(params[:ontology_id])
14 @version ||= ontology.versions.find_by_number!(params[:number])
H A Dtheorems_controller.rb2 belongs_to :ontology
12 def ontology method in class:TheoremsController
13 @ontology ||= Ontology.find(params[:ontology_id])
/ontohub/app/models/
H A Dalternative_iri.rb2 belongs_to :ontology
4 attr_accessible :iri, :ontology
H A Dreview.rb2 belongs_to :ontology
/ontohub/lib/
H A Dontology_bean_list_factory.rb11 def add_small_bean(ontology)
12 @bean_list.push(make_small_bean(ontology)) if @bean_list.size < 50
15 def make_small_bean(ontology)
17 name: ontology.name,
19 language: ontology.language.nil? ? '' : ontology.language.name,
20 logic: ontology.logic.nil? ? '' : ontology.logic.name,
21 iri: ontology.iri,
22 url: "/repositories/#{ontology
[all...]
H A Dparsing_callback.rb2 def self.determine_for(ontology)
3 logic_name = ontology.logic.to_s
8 return moddule.const_get(:Callback).new(ontology)
12 GenericCallback.new(ontology)
H A Dtarjan_tree.rb4 attr_accessor :hashed_symbols, :subclasses, :ontology, :symbols
7 def initialize(ontology)
8 self.ontology = ontology
10 self.symbols = ontology.symbols
12 self.subclasses = inheritance_sentences(ontology)
18 child = ontology.symbols.where('name = ? OR iri = ?', c1, c1).first!
19 parent = ontology.symbols.where('name = ? OR iri = ?', c2, c2).first!
26 create_tree(ontology)
29 def self.for(ontology)
[all...]
/ontohub/lib/hets/
H A Dprovers_options.rb11 ontology = @options[:ontology]
12 if ontology.is_a?(Ontology)
13 @options[:node] = ontology.name if ontology.in_distributed?
14 @options.delete(:ontology)
/ontohub/spec/factories/
H A Dontology_factory.rb11 factory :ontology do |ontology|
24 ontology.after(:build) do |ontology|
26 ontology: ontology,
27 basepath: ontology.basepath,
28 file_extension: ontology.file_extension,
30 ontology.versions << version
33 ontology
[all...]
H A Daction_factory.rb3 association :resource, factory: :ontology
/ontohub/app/helpers/
H A Dsentence_helper.rb4 if sentence.display_text? && sentence.ontology.logic.name == 'OWL'
11 def link_to_sentence_origin(sentence, ontology)
12 if sentence.ontology != ontology
13 t('sentences.sentence.defined_in', link: link_to(sentence.ontology,
14 [sentence.ontology.repository, sentence.ontology]))
/ontohub/app/models/ontology_version/
H A Dproving.rb5 repo = ontology.repository
8 ontology: ontology)
/ontohub/spec/models/repository/
H A Dretry_failed_spec.rb5 describe 'failed ontology' do
7 let(:ontology){ ontology_version.ontology }
8 let(:repository){ ontology.repository }
11 ontology.versions.last.send :update_state!, :failed
17 ontology.reload
21 it { ontology.state.should == 'pending' }
/ontohub/features/step_definitions/
H A Drepository_file_browser_steps.rb1 When(/^I visit the file browser of the ontology's repository$/i) do
2 visit repository_tree_path(@ontology.repository)
5 Then(/^I should see the ontology's file$/i) do
9 has_link?(@ontology.path, polymorphic_path(@ontology))).
13 Then(/^I should see the ontlogy next to the ontology's file$/i) do
14 ontology_cell_selector = 'table.file-table td.ontology ul.ontology-list'
17 has_link?(@ontology.name, polymorphic_path(@ontology)))
[all...]
H A Drepository_edit_file_steps.rb1 def build_version_for(ontology)
3 ontology.versions.build(
6 basepath: File.basepath(ontology.path),
7 file_extension: File.extname(ontology.path),
12 Given(/^I have uploaded a(.*) ontology$/) do |type|
16 And there is a#{type} ontology
17 And I have permissions to edit the ontology
18 And there is an ontology file
22 Given(/^Children of the ontology have been deleted$/i) do
23 @deleted_child = @ontology
[all...]
H A Dloc_id_steps.rb1 Given(/^there is a single ontology$/) do
2 @ontology = FactoryGirl.create(:single_unparsed_ontology)
5 Given(/^there is a single\-in\-distributed ontology$/) do
7 @ontology = @parent_ontology.children.first
10 When(/^I visit the ontology via the loc\/id$/) do
11 visit @ontology.locid
/ontohub/lib/hets/dg/
H A Dnode_evaluation_helper.rb4 def clean_ontology(ontology)
5 ontology.symbols.destroy_all
6 ontology.all_sentences.destroy_all
7 ontology.symbols_count = 0
8 ontology.sentences_count = 0
9 ontology.axioms_count = 0
10 ontology.theorems_count = 0
11 ontology.save!
14 def assign_language(ontology, current_element)
17 ontology
[all...]
/ontohub/spec/controllers/
H A Dontology_versions_controller_spec.rb8 let(:ontology) { create :distributed_ontology }
9 let(:ontology_child) { ontology.reload; ontology.children.first }
10 let(:repository) { ontology.repository }
13 parse_ontology(user, ontology, 'casl/test2.casl')
30 let(:ontology) { version.ontology }
31 let(:repository) { ontology.repository }
35 get :index, repository_id: repository.to_param, ontology_id: ontology.to_param
40 context 'for a single ontology' d
[all...]
H A Daxioms_controller_spec.rb5 let!(:ontology) { axiom.ontology }
12 repository_id: ontology.repository.to_param,
13 ontology_id: ontology.to_param
H A Dmappings_controller_spec.rb4 let(:ontology) { create :linked_distributed_ontology }
5 let(:mapping) { ontology.mappings.last }
11 repository_id: ontology.repository.to_param,
12 ontology_id: ontology.to_param,
/ontohub/spec/lib/
H A Dtarjan_spec.rb6 let(:ontology) { create :ontology }
11 ontology,
14 ontology.reload
18 expect(ontology.symbol_groups.size).to be(4)
19 symbols = ontology.symbols.where(name: ["B1","B2","B3"])
20 expect(ontology.symbol_groups.includes(:symbols).where("symbols.id" => symbols).first).not_to be(nil)
24 expect(ontology.symbol_groups.where("name LIKE '%☰%'")).not_to be_empty
28 symbol_group = ontology.symbol_groups.where(name: "D").first
/ontohub/spec/models/
H A Dsymbol_mapping_spec.rb5 context 'when importing an ontology', :needs_hets do
8 let(:dist_ontology) { version.ontology }
15 let(:ontology) { dist_ontology.children.find_by_name('test') }
18 expect(ontology.symbols.find_by_name('Human')).to be(nil)
/ontohub/db/data/
H A D20160310132620_move_loc_id_to_own_model_data.rb20 ontologies_to_parse.uniq.each do |ontology|
23 OntologySaver.new(ontology.repository).
24 async_parse_version(ontology.current_version)
31 ontology = Ontology.find(duplicate[:id])
32 if ontology.parent.is_a?(Ontology)
33 ontology.parent
35 ontology
38 klass.find(duplicate[:id]).ontology
/ontohub/db/seeds/
H A D041-proving.rb3 ontology = repository.ontologies.find_by_name(ontology_name)
4 Proof.new({ontology_id: ontology.id,
9 ontology = repository.ontologies.find_by_name('v__T')
10 theorem = ontology.theorems.find_by_name('antisymmetric')
11 Proof.new({ontology_id: ontology.id,
16 ontology = repository.ontologies.find_by_name('SubclassToleranceOne')
17 theorem = ontology.theorems.find_by_name('beer < liquid')
18 Proof.new({ontology_id: ontology.id,
26 ontology = repository.ontologies.find_by_name('SubclassToleranceOnePointFive')
27 theorem = ontology
[all...]

Completed in 49 milliseconds

1234567