Sure, you can use the "normal" SPIN API over any Jena Graph or Model, including 
those created by the AllegroGraph Jena API. Note that by default the queries 
will be executed using ARQ only, which means that it will not make use of any 
optimizations on the AG level. In order to do that, overload ARQFactory so that 
it returns AGQueryExecution objects if possible.

Holger


On Oct 19, 2011, at 4:15 PM, actress wrote:

> Hi,Scott,
> What about the open source SPIN API?
> Can we use them from java client to retrieve some triples generated by
> SPIN?
> 
> Aziza
> On Oct 17, 11:07 pm, Scott Henninger <[email protected]>
> wrote:
>> Aziza; AllegroGraph can be viewed as a back-end.  SPIN queries are
>> applied transparently to the back-end when executed from TopBraid
>> Suite (either Composer, Live, or EVN).  To do this, create a connector
>> file (after downloading and installing the AG plugin - 
>> seehttp://www.franz.com/agraph/support/documentation/v4/TBCplugin.html)
>> and apply SPIN queries to the connector.
>> 
>> I.e. once you have installed the AG plugin, you can export data to AG
>> or create a new AG datastore.  The result is a connector file in TBC's
>> navigator with a .allegro extension.  You can treat this connector the
>> same as a text serialization (.rdf, .ttl, etc.) and apply queries
>> directly to it, save SPIN queries in the AG datastore, or import
>> the .allegro connector to a file with SPIN definitions.  In all cases,
>> the SPIN queries are applied to the AG data on the back-end.
>> 
>> -- Scott
>> 
>> On Oct 17, 2:41 am, actress <[email protected]> wrote:
>> 
>> 
>> 
>>> Hi,
>>> Wanted to clarify SPIN topic one more:
>>>  if let's say I want to write a java program calling some triple from
>>> allegrograph server which is supposed to be generated using SPIN rule.
>>> My question is : Do I need to use some special API specifically for
>>> using SPIN in AllegroGraph?
>>> Or  it's enough to use just AllegroGraph API?
>> 
>>> P.S. Can you provide a link for API special for using SPIN?- Hide quoted 
>>> text -
>> 
>> - Show quoted text -
> 
> -- 
> 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