I'm trying to use Protegé to solve the following mathematical riddle:
Find a SIX digit number in which the FIRST digit is ONE more than the THIRD, the SECOND digit is ONE less than the FOURTH, the FIFTH digit is ONE less than the THIRD, and the SIXTH digit is ONE more than the FOURTH. The sum of the SECOND and the THIRD digits equal the FIRST. The sum of all the digits is 30.
This roughly translates to the following rules:
Rules
------
n1 >(+1) n3
n2 <(-1) n4
n5 <(-1) n3
n6 >(+1) n4
n2 + n3 = n1
nSUM = 30
And so, within Protegé, I've created the following ontological rules:
- class:
Number
. - object property:
isOneMoreThan
, character: not sure, domain & range:Number
- object property:
isOneLessThan
, character: not sure, domain & range:Number
- individuals:
n1
,n2
,n3
,n4
,n5
,n6
(each having an assigned obj prop assertion ofisOneMoreThan
orisOneLessThan
But I'm not sure of two things:
- how do I know what object property characterizations to give my existing object properties?
- how do I model the Sum rules so that way
[n2+n3]=n1
and[n1+n2+n3+n4+n5+n6]=30
?