Hello,
   I'm at a bit of a loss on this one.  For some reason I'm getting
the below exception most (but not all) of the time.  On one occasion I
printed out the triple being added in the
org.topbraid.spin.model.SPINFactory.createTriplePattern(Unknown
Source) call:

getTriplePattern triple: null http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.boeing.com/IVHM/ModelManagement.owl#Project

One thing that's confusing is I don't understand why pellet is being
invoked at all here.  It's just converting the jena Query to a SPIN
Query, right?  Any ideas what might cause pellet to come into play?
Here's the code leading up to the exception, with the sparql variable
being a String and the memModel being just a jena OWL_MEM OntModel:

                Query selectQuery = QueryFactory.create(sparql, 
Syntax.syntaxARQ);
                ARQ2SPIN a2s = new ARQ2SPIN(memModel);
                org.topbraid.spin.model.Query spinQuery = a2s.createQuery
(selectQuery, null);


org.mindswap.pellet.exceptions.InternalReasonerException: Invalid
value to create a literal. Value: bnode(-56fdbb17:120ff661ba4:-766b)
        at org.mindswap.pellet.ABox.addLiteral(ABox.java:1546)
        at org.mindswap.pellet.KnowledgeBase.addPropertyValue
(KnowledgeBase.java:924)
        at org.mindswap.pellet.jena.PelletGraphListener.addABoxChange
(PelletGraphListener.java:90)
        at org.mindswap.pellet.jena.PelletGraphListener.notifyAddTriple
(PelletGraphListener.java:275)
        at com.hp.hpl.jena.graph.impl.SimpleEventManager.notifyAddTriple
(SimpleEventManager.java:60)
        at com.hp.hpl.jena.graph.impl.GraphBase.notifyAdd(GraphBase.java:133)
        at com.hp.hpl.jena.graph.impl.GraphBase.add(GraphBase.java:200)
        at com.hp.hpl.jena.graph.compose.MultiUnion.performAdd
(MultiUnion.java:116)
        at com.hp.hpl.jena.graph.impl.GraphBase.add(GraphBase.java:199)
        at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:939)
        at com.hp.hpl.jena.rdf.model.impl.ResourceImpl.addProperty
(ResourceImpl.java:245)
        at org.topbraid.spin.model.SPINFactory.createTriplePattern(Unknown
Source)
        at org.topbraid.spin.arq.ARQ2SPIN$1.visitElements(Unknown Source)
        at org.topbraid.spin.arq.ARQ2SPIN$1.visit(Unknown Source)
        at com.hp.hpl.jena.sparql.syntax.ElementPathBlock.visit
(ElementPathBlock.java:68)
        at org.topbraid.spin.arq.AbstractElementVisitor.visit(Unknown Source)
        at org.topbraid.spin.arq.ARQ2SPIN$1.visit(Unknown Source)
        at com.hp.hpl.jena.sparql.syntax.ElementGroup.visit(ElementGroup.java:
104)
        at org.topbraid.spin.arq.ARQ2SPIN.createElementList(Unknown Source)
        at org.topbraid.spin.arq.ARQ2SPIN.createQuery(Unknown Source)
        at com.boeing.sif.SIFmodel.execSPINSPARQLSelect(Unknown Source)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to