--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
What am I doing wrong? please explain, I do not understand :(
?r2 a :Rectangle .?r2 :width ?w2 .?r2 :height ?h2 .filter(?w1 != ?w2) .# ?newRectangle a rs:Rectangle . // ???bind(?w1 * ?w2 as ?w3) .bind(?h1 * ?h2 as ?h3) .}THEN {?newRectangle rs:width ?w3
}""" .
You're close. You've just got both rules creating new individuals. Drop calculating the width on the first one and the uuid on the second one. See [1] for an example
---
:r | http://test/reasoner#width | 5 |
:s | http://test/reasoner#width | 10 |
http://test/reasoner#newWidth | 50 | |
http://test/reasoner#newHeight | 80 |
}THEN {?newRectangle a rs:newRectangle .?newRectangle rs:newWidth ?w3 ;rs:newHeight ?h3 .}""" .}Query select * where {?s ?p ?o} return:
:r http://test/reasoner#width 5 :s http://test/reasoner#width 10 http://test/reasoner#newWidth 50 http://test/reasoner#newHeight 80 This is a bug?
--
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---