Starting with SPIN is described in the Help page in TBC:
<http://127.0.0.1:2351/help/nav/2> TopBraid Composer >
<http://127.0.0.1:2351/help/nav/2_5> SPIN > SPIN Overview as follows:

 

In order to use any SPIN feature, your RDF/OWL model must import the SPIN
namespace(s). 

If you have downloaded TBC with an installer, you will see spin.rdf under
your SPIN ontologies folder in the TopBraid project. 

If you don't have the SPIN ontology files, you should run the wizard to
Import... > TopBraid Composer > Refresh TopBraid RDF/OWL Ontology Library
from the Web. Then use the Imports View to add the SPIN namespace to your
existing RDF/OWL model. 

If you start with a new file, you can use File > New RDF/OWL/SPIN File...
which will take care of the imports for you. 

As explained here, you can put rules directly into your model or you can
have a separate rules file. A rules file will need to import the model for
which you are creating rules.

 

For an example of a rules file see kennedysSPIN.rdf delivered with TopBraid
Composer installations (Navigator > TopBraid > Examples). It defines
examples of SPIN rules, constraints, functions, and templates. Many of the
examples in the Help files use this model. 

 

Open this model and take a look at kennedys:Person. You will see two
constraints and three rules associated with the class using respectively
spin:constraint and spin:rule properties. 

 

At the basic level, the process is simply about attaching queries to
relevant classes. You can test each query individually the same way you
normally test SPARQL queries.

 

Constraints are SPARQL ASK queries and when they evaluate to true, you will
see warning signs in TBC and in TBE. These checks are done in real time as
data gets entered. Rules run when you run inferencing with TopSPIN engine.
The third property you could use to associate a rule with a class is
spin:constructor. These rules fire when a new instance of a class is
created.

 

Tutorial suggested by Scott goes a little beyond these basics by
demonstrating creation of a SPIN function.

 

After you run inferences, you can see some useful information about rule
execution in SPIN Statistics view.

 

There are some additional resources assembled here http://spinrdf.org/ .
This page is referenced from  http://www.topquadrant.com/products/SPIN.html 

 

Regards,

 

Irene Polikoff 

From: [email protected]
[mailto:[email protected]] On Behalf Of Scott Henninger
Sent: Wednesday, April 06, 2011 10:47 AM
To: [email protected]
Subject: Re: [topbraid-users] Getting started with SPIN (was Re:)

 

Souad; There are some good online source for learning how to use SPIN with
TopBraid Suite products.  The SPIN home page is at 
   http://www.topquadrant.com/products/SPIN.html

...and includes a tutorial.  You can also look at the SPIN W3C submission at
http://www.w3.org/Submission/2011/SUBM-spin-overview-20110222/

-- Scott

On 4/6/11 5:10 AM, souad bouaicha wrote: 

hello 
I want to create a process for creating a rule in SPIN. Is there a process
already exists.

-- 
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

-- 
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

-- 
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

Reply via email to