Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimancik committed Mar 30, 2011
1 parent 39a755c commit af3b41c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/reasoner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Context {
set<Context*> backward_links;
set<pair<RoleID, Disjunction> > universals;

vector<const Concept*> super;
vector<const AtomicConcept*> super;

int axioms;

Expand Down Expand Up @@ -423,7 +423,7 @@ int Context::process() {
}
else {
if (goals_set)
super.push_back(norm);
super.push_back((const AtomicConcept*) norm);
else
formatter.subsumption(core, (const AtomicConcept*) norm);
}
Expand Down Expand Up @@ -739,7 +739,7 @@ int main(int argc, char* argv[]) {
if (a.size() > 1) {
const DummyConcept* d = factory.dummy(line);
FOREACH(x, a)
ontology.unary(d->ID(), Disjunction(*x));
ontology.unary(d->ID(), Disjunction((*x)->ID()));
goals.push_back(d);
}
}
Expand Down Expand Up @@ -804,9 +804,11 @@ int main(int argc, char* argv[]) {

if (goals_set) {
(output_set ? output : cout) << endl << (*a)->to_string() << endl;
if (now.satisfiable)
if (now.satisfiable) {
sort(now.super.begin(), now.super.end(), AtomicConcept::AlphaLess());
FOREACH(x, now.super)
(output_set ? output : cout) << " " << (*x)->to_string() << endl;
}
else
(output_set ? output : cout) << " owl:Nothing" << endl;
}
Expand Down

0 comments on commit af3b41c

Please sign in to comment.