|
Hello Russel; There are a couple of things to understand about SPIN
rules. The first is that it is model-driven. This means that you
define a rule on the class and apply it to all members of the class
(and subclasses). Hence if you have no instances, there will be no
triples constructed by the rule. Second SPIN Rules executes as a forward chaining rule engine by executing until there are no new triples to create. Therefore a caveat is that if you create an object from a system-generated source, such as bnodes or generateUUID(), then you have an infinite loop - each execution creates a new triple. Hence the rules with "BIND (spif:generateUUID() AS ?x) ." need to be set to execute only once. The best way to do this is to make a subproperty of spin:rule, let's call it spin:ruleWithUUID. For that property definition, set the property spin:rulePropertyMaxIterationCount to one, then define the rules using spif:generateUUID() with that property. For each instance of the class the spin:ruleWithUUID definition is defined on, the rule will be executed once only. Given the above, which you can extend further to order the rule sets (defined by spin:rule and its subproperties) with spin:nextRuleProperty, etc. I think most of the issues you address will be covered. If you have further questions, let us know. -- Scott On 8/17/2014, 10:16 AM, Russell Robbins
wrote:
-- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. |
- [topbraid-users] how to use CONSTRUCT/WHERE in SPARQL SPIN... Russell Robbins
- Re: [topbraid-users] how to use CONSTRUCT/WHERE in SP... Scott Henninger
- Re: [topbraid-users] how to use CONSTRUCT/WHERE i... Russell Robbins
- Re: [topbraid-users] how to use CONSTRUCT/WHE... Scott Henninger
- Re: [topbraid-users] how to use CONSTRUCT... Russell Robbins
