I want to add a custom rule to the OWL-2-RL ruleset (builtin_owl2-rl.pie) that establishes a isOppositeDirectionOf object property between vectors that are in opposite direction to each other. I would think it should look something like this:
Id: oppositeDirectionVector_rule
v1 <rdf:type> <cad:Vector>
v1 <cad:x> v1x // example data property for v1x: "1.0"^^xsd:double
v1 <cad:y> v1y
v1 <cad:z> v1z
v2 <rdf:type> <cad:Vector>
v2 <cad:x> -v1x
v2 <cad:y> -v1y
v2 <cad:z> -v1z
-------------------------------
v1 <cad:isOppositeDirectionOf> v2
Without the minuses, this rule does work to create isSameVectorAs object properties.
Is there a way I can use basic arithmetic functions on data properties in rules?
.piefiles. I have only seen corollaries (what's below the ---- line of a rule) being used to establish new links between existing things.Constraint, but what is[Cut]and[Context]mean next to an Axiom (what's above the ---- line of a rule)? I can't seem to google that...BINDisn't possible, I don't think its currently possible. Or at least, it's not mentioned in the docs, you could try whether it works nevertheless.