BIND support #696
-
|
does Nemo support BIND to create new instances? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
|
I am not sure what “instances” refer to, so please let me know if you meant something else. There is no Alternatively, you can write the value inline: If Again, this is equivalent to inlining the value: |
Beta Was this translation helpful? Give feedback.
-
|
Let me provide a simple example to illustrate our case: we want to implement the following rule: if 2 drive paths share the same lane boundaries then create a lane instance and associate these 2 lane boundaries to this new lane So given: I want to infer knowing that :lane1 doesn't exist in my knowledge base |
Beta Was this translation helpful? Give feedback.
-
|
You could use rules like the following (I'm assuming a prefix for If the name |
Beta Was this translation helpful? Give feedback.
-
|
I tried to test these rules in Nemo playground with the following RDF data added as input from local file : and the following rules But it didn't work, I get 0 facts derived |
Beta Was this translation helpful? Give feedback.
-
|
It doesn't matter if the lane instance names are different for different runs. The most important is that we materialise new lane instances and their new relationships |
Beta Was this translation helpful? Give feedback.
This is because both
sameBoundaries(lbm:dp1, lbm:dp2)andsameBoundaries(lbm:dp1, lbm:dp2)are matches for the rule that derives new lanes. See the Playground I linked above for one of the possible ways to avoid this (you could also move the ordering check to thelanerule, e.g.: