Hello all,

I am trying to use the SPIN API  version 1.2.0 (developing in Eclipse)
to execute functions I created in TopBraid Composer Maestro edition,
version 3.5. I am using Ubuntu 11.10.

When I use the SPINInferences.run() method, I get warnings such as the
following:

"URI <http://topbraid.org/sparqlmotionfunctions#buildURI> has no
registered function factory"

Oddly, I also get these warnings for rules/functions I have created
and defined *within* my SPIN RDF file.

Here is the Java code where I create a Jena model and load my SPIN RDF file:

OntModel mySPINModel = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );
mySPINModel.read("http://localhost/tmp/myrules.spin.rdf";);

I had read about a similar problem here
:http://www.mail-archive.com/[email protected]/msg01770.html,
and I am importing the SPARQL Motion functions. I have tried this in
two different ways:

(1) By including the relevant imports in the SPIN RDF file:

<owl:Ontology rdf:about="">
    <owl:imports rdf:resource="http://spinrdf.org/spin"/>
    <owl:imports rdf:resource="http://spinrdf.org/spl"/>
    <owl:imports rdf:resource="http://topbraid.org/functions-smf"/>
    <owl:imports rdf:resource="http://topbraid.org/functions-afn"/>
    <owl:imports rdf:resource="http://topbraid.org/functions-fn"/>
  </owl:Ontology>

(2) By reading them directly into the Jena model:

mySPINModel.read("http://spinrdf.org/spin";);
mySPINModel.read("http://spinrdf.org/spl";);
mySPINModel.read("http://topbraid.org/functions-smf";);
mySPINModel.read("http://topbraid.org/functions-afn";);
mySPINModel.read("http://topbraid.org/functions-fn";);

Neither approach fixes the problem, and as a result
SPINInferences.run() doesn't infer any new triples (unlike when I
execute my rules within TopBraid Composer 3.5.0).

Where am I going wrong? Any help with this issue would be much appreciated,

Alison

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