Harium / suneidesis

A project to represent knowledge
MIT License
2 stars 1 forks source link

[Core] Map matchers to Nitrite matchers #79

Open yuripourre opened 3 years ago

yuripourre commented 3 years ago
Concept anemic = new Concept();
anemic.has("red blood cells count", new Lower than(threshold));
anemic.has("hematocrit level", new LowerThan(threshold));

int clauses = partial(patient).is(anemic);
boolean result = clauses == 2;
yuripourre commented 3 years ago

I am pretty sure that this can be made turning a Concept into a group of (Nitrite) matchers.