Skip to main content
. 2014 Mar 7;14(3):4560–4584. doi: 10.3390/s140304560

Table 5.

A simple illustration for the inference module.

SPARQL query SELECT ?user ?Goal
WHERE { ?User hasBodyFat ?I. }
SPIN rule 1 CONSTRUCT {?user hasHighBodyFat ?I.}
WHERE{ ?this hasBodyFat ?I.
    FILTER (?I > 24). }
SPIN rule 2 CONSTRUCT { ?I value_of_MedicalSign ?M. }
WHERE { ?user hasHighBodyFat ?I. }
SPIN rule 3 CONSTRUCT { ?user hasGoal ?G. }
WHERE { ?G hasMedicalSign ?M.
    ?I value_of_MedicalSign ?M.
    ?user hasHighBodyFat ?I. }
SPIN rule 4 CONSTRUCT { ?user hasPreferredExercise ?E. }
WHERE { ?user hasGoal ?G.
    ?G rdfs:label “reduce-body-fat”.
    ?E hasTypeAerobics “Aerobic”.
    FILTER (?user hasAbilitySwimming “false”.
        ?E hasTypeWatersports “false”). }