ontology_spec.rb revision 0b436a39408ef657a96f7e89e0cccd3d3dd86532
2N/Arequire 'spec_helper' 313N/A it 'should determine a name according to our style' do 105N/A it 'should delete the defining file as well' do 6N/A context 'a single ontology in a distributed ontology' do 34N/A it 'should delete the parent' do 500N/A it 'should delete all child ontologies as well' do it 'should delete the child ontologies as well' do it 'should delete the child ontologies as well' do context 'an imported ontology (meaning any kind of mapping)' do context 'imported by an onology in a different repository' do it 'should not be allowed' do context 'with sibling imported by an onology in a different repository' do it 'should not be allowed' do context 'imported by an onology in the same repository but another file' do it 'should not be allowed' do context 'imported by an onology in the same file' do it 'should be allowed' do it 'no ontology should exist' do context 'when trying to get the imported ontologies' do it 'should fetch immediately imported ontologies' do context 'which have imports themselves' do it 'should fetch all imported ontologies' do context 'a distributed ontology' do it 'should have logic DOL' do 'parsing a distributed ontology', context 'a TPTP file with an open theorem' do it 'be a SingleOntology' do it 'have logic SoftFOL' do it 'have a provable Theorem' do it 'have an open Theorem' do context 'a TPTP file with a proven theorem' do it 'be a SingleOntology' do it 'have logic SoftFOL' do it 'have an unprovable Theorem' do it 'have a proven Theorem' do context 'the logically translated ontology' do it 'should contain imported sentences' do it 'should contain logic translations' do it 'should have an ontology-version' do # context 'when parsing an ontology which is referenced by another ontology', :needs_hets do # let(:repository) { create :repository } # referenced_ontology = nil # ontology = define_ontology('Foo') do # this = prefix('ontohub') # imports define('Bar', as: :referenced_ontology) do # prefix('other_ontohub').class('SomeBar') # let(:referenced_ontology) do # it 'should import an ontology with that name' do # expect(ontology.direct_imported_ontologies).to include(referenced_ontology) # it 'should have an ontology-version' do # it 'should have a referenced ontology with an ontology-version' do context 'Import single Ontology' do it 'should save the logic' do it 'should be correct' do it 'should be reflected in the corresponding field' do it 'should be correct' do it 'should be reflected in the corresponding field' do it 'should be correct' do it 'should be reflected in the corresponding field' do it 'should be correct' do it 'should be reflected in the corresponding field' do context 'Import distributed Ontology' do it 'should create all single ontologies' do it 'should have all children ontologies' do it 'should have the correct mapping count' do it 'should have the DOL-logic assigned to the logic-field' do it 'should have no symbols' do it 'should have no sentences' do it 'should have symbols' do it 'should have one sentence' do it 'should have the same state as the parent' do context 'Import another distributed Ontology' do it 'should create single ontologies' do it 'should create a combined ontology' do it 'should be assigned to symbols of the combined ontology' do context 'Import Ontology with an error occurring while parsing' do # Stub ontology_end because this is always run after the iri # has been locked by the ConcurrencyBalancer. it 'should propagate the error' do it 'should be possible to parse it again (no AlreadyProcessingError)' do context 'Import Ontology with a theorem' do it 'should be correct' do it 'should be reflected in the corresponding field' do context 'Import Ontology with extension mappings' do it 'should be correct' do it 'should be reflected in the corresponding field' do context 'checking ordering of Ontology list' do it 'list done ontologies first' do context 'determining active version of ontology' do it 'be equal to current version' do it 'be equal to current version' do it 'be equal to second to latest version' do context 'correctness of non_current_active_version? question' do context 'be true, iff the active version != current one '\ it 'not the non-current active version' do it 'not the non-current active version for the user' do it 'not the non-current active version for the admin' do it 'not the non-current active version for the owner' do context 'be false, iff the active version == current one '\ it 'not the non-current active version' do it 'not the non-current active version for the user' do it 'not the non-current active version for the admin' do it 'not the non-current active version for the owner' do