Arthur; Is there a specific event you want to trigger a constructor
on? If it is when a triple is created by a ApplyConstruct that has a
rdf:type as the property, then you'll need to pass all of those
triples to TopSPIN running on spin:constructor. So you'd have an
ApplyConstuct with replace=true with the query:
CONSTRUCT {?uri rdf:type ?value}
WHERE { ... }
and sm:next is ApplyTopSPIN with sml:predicate set to
spin:constructor.
-- Scott
On May 26, 5:42 pm, Arthur Keen <[email protected]> wrote:
> I had tried running topspin on spin:constructor to see if it would work like
> a spin:rule, but it did not trigger the constructor.
> Thanks
> Arthur
>
> On Wed, May 26, 2010 at 5:23 PM, Scott Henninger <[email protected]
>
> > wrote:
> > <Is there a way to ensure the constructors
> > > trigger when creating instances in sparqlmotion?>
>
> > Yes, you can run TopSPIN on the property spin:constructor. Composer
> > has specific triggers to run the constructors, and you need to tell
> > the SPARQLMotion script when it should be executed.
>
> > -- Scott
>
> > On May 26, 4:58 pm, Arthur Keen <[email protected]> wrote:
> > > I have a sparqlmotion script that creates instances of owl:class Project.
> > > Project and Tasve has a spin:constructor for creating a default task
> > > network and assigning it to Project. When I create a project using the
> > > Composer instance form, the task network gets created and bound to the
> > > project instance, however, when I use the sparqlmotion script, the
> > > constructors do not trigger. Is there a way to ensure the constructors
> > > trigger when creating instances in sparqlmotion?
>
> > > Thanks
> > > Arthur
>
> > --
> > You received this message because you are subscribed to the Google
> > Group "TopBraid Suite Users", the topics of which include 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]<topbraid-users%[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
Group "TopBraid Suite Users", the topics of which include 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