Repository navigation
Fuzzy DL OWL 2 v1.0.31
fix: min-sat arity, modifier collapse, trapezoid membership (v1.0.31)
Three reasoning/library bugs plus latent replace() defects, found while
driving the library from the SDF Ontology Viewer. Suite: 173 tests, all
passing. Version bumped to 1.0.31 (pyproject.toml, setup.cfg, docs conf).
- SatisfiableQuery: the 1-arg initialiser called self.init(c, None),
dispatching virtually into the subclass constructor and killing the
whole KB load on (min-sat? C) with a bare AssertionError. Now bound
statically (Java this(c, null)); MinSatisfiableQuery accepts a None
individual, symmetric with MaxSatisfiableQuery. - KnowledgeBase.solve_modifier_complemented_assertion: also assert the
complement of the modifier's child (complex or TBox-defined), so
min-instance? over (very (some ...)) no longer collapses to 0.
Deliberate divergence from the Java oracle, which shares the defect:
the child's complement rule must fire to bound its degree variable. - TrapezoidalConcreteConcept.get_membership_degree: the third branch was
always true, so the descending side (c,d) returned the ascending slope
((x-a)/(b-a) > 1, e.g. 2.875 instead of 0.5 at x=25). Now tests x < b.
Deliberate divergence (Java shares the dead branch). Display-only: the
MILP encoding is built from the breakpoints and never calls this
function, so query answers were already correct. - Concept.replace: preserve polarity in LinearlyModified, Triangularly-
Modified and Owa concepts (the oracle negates: copy-paste of each
class's complement()); OperatorConcept.replace dispatches on the
receiver's type instead of the replacement's (no more None on atomic
replacements); base ModifiedConcept.replace is abstract as in Java.
Dead code in the reasoning paths; construction-level tests only. - dl_parser_fast: errors wrapped as ": ", so a bare
AssertionError no longer surfaces as an empty FuzzyOntologyException. - dl_parser (legacy): queries tried before concept in gformula, so
two-token queries like (min-sat? C) parse as queries. - Tests: new KBs examples/TestSuite/sat10-14.txt and modifier3-12.txt;
new test_replace and test_membership modules; new cases in test_sat
and test_modifier; all registered in test_suite.