Searched refs:ontology_version (Results 1 - 25 of 39) sorted by relevance

12

/ontohub/app/helpers/
H A Dontology_version_helper.rb2 def failed?(ontology_version)
3 ontology_version.state == 'failed'
6 def can_edit?(ontology_version)
7 can?(:write, ontology_version.repository) &&
8 failed?(ontology_version) &&
9 ontology_version.latest_version?
12 def btn_url(ontology_version)
14 path: ontology_version.path,
15 ref: ontology_version.commit_oid,
17 exact_commit: !ontology_version
[all...]
/ontohub/spec/lib/
H A Dtimeout_worker_spec.rb23 let(:ontology_version) { create :ontology_version }
24 let(:ontology) { ontology_version.ontology }
30 worker.perform(ontology_version.id)
31 ontology_version.reload
35 expect(ontology_version.state).to eq('failed')
39 expect(ontology_version.last_error).to include('The job reached the timeout limit')
49 let(:ontology_version) { create :ontology_version, state: 'done' }
51 it 'will not touch the state of the ontology_version' d
[all...]
/ontohub/db/data/
H A D20160614065104_create_missing_commits.rb3 OntologyVersion.where(commit_id: nil).find_each do |ontology_version|
4 commit = Commit.where(repository_id: ontology_version.repository.id,
5 commit_oid: ontology_version.commit_oid).
7 fill_in_commit_data(commit, ontology_version)
8 ontology_version.commit = commit
9 ontology_version.save!
19 def retrieve_user_info(ontology_version)
20 user_id = select_attributes(ontology_version, :user_id)[:user_id]
27 def fill_in_commit_data(commit, ontology_version)
28 user_info = retrieve_user_info(ontology_version)
[all...]
/ontohub/lib/hets/provers/
H A Dimporter.rb5 attr_accessor :ontology_version, :io
8 def initialize(ontology_version, io)
9 self.ontology_version = ontology_version
20 unless ontology_version.provers.include?(prover)
21 ontology_version.provers << prover
24 ontology_version.save!
/ontohub/lib/
H A Diri_url_builder.rb21 reference: ontology_version.number,
27 path = File.dirname(ontology_version.basepath)
32 File.basename(ontology_version.basepath)
35 def ontology_version method in class:IRIUrlBuilder.Builder
40 ontology_version.ontology
44 ontology_version.ontology.repository
H A Dproof_execution.rb33 ontology.import_proof(ontology_version,
34 ontology_version.pusher,
44 def ontology_version method in class:ProofExecution
H A Dtimeout_worker.rb30 def state_not_terminal?(ontology_version)
31 !OntologyVersion::States::TERMINAL_STATES.include?(ontology_version.state)
/ontohub/spec/models/repository/
H A Dretry_failed_spec.rb6 let(:ontology_version){ create :ontology_version }
7 let(:ontology){ ontology_version.ontology }
H A Daccess_spec.rb27 let(:ontology_version) { create :ontology_version }
28 let(:repository) { ontology_version.repository }
/ontohub/app/models/
H A Doops_request.rb3 belongs_to :ontology_version
H A Dproof_attempt.rb56 ontology_version = theorem.ontology.current_version
57 unless ontology_version.provers.include?(prover)
58 ontology_version.provers << prover
59 ontology_version.save!
H A Doops_response.rb20 self.symbols = request.ontology_version.ontology.symbols.
/ontohub/spec/models/
H A Doops_request_spec.rb5 it { should belong_to :ontology_version }
H A Dontology_version_spec.rb17 let(:ontology_version) { create :ontology_version }
22 #{ontology_version.repository.path}/
25 expect(ontology_version.url).to match(version_url_regex)
/ontohub/app/controllers/
H A Doops_requests_controller.rb14 ontology_version.create_oops_request!
16 respond_with(*resource_chain, ontology_version, resource)
30 def ontology_version method in class:OopsRequestsController
35 ontology_version.request
39 unless ontology_version.oops_request_creatable?
/ontohub/app/models/ontology/
H A Dversions.rb5 belongs_to :ontology_version
34 if self.ontology_version
35 self.ontology_version
42 return self.ontology_version if self.state == 'done'
50 real_process_state = active_version != self.ontology_version
51 if user && (user.admin || ontology_version.try(:pusher) == user)
/ontohub/spec/factories/
H A Dontology_version_factory.rb2 factory :ontology_version do
11 version.ontology.ontology_version = version
24 factory :ontology_version_with_file, :parent => :ontology_version do
H A Doops_factory.rb5 association :ontology_version
/ontohub/spec/controllers/
H A Dusers_controller_spec.rb18 ontology_version = create :ontology_version_with_file
19 commit = ontology_version.commit
H A Doops_request_controller_spec.rb31 state: :pending, ontology_version: version
45 ontology_version: version, state: :failed
61 ontology_version: version,
/ontohub/spec/models/ontology_version/
H A Dparsing_spec.rb6 let(:ontology_version) { ontology.save_file(ontology_file('owl/pizza.owl'), 'message', user) }
109 "#{Hostname.url_authority}#{ontology_version.locid}"
113 ontology_version
126 let(:commit) { ontology_version.commit }
131 ontology_version
140 expect(ontology_version.state_updated_at).to_not be(nil)
148 expect(commit.commit_oid).to eq(ontology_version.commit_oid)
157 ontology_version
172 ontology_version
185 ontology_version
[all...]
H A Dproving_spec.rb7 let(:ontology_version) { ontology.current_version }
10 let(:prove_options) { ontology_version.prove_options }
/ontohub/app/models/oops_request/
H A Dresponses.rb37 r = Oops::Client.request :content => ontology_version.raw_data
39 r = Oops::Client.request :url => ontology_version.url
/ontohub/features/step_definitions/
H A Dontology_state_steps.rb3 @ontology_version = @ontology.current_version
7 @ontology_version = FactoryGirl.create :ontology_version, state: state
8 @ontology = @ontology_version.ontology
23 @ontology_version.update_state!(state)
37 within %{#{el_css}[#{field}="#{@ontology_version.id}"][#{field_klass}="OntologyVersion"]} do
/ontohub/spec/lib/oops_request/
H A Dresponses_spec.rb5 let!(:version) { create :ontology_version }

Completed in 66 milliseconds

12