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”). } |