PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX fos: <http://eulersharp.sourceforge.net/2003/03swap/foster#>
PREFIX event: <http://eulersharp.sourceforge.net/2003/03swap/event#>
PREFIX time: <http://eulersharp.sourceforge.net/2003/03swap/time#>
PREFIX quant: <http://eulersharp.sourceforge.net/2003/03swap/quantities#>
PREFIX units: <http://eulersharp.sourceforge.net/2003/03swap/units#>
PREFIX humanbody: <http://eulersharp.sourceforge.net/2003/03swap/humanBody#>
PREFIX human: <http://eulersharp.sourceforge.net/2003/03swap/human#>


{   ?adult # a human:BiologicalAdult;
        human:hasBodyMassIndex ?bodyMassIndexMeasurement;
        human:hasWeightStatus ?weightStatus.
    ?bodyMassIndexMeasurement
        time:hasDateTime ?bodyMassIndexDateTime;
        quant:hasUnit units:kilogramPerMeterSquare;
        quant:hasValue ?bodyMassIndexValue;
        event:basedOn ?weightMeasurement, ?lengthMeasurement.
    ?weightMeasurement
        quant:hasUnit units:kilogram.
    ?lengthMeasurement
        quant:hasUnit units:meter.
    ?weightStatus
        a ?WeightStatus;
        time:hasDateTime ?dateTime;
        event:basedOn ?bodyMassIndexMeasurement}
=>
{   ?adult
        human:hasBodyMassIndex ?bodyMassIndexMeasurement;
        human:hasWeightStatus ?weightStatus.
    ?bodyMassIndexMeasurement
        time:hasDateTime ?bodyMassIndexDateTime;
        quant:hasUnit units:kilogramPerMeterSquare;
        quant:hasValue ?bodyMassIndexValue;
        event:basedOn ?weightMeasurement, ?lengthMeasurement.
    ?weightStatus
        a ?WeightStatus;
        time:hasDateTime ?dateTime;
        event:basedOn ?bodyMassIndexMeasurement}.
