Catrina; The way it works is that the order of execution is determined
by the sub-properties of spin:rule and the ordering specified by
spin:nextRuleProperty.  With each of the rule properties, the rule are
executed in the order they appear in Composer's UI.  Adding a comment
to the beginning of the rule is one way to ensure the ordering.

As an example, given:

spin:rs1 subPropertyOf spin:rule .
spin:rs2 subPropertyOf spin:rule .
spin:rs1 spin:nextRuleProperty spin:rs2 .
 spin:rs2 spin:nextRuleProperty spin:rule
<x> spin:rs1 "Step1..." .  #rule 1
<x> spin:rs1 "Step 2..." . #rule 2
<x> spin:rs2 "Step 1..." .  #rule 3
<x> spin:rs2 "Step 2..." .  #rule 4
<x> spin:rule "Step 1..." .  #rule 5

...where I the comments "rule 1", etc are my notation that is not read
by the SPIN engine then the rules will be executed in the order of
that notation, i.e. rule 1, rule 2, ...rule 5


-- Scott

On Apr 16, 1:58 pm, Catrina <[email protected]>
wrote:
> I noticed the following snippet in the SPIN Modeling vocabulary:
> 2.2.3 Controlling the Execution Order of Rules
> The rdfs:comment of a rule should be used as the final level of
> ordering. This allows developers to insert comments such as "# Step
> 1: ...", "# Step 2: ..." etc as first lines of their rules. User
> interfaces can use the same ordering and (like TopBraid) may do so by
> default.
>
> If I understand this correctly, are the comments beginning with 'Step
> 1: ...' and 'Step 2: ...' adding a layer of control for the execution
> order of the rules?  Could the same comments be used to further
> control order on rules that are sub properties of spin:rule?
>
> Thanks,
> Catrina

-- 
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 Ensemble, SPARQLMotion 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

Reply via email to