Strange SPIN behavior

36 views
Skip to first unread message

Leonard Jacuzzo

unread,
Oct 23, 2012, 1:13:21 PM10/23/12
to topbrai...@googlegroups.com
Dear List,
 
This morning I went to run a SMS that I have run several times in the past, but this time I get a strange error.
The SMS hangs up on a Apply SPIN module...When I attempt to rund SPIN in the model where the rules reside, I get no inference results.
 
Here is the error log.  Any thoughts?  LFJ
 
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86
This is a continuation of log file C:\Documents and Settings\ljacuzzo\TBCMEWorkspace\.metadata\.bak_0.log
Created Time: 2012-10-23 11:37:42.971
Error
Tue Oct 23 11:40:14 EDT 2012
Could not execute SPARQLMotion script
java.lang.reflect.InvocationTargetException
 at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:153)
 at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)
 at java.lang.Thread.run(Unknown Source)
Caused by: com.hp.hpl.jena.query.QueryParseException: BIND: Variable used when already in-scope: ?BooleanValue in BIND(true AS ?BooleanValue)
 at com.hp.hpl.jena.sparql.lang.SyntaxVarScope$ScopeChecker.check(SyntaxVarScope.java:286)
 at com.hp.hpl.jena.sparql.lang.SyntaxVarScope$ScopeChecker.visit(SyntaxVarScope.java:262)
 at com.hp.hpl.jena.sparql.syntax.ElementWalker$Walker.visit(ElementWalker.java:100)
 at com.hp.hpl.jena.sparql.syntax.ElementGroup.visit(ElementGroup.java:113)
 at com.hp.hpl.jena.sparql.syntax.ElementWalker.walk(ElementWalker.java:40)
 at com.hp.hpl.jena.sparql.syntax.ElementWalker.walk(ElementWalker.java:35)
 at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkBind(SyntaxVarScope.java:77)
 at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.check(SyntaxVarScope.java:64)
 at com.hp.hpl.jena.sparql.lang.Parser.validateParsedQuery(Parser.java:56)
 at com.hp.hpl.jena.sparql.lang.ParserARQ.parse$(ParserARQ.java:53)
 at com.hp.hpl.jena.sparql.lang.Parser.parse(Parser.java:37)
 at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:156)
 at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:79)
 at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:52)
 at org.topbraid.spin.arq.ARQFactory.doCreateQuery(ARQFactory.java:235)
 at org.topbraid.spin.arq.ARQFactory.createQuery(ARQFactory.java:218)
 at org.topbraid.spin.util.SPINQueryFinder.add(SPINQueryFinder.java:90)
 at org.topbraid.spin.util.SPINQueryFinder.getClass2QueryMap(SPINQueryFinder.java:137)
 at org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.addNewTriples(ApplyTopSPINModule.java:116)
 at org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.addNewTriples(ApplyTopSPINModule.java:157)
 at org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.createGraph(ApplyTopSPINModule.java:78)
 at org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:865)
 at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:178)
 at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120)
 at org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)
 at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:142)
 ... 2 more
 

Holger Knublauch

unread,
Oct 23, 2012, 4:44:59 PM10/23/12
to topbrai...@googlegroups.com
The syntax rules for SPARQL have become stricter in the recent Jena upgrade that we included in TopBraid 3.6.2. In particular you may need to move BIND statements further up in the query. As the error message states, you can no longer first bind a variable through a basic graph pattern and then use it in a BIND. If you would like to share the particular query that fails then I can give some more details. Meanwhile, please check all BINDs and make sure they are ordered correctly.

HTH
Holger


--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
topbrai...@googlegroups.com
To unsubscribe from this group, send email to
topbraid-user...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
 
 

Leonard Jacuzzo

unread,
Oct 23, 2012, 4:57:13 PM10/23/12
to topbrai...@googlegroups.com
Thanks Holger,
 
But there are absolutely no 'BIND'S anywhere in my SPIN RULES.
LFJ

Leonard Jacuzzo

unread,
Oct 23, 2012, 5:09:06 PM10/23/12
to topbrai...@googlegroups.com
Sorry,
 
On closer look I found it....(not my query....) Who would Bind a variable after it is bound?
 
Crazy.
LFJ

Reply all
Reply to author
Forward
0 new messages