Commit abb0097b authored by Nicolas Seydoux's avatar Nicolas Seydoux
Browse files

Fixed rule anti double filter

parent f3b3fc4e
......@@ -249,7 +249,7 @@ ex:IIoTR7CoreRule
edr:deducedAt ?now;
edr:deducedBy $this;
edr:deducedWith ex:IIoTR7CoreRule;
edr:deducedFrom ?conveyorState_obs, ?machineState_obs, ?conveyorSpeed_obs, ?machineSpeed_obs.
edr:deducedFrom ?machineState_obs, ?productQuality_obs.
} WHERE {
?machineState rdf:type/rdfs:subClassOf* <https://w3id.org/laas-iot/adream#MachineState>;
......@@ -269,13 +269,13 @@ ex:IIoTR7CoreRule
$this a lmu:HostNode.
FILTER NOT EXISTS {
?temperature_obs edr:usedForDeductionBy ex:IIoTR7CoreRule.
?state_obs edr:usedForDeductionBy ex:IIoTR7CoreRule.
?productQuality_obs edr:usedForDeductionBy ex:IIoTR7CoreRule.
?machineState_obs edr:usedForDeductionBy ex:IIoTR7CoreRule.
}
FILTER NOT EXISTS {
?otherDeduction edr:deducedWith ex:IIoTR7CoreRule;
edr:deducedFrom ?conveyorState_obs, ?machineState_obs, ?conveyorSpeed_obs, ?machineSpeed_obs.
edr:deducedFrom ?machineState_obs, ?productQuality_obs.
}
BIND(URI(CONCAT('http://example.com/ns#comfortableSpotdeduction', STRUUID())) AS ?deduction )
BIND(NOW() AS ?now)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment