Hi Monika,

SPIN constraints are just part of an RDF graph, and therefore you can 
potentially use the underlying Jena API to construct them. For example, 

        myClass.addProperty(SPIN.constraint, query);

would work if myClass points to the RDFS/OWL class. You can construct the SPIN 
query object (RDF triples) from a Jena Query object using the class ARQ2SPIN, 
and turn a query string into a Jena Query object using the Jena API or the 
class ARQFactory of the SPIN API.

Having said this, unless you are forced to construct them programmatically, the 
easiest way of creating SPIN constraints will be through a UI such as TopBraid 
Composer (including Free Edition). Then save them to a file and load that file 
like in the examples. If you need further help it might be helpful to hear what 
you are specifically trying to achieve (that you cannot do with TBC).

Regards,
Holger



On Aug 8, 2011, at 5:46 PM, Monika Solanki wrote:

> I am looking for examples that show how a constraint can be modelled and 
> attached to a concept in an existing TBox through the SPIN API.
> 
> Are there any such example available?
> 
> Thanks,
> 
> Monika
> 
> -- 
> 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