我开发了一个本体来识别患者,并将其映射到我的样本SQL数据库(包括100名患者)。这意味着我们在本体中没有任何个体。那么,如何在规则选项卡中为以下sparql查询运行类似的swrl规则:
SELECT DISTINCT ?x WHERE {
{ ?x :PatientCode ?c .
FILTER (?c = "1"^^xsd:double). }
OPTIONAL {
?x :hasRiskFactor ?p.
?p :MeasureType ?u.
FILTER( ?u = "ENDOC"^^xsd:String ||
?u = "DIETITIAN"^^xsd:String ||
?u = "ATTPOD"^^xsd:String ||
?u = "ATTOPH"^^xsd:String)
}
FILTER (!bound(?u))
}