bmi_proof.n3 43 KB
Newer Older
josd's avatar
josd committed
1
#Processed by EYE v19.0116.1239 josd
josd's avatar
josd committed
2
#eye --n3 http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3 --n3 http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3 --n3 http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3 --n3 http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3 --query http://josd.github.io/eye/reasoning/bmi/bmi_query.n3
josd's avatar
josd committed
3 4

PREFIX owl: <http://www.w3.org/2002/07/owl#>
5 6 7 8 9 10
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX organism: <http://eulersharp.sourceforge.net/2003/03swap/organism#>
PREFIX humanbody: <http://eulersharp.sourceforge.net/2003/03swap/humanBody#>
PREFIX human: <http://eulersharp.sourceforge.net/2003/03swap/human#>
PREFIX units: <http://eulersharp.sourceforge.net/2003/03swap/units#>
PREFIX quant: <http://eulersharp.sourceforge.net/2003/03swap/quantities#>
josd's avatar
josd committed
11
PREFIX physical: <http://eulersharp.sourceforge.net/2003/03swap/physicalResource#>
12 13 14 15
PREFIX event: <http://eulersharp.sourceforge.net/2003/03swap/event#>
PREFIX time: <http://eulersharp.sourceforge.net/2003/03swap/time#>
PREFIX i: <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
josd's avatar
josd committed
16 17 18 19
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dce: <http://purl.org/dc/elements/1.1/>
PREFIX log: <http://www.w3.org/2000/10/swap/log#>
PREFIX math: <http://www.w3.org/2000/10/swap/math#>
20
PREFIX list: <http://www.w3.org/2000/10/swap/list#>
josd's avatar
josd committed
21
PREFIX e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>
22 23
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX func: <http://www.w3.org/2007/rif-builtin-function#>
josd's avatar
josd committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
PREFIX schema: <http://schema.org/>
PREFIX fos: <http://eulersharp.sourceforge.net/2003/03swap/foster#>
PREFIX r: <http://www.w3.org/2000/10/swap/reason#>

[] a r:Proof, r:Conjunction;
  r:component <#lemma1>;
  r:component <#lemma2>;
  r:component <#lemma3>;
  r:component <#lemma4>;
  r:component <#lemma5>;
  r:gives {
    i:adult3 human:hasBodyMassIndex _:sk_0.
    i:adult3 human:hasWeightStatus _:sk_3.
    _:sk_0 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_0 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_0 quant:hasValue 15.299747554165355 .
    _:sk_0 event:basedOn i:weightMeasurement3.
    _:sk_0 event:basedOn i:lengthMeasurement3.
    _:sk_3 a humanbody:SeverelyUnderweight.
    _:sk_3 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_3 event:basedOn _:sk_0.
    i:adult4 human:hasBodyMassIndex _:sk_1.
    i:adult4 human:hasWeightStatus _:sk_5.
    _:sk_1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_1 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_1 quant:hasValue 24.535123966942148 .
    _:sk_1 event:basedOn i:weightMeasurement4.
    _:sk_1 event:basedOn i:lengthMeasurement4.
    _:sk_5 a humanbody:NormalWeight.
    _:sk_5 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_5 event:basedOn _:sk_1.
    i:adult5 human:hasBodyMassIndex _:sk_2.
    i:adult5 human:hasWeightStatus _:sk_4.
    _:sk_2 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_2 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_2 quant:hasValue 18.359697064998425 .
    _:sk_2 event:basedOn i:weightMeasurement5.
    _:sk_2 event:basedOn i:lengthMeasurement5.
    _:sk_4 a humanbody:Underweight.
    _:sk_4 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_4 event:basedOn _:sk_2.
    i:adult1 human:hasBodyMassIndex _:sk_7.
    i:adult1 human:hasWeightStatus _:sk_11.
    _:sk_7 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_7 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_7 quant:hasValue 55.4016620498615 .
    _:sk_7 event:basedOn i:weightMeasurement1.
    _:sk_7 event:basedOn i:lengthMeasurement1.
    _:sk_11 a humanbody:SuperObese.
    _:sk_11 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_11 event:basedOn _:sk_7.
    i:adult2 human:hasBodyMassIndex _:sk_9.
    i:adult2 human:hasWeightStatus _:sk_10.
    _:sk_9 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_9 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_9 quant:hasValue 26.17489589530042 .
    _:sk_9 event:basedOn i:weightMeasurement2.
    _:sk_9 event:basedOn i:lengthMeasurement2.
    _:sk_10 a humanbody:Overweight.
    _:sk_10 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_10 event:basedOn _:sk_9.
  }.

<#lemma1> a r:Inference;
  r:gives {
    i:adult3 human:hasBodyMassIndex _:sk_0.
    i:adult3 human:hasWeightStatus _:sk_3.
    _:sk_0 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_0 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_0 quant:hasValue 15.299747554165355 .
    _:sk_0 event:basedOn i:weightMeasurement3.
    _:sk_0 event:basedOn i:lengthMeasurement3.
    _:sk_3 a humanbody:SeverelyUnderweight.
    _:sk_3 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_3 event:basedOn _:sk_0.
  };
  r:evidence (
    <#lemma6>
    <#lemma7>
    <#lemma6>
    <#lemma6>
    <#lemma6>
    <#lemma6>
    <#lemma6>
    <#lemma8>
    <#lemma9>
    <#lemma7>
    <#lemma7>
    <#lemma7>
  );
  r:rule <#lemma10>.

<#lemma2> a r:Inference;
  r:gives {
    i:adult4 human:hasBodyMassIndex _:sk_1.
    i:adult4 human:hasWeightStatus _:sk_5.
    _:sk_1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_1 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_1 quant:hasValue 24.535123966942148 .
    _:sk_1 event:basedOn i:weightMeasurement4.
    _:sk_1 event:basedOn i:lengthMeasurement4.
    _:sk_5 a humanbody:NormalWeight.
    _:sk_5 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_5 event:basedOn _:sk_1.
  };
  r:evidence (
    <#lemma11>
    <#lemma12>
    <#lemma11>
    <#lemma11>
    <#lemma11>
    <#lemma11>
    <#lemma11>
    <#lemma13>
    <#lemma14>
    <#lemma12>
    <#lemma12>
    <#lemma12>
  );
  r:rule <#lemma10>.

<#lemma3> a r:Inference;
  r:gives {
    i:adult5 human:hasBodyMassIndex _:sk_2.
    i:adult5 human:hasWeightStatus _:sk_4.
    _:sk_2 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_2 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_2 quant:hasValue 18.359697064998425 .
    _:sk_2 event:basedOn i:weightMeasurement5.
    _:sk_2 event:basedOn i:lengthMeasurement5.
    _:sk_4 a humanbody:Underweight.
    _:sk_4 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_4 event:basedOn _:sk_2.
  };
  r:evidence (
    <#lemma15>
    <#lemma16>
    <#lemma15>
    <#lemma15>
    <#lemma15>
    <#lemma15>
    <#lemma15>
    <#lemma17>
    <#lemma18>
    <#lemma16>
    <#lemma16>
    <#lemma16>
  );
  r:rule <#lemma10>.

<#lemma4> a r:Inference;
  r:gives {
    i:adult1 human:hasBodyMassIndex _:sk_7.
    i:adult1 human:hasWeightStatus _:sk_11.
    _:sk_7 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_7 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_7 quant:hasValue 55.4016620498615 .
    _:sk_7 event:basedOn i:weightMeasurement1.
    _:sk_7 event:basedOn i:lengthMeasurement1.
    _:sk_11 a humanbody:SuperObese.
    _:sk_11 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_11 event:basedOn _:sk_7.
  };
  r:evidence (
    <#lemma19>
    <#lemma20>
    <#lemma19>
    <#lemma19>
    <#lemma19>
    <#lemma19>
    <#lemma19>
    <#lemma21>
    <#lemma22>
    <#lemma20>
    <#lemma20>
    <#lemma20>
  );
  r:rule <#lemma10>.

<#lemma5> a r:Inference;
  r:gives {
    i:adult2 human:hasBodyMassIndex _:sk_9.
    i:adult2 human:hasWeightStatus _:sk_10.
    _:sk_9 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_9 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_9 quant:hasValue 26.17489589530042 .
    _:sk_9 event:basedOn i:weightMeasurement2.
    _:sk_9 event:basedOn i:lengthMeasurement2.
    _:sk_10 a humanbody:Overweight.
    _:sk_10 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_10 event:basedOn _:sk_9.
  };
  r:evidence (
    <#lemma23>
    <#lemma24>
    <#lemma23>
    <#lemma23>
    <#lemma23>
    <#lemma23>
    <#lemma23>
    <#lemma25>
    <#lemma26>
    <#lemma24>
    <#lemma24>
    <#lemma24>
  );
  r:rule <#lemma10>.

<#lemma6> a r:Inference;
  r:gives {
    i:adult3 human:hasBodyMassIndex _:sk_0.
    _:sk_0 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_0 quant:hasValue 15.299747554165355 .
    _:sk_0 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_0 event:basedOn i:weightMeasurement3.
    _:sk_0 event:basedOn i:lengthMeasurement3.
  };
  r:evidence (
    <#lemma27>
    <#lemma28>
    <#lemma29>
    <#lemma30>
    <#lemma31>
    <#lemma32>
    <#lemma9>
    <#lemma33>
    <#lemma34>
    <#lemma35>
    <#lemma36>
    <#lemma8>
    <#lemma37>
    <#lemma38>
    [ a r:Fact; r:gives {("2010-01-20T00:00:00+01:00"^^xsd:dateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime) math:difference 0}]
    [ a r:Fact; r:gives {0 math:notGreaterThan "P10Y"^^xsd:duration}]
    [ a r:Fact; r:gives {0 math:notLessThan "-P7D"^^xsd:duration}]
    [ a r:Fact; r:gives {("2010-01-20T00:00:00+01:00"^^xsd:dateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime) e:max "2010-01-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-01-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-01-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-01-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-01-20T00:00:00+01:00"^^xsd:dateTime}]
    <#lemma39>
    [ a r:Fact; r:gives {23 math:notLessThan 15}]
    [ a r:Fact; r:gives {(1.715 2) math:exponentiation 2.941225}]
    [ a r:Fact; r:gives {(45 2.941225) math:quotient 15.299747554165355}]
  );
  r:rule <#lemma40>.

<#lemma7> a r:Inference;
  r:gives {
    i:adult3 human:hasWeightStatus _:sk_3.
    _:sk_3 a humanbody:SeverelyUnderweight.
    _:sk_3 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_3 event:basedOn _:sk_0.
  };
  r:evidence (
    <#lemma6>
    <#lemma6>
    <#lemma6>
    [ a r:Fact; r:gives {15.299747554165355 math:lessThan 16}]
  );
  r:rule <#lemma41>.

<#lemma8> a r:Extraction;
  r:gives {
    i:weightMeasurement3 quant:hasUnit units:kilogram.
  };
josd's avatar
josd committed
288
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
289 290 291 292 293

<#lemma9> a r:Extraction;
  r:gives {
    i:lengthMeasurement3 quant:hasUnit units:meter.
  };
josd's avatar
josd committed
294
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319

<#lemma10> a r:Extraction;
  r:gives {
    {?x_0_1 human:hasBodyMassIndex ?x_1_1.
     ?x_0_1 human:hasWeightStatus ?x_2_1.
     ?x_1_1 time:hasDateTime ?x_3_1.
     ?x_1_1 quant:hasUnit units:kilogramPerMeterSquare.
     ?x_1_1 quant:hasValue ?x_4_1.
     ?x_1_1 event:basedOn ?x_5_1.
     ?x_1_1 event:basedOn ?x_6_1.
     ?x_5_1 quant:hasUnit units:kilogram.
     ?x_6_1 quant:hasUnit units:meter.
     ?x_2_1 a ?x_7_1.
     ?x_2_1 time:hasDateTime ?x_8_1.
     ?x_2_1 event:basedOn ?x_1_1} => {?x_0_1 human:hasBodyMassIndex ?x_1_1.
     ?x_0_1 human:hasWeightStatus ?x_2_1.
     ?x_1_1 time:hasDateTime ?x_3_1.
     ?x_1_1 quant:hasUnit units:kilogramPerMeterSquare.
     ?x_1_1 quant:hasValue ?x_4_1.
     ?x_1_1 event:basedOn ?x_5_1.
     ?x_1_1 event:basedOn ?x_6_1.
     ?x_2_1 a ?x_7_1.
     ?x_2_1 time:hasDateTime ?x_8_1.
     ?x_2_1 event:basedOn ?x_1_1}.
  };
josd's avatar
josd committed
320
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_query.n3>].
josd's avatar
josd committed
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378

<#lemma11> a r:Inference;
  r:gives {
    i:adult4 human:hasBodyMassIndex _:sk_1.
    _:sk_1 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_1 quant:hasValue 24.535123966942148 .
    _:sk_1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_1 event:basedOn i:weightMeasurement4.
    _:sk_1 event:basedOn i:lengthMeasurement4.
  };
  r:evidence (
    <#lemma42>
    <#lemma43>
    <#lemma44>
    <#lemma45>
    <#lemma46>
    <#lemma47>
    <#lemma14>
    <#lemma48>
    <#lemma49>
    <#lemma50>
    <#lemma51>
    <#lemma13>
    <#lemma52>
    <#lemma53>
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime) math:difference 0}]
    [ a r:Fact; r:gives {0 math:notGreaterThan "P10Y"^^xsd:duration}]
    [ a r:Fact; r:gives {0 math:notLessThan "-P7D"^^xsd:duration}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime) e:max "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    <#lemma54>
    [ a r:Fact; r:gives {35 math:notLessThan 15}]
    [ a r:Fact; r:gives {(1.76 2) math:exponentiation 3.0976}]
    [ a r:Fact; r:gives {(76 3.0976) math:quotient 24.535123966942148}]
  );
  r:rule <#lemma40>.

<#lemma12> a r:Inference;
  r:gives {
    i:adult4 human:hasWeightStatus _:sk_5.
    _:sk_5 a humanbody:NormalWeight.
    _:sk_5 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_5 event:basedOn _:sk_1.
  };
  r:evidence (
    <#lemma11>
    <#lemma11>
    <#lemma11>
    [ a r:Fact; r:gives {24.535123966942148 math:notLessThan 18.5}]
    [ a r:Fact; r:gives {24.535123966942148 math:notGreaterThan 24.9}]
  );
  r:rule <#lemma55>.

<#lemma13> a r:Extraction;
  r:gives {
    i:weightMeasurement4 quant:hasUnit units:kilogram.
  };
josd's avatar
josd committed
379
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
380 381 382 383 384

<#lemma14> a r:Extraction;
  r:gives {
    i:lengthMeasurement4 quant:hasUnit units:meter.
  };
josd's avatar
josd committed
385
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443

<#lemma15> a r:Inference;
  r:gives {
    i:adult5 human:hasBodyMassIndex _:sk_2.
    _:sk_2 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_2 quant:hasValue 18.359697064998425 .
    _:sk_2 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_2 event:basedOn i:weightMeasurement5.
    _:sk_2 event:basedOn i:lengthMeasurement5.
  };
  r:evidence (
    <#lemma56>
    <#lemma57>
    <#lemma58>
    <#lemma59>
    <#lemma60>
    <#lemma61>
    <#lemma18>
    <#lemma62>
    <#lemma63>
    <#lemma64>
    <#lemma65>
    <#lemma17>
    <#lemma66>
    <#lemma67>
    [ a r:Fact; r:gives {("2011-02-20T00:00:00+01:00"^^xsd:dateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime) math:difference 0}]
    [ a r:Fact; r:gives {0 math:notGreaterThan "P10Y"^^xsd:duration}]
    [ a r:Fact; r:gives {0 math:notLessThan "-P7D"^^xsd:duration}]
    [ a r:Fact; r:gives {("2011-02-20T00:00:00+01:00"^^xsd:dateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime) e:max "2011-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2011-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2011-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2011-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2011-02-20T00:00:00+01:00"^^xsd:dateTime}]
    <#lemma68>
    [ a r:Fact; r:gives {15 math:notLessThan 15}]
    [ a r:Fact; r:gives {(1.715 2) math:exponentiation 2.941225}]
    [ a r:Fact; r:gives {(54 2.941225) math:quotient 18.359697064998425}]
  );
  r:rule <#lemma40>.

<#lemma16> a r:Inference;
  r:gives {
    i:adult5 human:hasWeightStatus _:sk_4.
    _:sk_4 a humanbody:Underweight.
    _:sk_4 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_4 event:basedOn _:sk_2.
  };
  r:evidence (
    <#lemma15>
    <#lemma15>
    <#lemma15>
    [ a r:Fact; r:gives {18.359697064998425 math:notLessThan 16}]
    [ a r:Fact; r:gives {18.359697064998425 math:notGreaterThan 18.4}]
  );
  r:rule <#lemma69>.

<#lemma17> a r:Extraction;
  r:gives {
    i:weightMeasurement5 quant:hasUnit units:kilogram.
  };
josd's avatar
josd committed
444
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
445 446 447 448 449

<#lemma18> a r:Extraction;
  r:gives {
    i:lengthMeasurement5 quant:hasUnit units:meter.
  };
josd's avatar
josd committed
450
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466

<#lemma19> a r:Inference;
  r:gives {
    i:adult1 human:hasBodyMassIndex _:sk_7.
    _:sk_7 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_7 quant:hasValue 55.4016620498615 .
    _:sk_7 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_7 event:basedOn i:weightMeasurement1.
    _:sk_7 event:basedOn i:lengthMeasurement1.
  };
  r:evidence (
    <#lemma70>
    <#lemma21>
    <#lemma71>
    <#lemma72>
    <#lemma73>
josd's avatar
josd committed
467
    [ a r:Fact; r:gives {((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult1 human:hasLength i:lengthMeasurement1.
josd's avatar
josd committed
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502
     i:lengthMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
     i:lengthMeasurement1 quant:convertedTo _:sk_6.
     _:sk_6 quant:hasUnit units:meter.
     _:sk_6 quant:hasValue 1.9}}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime) math:difference 0}]
    [ a r:Fact; r:gives {0 math:notGreaterThan "P0M"^^xsd:duration}]
    [ a r:Fact; r:gives {0 math:notLessThan "-P0M"^^xsd:duration}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime) e:max "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-20T00:00:00+01:00"^^xsd:dateTime}]
    <#lemma74>
    [ a r:Fact; r:gives {67 math:notLessThan 15}]
    [ a r:Fact; r:gives {("_weightValue/_lengthValue**2" 200 1.9) e:calculate 55.4016620498615}]
  );
  r:rule <#lemma75>.

<#lemma20> a r:Inference;
  r:gives {
    i:adult1 human:hasWeightStatus _:sk_11.
    _:sk_11 a humanbody:SuperObese.
    _:sk_11 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
    _:sk_11 event:basedOn _:sk_7.
  };
  r:evidence (
    <#lemma19>
    <#lemma19>
    <#lemma19>
    [ a r:Fact; r:gives {55.4016620498615 math:notLessThan 45}]
  );
  r:rule <#lemma76>.

<#lemma21> a r:Extraction;
  r:gives {
    i:weightMeasurement1 quant:hasUnit units:kilogram.
  };
josd's avatar
josd committed
503
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
504 505 506 507 508

<#lemma22> a r:Extraction;
  r:gives {
    i:lengthMeasurement1 quant:hasUnit units:meter.
  };
josd's avatar
josd committed
509
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525

<#lemma23> a r:Inference;
  r:gives {
    i:adult2 human:hasBodyMassIndex _:sk_9.
    _:sk_9 quant:hasUnit units:kilogramPerMeterSquare.
    _:sk_9 quant:hasValue 26.17489589530042 .
    _:sk_9 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_9 event:basedOn i:weightMeasurement2.
    _:sk_9 event:basedOn i:lengthMeasurement2.
  };
  r:evidence (
    <#lemma77>
    <#lemma25>
    <#lemma78>
    <#lemma79>
    <#lemma80>
josd's avatar
josd committed
526
    [ a r:Fact; r:gives {((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult2 human:hasLength i:lengthMeasurement2.
josd's avatar
josd committed
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
     i:lengthMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
     i:lengthMeasurement2 quant:convertedTo _:sk_8.
     _:sk_8 quant:hasUnit units:meter.
     _:sk_8 quant:hasValue 2.05}}]
    [ a r:Fact; r:gives {("2010-02-25T00:00:00+01:00"^^xsd:dateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime) math:difference 0}]
    [ a r:Fact; r:gives {0 math:notGreaterThan "P0M"^^xsd:duration}]
    [ a r:Fact; r:gives {0 math:notLessThan "-P0M"^^xsd:duration}]
    [ a r:Fact; r:gives {("2010-02-25T00:00:00+01:00"^^xsd:dateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime) e:max "2010-02-25T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-25T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-25T00:00:00+01:00"^^xsd:dateTime}]
    [ a r:Fact; r:gives {("2010-02-25T00:00:00+01:00" xsd:dateTime) log:dtlit "2010-02-25T00:00:00+01:00"^^xsd:dateTime}]
    <#lemma81>
    [ a r:Fact; r:gives {44 math:notLessThan 15}]
    [ a r:Fact; r:gives {("_weightValue/_lengthValue**2" 110 2.05) e:calculate 26.17489589530042}]
  );
  r:rule <#lemma75>.

<#lemma24> a r:Inference;
  r:gives {
    i:adult2 human:hasWeightStatus _:sk_10.
    _:sk_10 a humanbody:Overweight.
    _:sk_10 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
    _:sk_10 event:basedOn _:sk_9.
  };
  r:evidence (
    <#lemma23>
    <#lemma23>
    <#lemma23>
    [ a r:Fact; r:gives {26.17489589530042 math:notLessThan 25}]
    [ a r:Fact; r:gives {26.17489589530042 math:notGreaterThan 29.9}]
  );
  r:rule <#lemma82>.

<#lemma25> a r:Extraction;
  r:gives {
    i:weightMeasurement2 quant:hasUnit units:kilogram.
  };
josd's avatar
josd committed
563
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
564 565 566 567 568

<#lemma26> a r:Extraction;
  r:gives {
    i:lengthMeasurement2 quant:hasUnit units:meter.
  };
josd's avatar
josd committed
569
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
570 571 572 573 574

<#lemma27> a r:Extraction;
  r:gives {
    i:adult3 physical:hasComplexity i:body1.
  };
josd's avatar
josd committed
575
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
576 577 578 579 580

<#lemma28> a r:Extraction;
  r:gives {
    i:body1 a humanbody:Body.
  };
josd's avatar
josd committed
581
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
582 583 584 585 586

<#lemma29> a r:Extraction;
  r:gives {
    i:body1 humanbody:hasLength i:length1.
  };
josd's avatar
josd committed
587
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
588 589 590 591 592

<#lemma30> a r:Extraction;
  r:gives {
    i:body1 humanbody:hasWeight i:weight1.
  };
josd's avatar
josd committed
593
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
594 595 596 597 598

<#lemma31> a r:Extraction;
  r:gives {
    i:length1 a humanbody:Length.
  };
josd's avatar
josd committed
599
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
600 601 602 603 604

<#lemma32> a r:Extraction;
  r:gives {
    i:length1 quant:hasMeasurement i:lengthMeasurement3.
  };
josd's avatar
josd committed
605
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
606 607 608 609 610

<#lemma33> a r:Extraction;
  r:gives {
    i:lengthMeasurement3 quant:hasValue 1.715 .
  };
josd's avatar
josd committed
611
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
612 613 614 615 616

<#lemma34> a r:Extraction;
  r:gives {
    i:lengthMeasurement3 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
617
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
618 619 620 621 622

<#lemma35> a r:Extraction;
  r:gives {
    i:weight1 a humanbody:Weight.
  };
josd's avatar
josd committed
623
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
624 625 626 627 628

<#lemma36> a r:Extraction;
  r:gives {
    i:weight1 quant:hasMeasurement i:weightMeasurement3.
  };
josd's avatar
josd committed
629
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
630 631 632 633 634

<#lemma37> a r:Extraction;
  r:gives {
    i:weightMeasurement3 quant:hasValue 45 .
  };
josd's avatar
josd committed
635
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
636 637 638 639 640

<#lemma38> a r:Extraction;
  r:gives {
    i:weightMeasurement3 time:hasDateTime "2010-01-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
641
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689

<#lemma39> a r:Inference;
  r:gives {
    (i:adult3 "2010-01-20T00:00:00+01:00"^^xsd:dateTime) time:calculatingAge 23 .
  };
  r:evidence (
    <#lemma83>
    [ a r:Fact; r:gives {("2010-01-20T00:00:00+01:00"^^xsd:dateTime "1987-01-01T00:00:00+01:00"^^xsd:dateTime) math:difference 727488000}]
    [ a r:Fact; r:gives {727488000 math:greaterThan 0}]
    [ a r:Fact; r:gives {(727488000 "P1M"^^xsd:duration) math:integerQuotient 276}]
    [ a r:Fact; r:gives {("P23Y0M" xsd:yearMonthDuration) log:dtlit 276}]
    [ a r:Fact; r:gives {("P23Y0M" xsd:yearMonthDuration) log:dtlit "P23Y0M"^^xsd:yearMonthDuration}]
    [ a r:Fact; r:gives {("P23Y0M"^^xsd:yearMonthDuration) func:years-from-duration 23}]
  );
  r:rule <#lemma84>.

<#lemma40> a r:Extraction;
  r:gives {
    {?x_0_2 physical:hasComplexity ?x_1_2.
     ?x_1_2 a humanbody:Body.
     ?x_1_2 humanbody:hasLength ?x_2_2.
     ?x_1_2 humanbody:hasWeight ?x_3_2.
     ?x_2_2 a humanbody:Length.
     ?x_2_2 quant:hasMeasurement ?x_4_2.
     ?x_4_2 quant:hasUnit units:meter.
     ?x_4_2 quant:hasValue ?x_5_2.
     ?x_4_2 time:hasDateTime ?x_6_2.
     ?x_3_2 a humanbody:Weight.
     ?x_3_2 quant:hasMeasurement ?x_7_2.
     ?x_7_2 quant:hasUnit units:kilogram.
     ?x_7_2 quant:hasValue ?x_8_2.
     ?x_7_2 time:hasDateTime ?x_9_2.
     (?x_9_2 ?x_6_2) math:difference ?x_10_2.
     ?x_10_2 math:notGreaterThan "P10Y"^^xsd:duration.
     ?x_10_2 math:notLessThan "-P7D"^^xsd:duration.
     (?x_9_2 ?x_6_2) e:max ?x_11_2.
     (?x_12_2 xsd:dateTime) log:dtlit ?x_11_2.
     (?x_12_2 xsd:dateTime) log:dtlit ?x_13_2.
     (?x_0_2 ?x_13_2) time:calculatingAge ?x_14_2.
     ?x_14_2 math:notLessThan 15 .
     (?x_5_2 2) math:exponentiation ?x_15_2.
     (?x_8_2 ?x_15_2) math:quotient ?x_16_2} => {?x_0_2 human:hasBodyMassIndex _:x_17_2.
     _:x_17_2 quant:hasUnit units:kilogramPerMeterSquare.
     _:x_17_2 quant:hasValue ?x_16_2.
     _:x_17_2 time:hasDateTime ?x_13_2.
     _:x_17_2 event:basedOn ?x_7_2.
     _:x_17_2 event:basedOn ?x_4_2}.
  };
josd's avatar
josd committed
690
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3>].
josd's avatar
josd committed
691 692 693 694 695 696 697 698 699 700 701

<#lemma41> a r:Extraction;
  r:gives {
    {?x_0_3 human:hasBodyMassIndex ?x_1_3.
     ?x_1_3 quant:hasValue ?x_2_3.
     ?x_1_3 time:hasDateTime ?x_3_3.
     ?x_2_3 math:lessThan 16} => {?x_0_3 human:hasWeightStatus _:x_4_3.
     _:x_4_3 a humanbody:SeverelyUnderweight.
     _:x_4_3 time:hasDateTime ?x_3_3.
     _:x_4_3 event:basedOn ?x_1_3}.
  };
josd's avatar
josd committed
702
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3>].
josd's avatar
josd committed
703 704 705 706 707

<#lemma42> a r:Extraction;
  r:gives {
    i:adult4 physical:hasComplexity i:body2.
  };
josd's avatar
josd committed
708
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
709 710 711 712 713

<#lemma43> a r:Extraction;
  r:gives {
    i:body2 a humanbody:Body.
  };
josd's avatar
josd committed
714
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
715 716 717 718 719

<#lemma44> a r:Extraction;
  r:gives {
    i:body2 humanbody:hasLength i:length2.
  };
josd's avatar
josd committed
720
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
721 722 723 724 725

<#lemma45> a r:Extraction;
  r:gives {
    i:body2 humanbody:hasWeight i:weight2.
  };
josd's avatar
josd committed
726
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
727 728 729 730 731

<#lemma46> a r:Extraction;
  r:gives {
    i:length2 a humanbody:Length.
  };
josd's avatar
josd committed
732
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
733 734 735 736 737

<#lemma47> a r:Extraction;
  r:gives {
    i:length2 quant:hasMeasurement i:lengthMeasurement4.
  };
josd's avatar
josd committed
738
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
739 740 741 742 743

<#lemma48> a r:Extraction;
  r:gives {
    i:lengthMeasurement4 quant:hasValue 1.76 .
  };
josd's avatar
josd committed
744
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
745 746 747 748 749

<#lemma49> a r:Extraction;
  r:gives {
    i:lengthMeasurement4 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
750
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
751 752 753 754 755

<#lemma50> a r:Extraction;
  r:gives {
    i:weight2 a humanbody:Weight.
  };
josd's avatar
josd committed
756
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
757 758 759 760 761

<#lemma51> a r:Extraction;
  r:gives {
    i:weight2 quant:hasMeasurement i:weightMeasurement4.
  };
josd's avatar
josd committed
762
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
763 764 765 766 767

<#lemma52> a r:Extraction;
  r:gives {
    i:weightMeasurement4 quant:hasValue 76 .
  };
josd's avatar
josd committed
768
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
769 770 771 772 773

<#lemma53> a r:Extraction;
  r:gives {
    i:weightMeasurement4 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
774
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801

<#lemma54> a r:Inference;
  r:gives {
    (i:adult4 "2010-02-20T00:00:00+01:00"^^xsd:dateTime) time:calculatingAge 35 .
  };
  r:evidence (
    <#lemma85>
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "1975-01-01T00:00:00+01:00"^^xsd:dateTime) math:difference 1108857600}]
    [ a r:Fact; r:gives {1108857600 math:greaterThan 0}]
    [ a r:Fact; r:gives {(1108857600 "P1M"^^xsd:duration) math:integerQuotient 421}]
    [ a r:Fact; r:gives {("P35Y1M" xsd:yearMonthDuration) log:dtlit 421}]
    [ a r:Fact; r:gives {("P35Y1M" xsd:yearMonthDuration) log:dtlit "P35Y1M"^^xsd:yearMonthDuration}]
    [ a r:Fact; r:gives {("P35Y1M"^^xsd:yearMonthDuration) func:years-from-duration 35}]
  );
  r:rule <#lemma84>.

<#lemma55> a r:Extraction;
  r:gives {
    {?x_0_4 human:hasBodyMassIndex ?x_1_4.
     ?x_1_4 quant:hasValue ?x_2_4.
     ?x_1_4 time:hasDateTime ?x_3_4.
     ?x_2_4 math:notLessThan 18.5 .
     ?x_2_4 math:notGreaterThan 24.9} => {?x_0_4 human:hasWeightStatus _:x_4_4.
     _:x_4_4 a humanbody:NormalWeight.
     _:x_4_4 time:hasDateTime ?x_3_4.
     _:x_4_4 event:basedOn ?x_1_4}.
  };
josd's avatar
josd committed
802
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3>].
josd's avatar
josd committed
803 804 805 806 807

<#lemma56> a r:Extraction;
  r:gives {
    i:adult5 physical:hasComplexity i:body3.
  };
josd's avatar
josd committed
808
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
809 810 811 812 813

<#lemma57> a r:Extraction;
  r:gives {
    i:body3 a humanbody:Body.
  };
josd's avatar
josd committed
814
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
815 816 817 818 819

<#lemma58> a r:Extraction;
  r:gives {
    i:body3 humanbody:hasLength i:length3.
  };
josd's avatar
josd committed
820
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
821 822 823 824 825

<#lemma59> a r:Extraction;
  r:gives {
    i:body3 humanbody:hasWeight i:weight3.
  };
josd's avatar
josd committed
826
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
827 828 829 830 831

<#lemma60> a r:Extraction;
  r:gives {
    i:length3 a humanbody:Length.
  };
josd's avatar
josd committed
832
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
833 834 835 836 837

<#lemma61> a r:Extraction;
  r:gives {
    i:length3 quant:hasMeasurement i:lengthMeasurement5.
  };
josd's avatar
josd committed
838
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
839 840 841 842 843

<#lemma62> a r:Extraction;
  r:gives {
    i:lengthMeasurement5 quant:hasValue 1.715 .
  };
josd's avatar
josd committed
844
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
845 846 847 848 849

<#lemma63> a r:Extraction;
  r:gives {
    i:lengthMeasurement5 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
850
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
851 852 853 854 855

<#lemma64> a r:Extraction;
  r:gives {
    i:weight3 a humanbody:Weight.
  };
josd's avatar
josd committed
856
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
857 858 859 860 861

<#lemma65> a r:Extraction;
  r:gives {
    i:weight3 quant:hasMeasurement i:weightMeasurement5.
  };
josd's avatar
josd committed
862
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
863 864 865 866 867

<#lemma66> a r:Extraction;
  r:gives {
    i:weightMeasurement5 quant:hasValue 54 .
  };
josd's avatar
josd committed
868
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
869 870 871 872 873

<#lemma67> a r:Extraction;
  r:gives {
    i:weightMeasurement5 time:hasDateTime "2011-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
874
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901

<#lemma68> a r:Inference;
  r:gives {
    (i:adult5 "2011-02-20T00:00:00+01:00"^^xsd:dateTime) time:calculatingAge 15 .
  };
  r:evidence (
    <#lemma86>
    [ a r:Fact; r:gives {("2011-02-20T00:00:00+01:00"^^xsd:dateTime "1995-08-07T00:00:00+01:00"^^xsd:dateTime) math:difference 490406400}]
    [ a r:Fact; r:gives {490406400 math:greaterThan 0}]
    [ a r:Fact; r:gives {(490406400 "P1M"^^xsd:duration) math:integerQuotient 186}]
    [ a r:Fact; r:gives {("P15Y6M" xsd:yearMonthDuration) log:dtlit 186}]
    [ a r:Fact; r:gives {("P15Y6M" xsd:yearMonthDuration) log:dtlit "P15Y6M"^^xsd:yearMonthDuration}]
    [ a r:Fact; r:gives {("P15Y6M"^^xsd:yearMonthDuration) func:years-from-duration 15}]
  );
  r:rule <#lemma84>.

<#lemma69> a r:Extraction;
  r:gives {
    {?x_0_5 human:hasBodyMassIndex ?x_1_5.
     ?x_1_5 quant:hasValue ?x_2_5.
     ?x_1_5 time:hasDateTime ?x_3_5.
     ?x_2_5 math:notLessThan 16 .
     ?x_2_5 math:notGreaterThan 18.4} => {?x_0_5 human:hasWeightStatus _:x_4_5.
     _:x_4_5 a humanbody:Underweight.
     _:x_4_5 time:hasDateTime ?x_3_5.
     _:x_4_5 event:basedOn ?x_1_5}.
  };
josd's avatar
josd committed
902
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3>].
josd's avatar
josd committed
903 904 905 906 907

<#lemma70> a r:Extraction;
  r:gives {
    i:adult1 human:weighs i:weightMeasurement1.
  };
josd's avatar
josd committed
908
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
909 910 911 912 913

<#lemma71> a r:Extraction;
  r:gives {
    i:weightMeasurement1 quant:hasValue 200 .
  };
josd's avatar
josd committed
914
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
915 916 917 918 919

<#lemma72> a r:Extraction;
  r:gives {
    i:weightMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
920
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
921 922 923

<#lemma73> a r:Inference;
  r:gives {
josd's avatar
josd committed
924
    ((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult1 human:hasLength i:lengthMeasurement1.
josd's avatar
josd committed
925 926 927 928 929 930 931 932 933 934 935 936 937
     i:lengthMeasurement1 quant:hasUnit units:meter.
     i:lengthMeasurement1 quant:hasValue 1.9 .
     i:lengthMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime}.
  };
  r:evidence (
    <#lemma87>
    <#lemma22>
    <#lemma88>
    <#lemma89>
  );
  r:rule [ a r:Fact; r:gives {{i:adult1 human:hasLength i:lengthMeasurement1.
    i:lengthMeasurement1 quant:hasUnit units:meter.
    i:lengthMeasurement1 quant:hasValue 1.9 .
josd's avatar
josd committed
938
    i:lengthMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime} => {((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult1 human:hasLength i:lengthMeasurement1.
josd's avatar
josd committed
939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987
     i:lengthMeasurement1 quant:hasUnit units:meter.
     i:lengthMeasurement1 quant:hasValue 1.9 .
     i:lengthMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime}}}].

<#lemma74> a r:Inference;
  r:gives {
    (i:adult1 "2010-02-20T00:00:00+01:00"^^xsd:dateTime) time:calculatingAge 67 .
  };
  r:evidence (
    <#lemma90>
    [ a r:Fact; r:gives {("2010-02-20T00:00:00+01:00"^^xsd:dateTime "1943-01-01T00:00:00+01:00"^^xsd:dateTime) math:difference 2118700800}]
    [ a r:Fact; r:gives {2118700800 math:greaterThan 0}]
    [ a r:Fact; r:gives {(2118700800 "P1M"^^xsd:duration) math:integerQuotient 805}]
    [ a r:Fact; r:gives {("P67Y1M" xsd:yearMonthDuration) log:dtlit 805}]
    [ a r:Fact; r:gives {("P67Y1M" xsd:yearMonthDuration) log:dtlit "P67Y1M"^^xsd:yearMonthDuration}]
    [ a r:Fact; r:gives {("P67Y1M"^^xsd:yearMonthDuration) func:years-from-duration 67}]
  );
  r:rule <#lemma84>.

<#lemma75> a r:Extraction;
  r:gives {
    {?x_0_7 human:weighs ?x_1_7.
     ?x_1_7 quant:hasUnit units:kilogram.
     ?x_1_7 quant:hasValue ?x_2_7.
     ?x_1_7 time:hasDateTime ?x_3_7.
     ?x_4_7 e:optional {?x_0_7 human:hasLength ?x_5_7.
      ?x_5_7 quant:hasUnit units:meter.
      ?x_5_7 quant:hasValue ?x_6_7.
      ?x_5_7 time:hasDateTime ?x_7_7}.
     ?x_4_7 e:optional {?x_0_7 human:hasLength ?x_5_7.
      ?x_5_7 time:hasDateTime ?x_7_7.
      ?x_5_7 quant:convertedTo ?x_8_7.
      ?x_8_7 quant:hasUnit units:meter.
      ?x_8_7 quant:hasValue ?x_6_7}.
     (?x_3_7 ?x_7_7) math:difference ?x_9_7.
     ?x_9_7 math:notGreaterThan "P0M"^^xsd:duration.
     ?x_9_7 math:notLessThan "-P0M"^^xsd:duration.
     (?x_3_7 ?x_7_7) e:max ?x_10_7.
     (?x_11_7 xsd:dateTime) log:dtlit ?x_10_7.
     (?x_11_7 xsd:dateTime) log:dtlit ?x_12_7.
     (?x_0_7 ?x_12_7) time:calculatingAge ?x_13_7.
     ?x_13_7 math:notLessThan 15 .
     ("_weightValue/_lengthValue**2" ?x_2_7 ?x_6_7) e:calculate ?x_14_7} => {?x_0_7 human:hasBodyMassIndex _:x_15_7.
     _:x_15_7 quant:hasUnit units:kilogramPerMeterSquare.
     _:x_15_7 quant:hasValue ?x_14_7.
     _:x_15_7 time:hasDateTime ?x_12_7.
     _:x_15_7 event:basedOn ?x_1_7.
     _:x_15_7 event:basedOn ?x_5_7}.
  };
josd's avatar
josd committed
988
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3>].
josd's avatar
josd committed
989 990 991 992 993 994 995 996 997 998 999

<#lemma76> a r:Extraction;
  r:gives {
    {?x_0_8 human:hasBodyMassIndex ?x_1_8.
     ?x_1_8 quant:hasValue ?x_2_8.
     ?x_1_8 time:hasDateTime ?x_3_8.
     ?x_2_8 math:notLessThan 45} => {?x_0_8 human:hasWeightStatus _:x_4_8.
     _:x_4_8 a humanbody:SuperObese.
     _:x_4_8 time:hasDateTime ?x_3_8.
     _:x_4_8 event:basedOn ?x_1_8}.
  };
josd's avatar
josd committed
1000
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3>].
josd's avatar
josd committed
1001 1002 1003 1004 1005

<#lemma77> a r:Extraction;
  r:gives {
    i:adult2 human:weighs i:weightMeasurement2.
  };
josd's avatar
josd committed
1006
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1007 1008 1009 1010 1011

<#lemma78> a r:Extraction;
  r:gives {
    i:weightMeasurement2 quant:hasValue 110 .
  };
josd's avatar
josd committed
1012
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1013 1014 1015 1016 1017

<#lemma79> a r:Extraction;
  r:gives {
    i:weightMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1018
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1019 1020 1021

<#lemma80> a r:Inference;
  r:gives {
josd's avatar
josd committed
1022
    ((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult2 human:hasLength i:lengthMeasurement2.
josd's avatar
josd committed
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035
     i:lengthMeasurement2 quant:hasUnit units:meter.
     i:lengthMeasurement2 quant:hasValue 2.05 .
     i:lengthMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime}.
  };
  r:evidence (
    <#lemma91>
    <#lemma26>
    <#lemma92>
    <#lemma93>
  );
  r:rule [ a r:Fact; r:gives {{i:adult2 human:hasLength i:lengthMeasurement2.
    i:lengthMeasurement2 quant:hasUnit units:meter.
    i:lengthMeasurement2 quant:hasValue 2.05 .
josd's avatar
josd committed
1036
    i:lengthMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime} => {((<http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3> <http://josd.github.io/eye/reasoning/bmi/bmi_rules.n3> <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3> <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>) 1) e:optional {i:adult2 human:hasLength i:lengthMeasurement2.
josd's avatar
josd committed
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
     i:lengthMeasurement2 quant:hasUnit units:meter.
     i:lengthMeasurement2 quant:hasValue 2.05 .
     i:lengthMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime}}}].

<#lemma81> a r:Inference;
  r:gives {
    (i:adult2 "2010-02-25T00:00:00+01:00"^^xsd:dateTime) time:calculatingAge 44 .
  };
  r:evidence (
    <#lemma94>
    [ a r:Fact; r:gives {("2010-02-25T00:00:00+01:00"^^xsd:dateTime "1966-01-01T00:00:00+01:00"^^xsd:dateTime) math:difference 1393286400}]
    [ a r:Fact; r:gives {1393286400 math:greaterThan 0}]
    [ a r:Fact; r:gives {(1393286400 "P1M"^^xsd:duration) math:integerQuotient 529}]
    [ a r:Fact; r:gives {("P44Y1M" xsd:yearMonthDuration) log:dtlit 529}]
    [ a r:Fact; r:gives {("P44Y1M" xsd:yearMonthDuration) log:dtlit "P44Y1M"^^xsd:yearMonthDuration}]
    [ a r:Fact; r:gives {("P44Y1M"^^xsd:yearMonthDuration) func:years-from-duration 44}]
  );
  r:rule <#lemma84>.

<#lemma82> a r:Extraction;
  r:gives {
    {?x_0_10 human:hasBodyMassIndex ?x_1_10.
     ?x_1_10 quant:hasValue ?x_2_10.
     ?x_1_10 time:hasDateTime ?x_3_10.
     ?x_2_10 math:notLessThan 25 .
     ?x_2_10 math:notGreaterThan 29.9} => {?x_0_10 human:hasWeightStatus _:x_4_10.
     _:x_4_10 a humanbody:Overweight.
     _:x_4_10 time:hasDateTime ?x_3_10.
     _:x_4_10 event:basedOn ?x_1_10}.
  };
josd's avatar
josd committed
1067
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/weightStatus_rules.n3>].
josd's avatar
josd committed
1068 1069 1070 1071 1072

<#lemma83> a r:Extraction;
  r:gives {
    i:adult3 organism:hasBirthDateTime "1987-01-01T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1073
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084

<#lemma84> a r:Extraction;
  r:gives {
    {(?x_0_11 ?x_2_11) time:calculatingAge ?x_7_11} <= {?x_0_11 organism:hasBirthDateTime ?x_1_11.
     (?x_2_11 ?x_1_11) math:difference ?x_3_11.
     ?x_3_11 math:greaterThan 0 .
     (?x_3_11 "P1M"^^xsd:duration) math:integerQuotient ?x_4_11.
     (?x_5_11 xsd:yearMonthDuration) log:dtlit ?x_4_11.
     (?x_5_11 xsd:yearMonthDuration) log:dtlit ?x_6_11.
     (?x_6_11) func:years-from-duration ?x_7_11}.
  };
josd's avatar
josd committed
1085
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/age_rules_backward.n3>].
josd's avatar
josd committed
1086 1087 1088 1089 1090

<#lemma85> a r:Extraction;
  r:gives {
    i:adult4 organism:hasBirthDateTime "1975-01-01T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1091
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1092 1093 1094 1095 1096

<#lemma86> a r:Extraction;
  r:gives {
    i:adult5 organism:hasBirthDateTime "1995-08-07T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1097
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1098 1099 1100 1101 1102

<#lemma87> a r:Extraction;
  r:gives {
    i:adult1 human:hasLength i:lengthMeasurement1.
  };
josd's avatar
josd committed
1103
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1104 1105 1106 1107 1108

<#lemma88> a r:Extraction;
  r:gives {
    i:lengthMeasurement1 quant:hasValue 1.9 .
  };
josd's avatar
josd committed
1109
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1110 1111 1112 1113 1114

<#lemma89> a r:Extraction;
  r:gives {
    i:lengthMeasurement1 time:hasDateTime "2010-02-20T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1115
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1116 1117 1118 1119 1120

<#lemma90> a r:Extraction;
  r:gives {
    i:adult1 organism:hasBirthDateTime "1943-01-01T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1121
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1122 1123 1124 1125 1126

<#lemma91> a r:Extraction;
  r:gives {
    i:adult2 human:hasLength i:lengthMeasurement2.
  };
josd's avatar
josd committed
1127
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1128 1129 1130 1131 1132

<#lemma92> a r:Extraction;
  r:gives {
    i:lengthMeasurement2 quant:hasValue 2.05 .
  };
josd's avatar
josd committed
1133
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1134 1135 1136 1137 1138

<#lemma93> a r:Extraction;
  r:gives {
    i:lengthMeasurement2 time:hasDateTime "2010-02-25T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1139
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1140 1141 1142 1143 1144

<#lemma94> a r:Extraction;
  r:gives {
    i:adult2 organism:hasBirthDateTime "1966-01-01T00:00:00+01:00"^^xsd:dateTime.
  };
josd's avatar
josd committed
1145
  r:because [ a r:Parsing; r:source <http://josd.github.io/eye/reasoning/bmi/bmi_instances.n3>].
josd's avatar
josd committed
1146

josd's avatar
josd committed
1147
#2019-01-19T23:06:14.307Z in=97 out=50 ent=100 step=48 brake=4 inf=391052 sec=0.126 inf/sec=3103587
josd's avatar
josd committed
1148 1149
#ENDS