Hi,
judging from the source code there is a Resource in the SELECT
projection part of a SPIN query. I have not encountered such a
situation, so I have no immediate idea off the top of my head. You may
need to debug this further - you have the source code and can insert
debugging code if needed to see what kind of Resource this is.
Holger
On 7/03/2017 4:41, Goblank wrote:
Hi All,
I am facing issues in converting certain queries from SPARQL to SPIN
in TBC, the back to SPARQL using the SPIN API.
This is the error I that gets thrown.
ERROR [main:SPINQueryFinder@110] - Could not parse SPIN query
java.lang.ClassCastException:
org.apache.jena.rdf.model.impl.ResourceImpl cannot be cast to
org.topbraid.spin.model.print.Printable
at
org.topbraid.spin.model.impl.SelectImpl.printSPINRDF(SelectImpl.java:118)
at org.topbraid.spin.model.impl.QueryImpl.print(QueryImpl.java:117)
at org.topbraid.spin.model.impl.SubQueryImpl.print(SubQueryImpl.java:46)
at
org.topbraid.spin.model.impl.ElementListImpl.print(ElementListImpl.java:139)
at
org.topbraid.spin.model.impl.AbstractSPINResourceImpl.printNestedElementList(AbstractSPINResourceImpl.java:132)
at org.topbraid.spin.model.impl.QueryImpl.printWhere(QueryImpl.java:224)
at
org.topbraid.spin.model.impl.ConstructImpl.printSPINRDF(ConstructImpl.java:55)
at org.topbraid.spin.model.impl.QueryImpl.print(QueryImpl.java:117)
at
org.topbraid.spin.arq.ARQFactory.createCommandString(ARQFactory.java:140)
at
org.topbraid.spin.util.SPINQueryFinder.createCommandWrapper(SPINQueryFinder.java:140)
at org.topbraid.spin.util.SPINQueryFinder.add(SPINQueryFinder.java:101)
at
org.topbraid.spin.util.SPINQueryFinder.getClass2QueryMap(SPINQueryFinder.java:182)
... rest is invoking code ...
Unfortunately I do not have permission to share the original query,
and am trying to create an anonymized query where I can re-create the
problem. However, was wondering if this channel was aware of specific
scenarios where this might happen
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include the TopBraid
Suite family of products and its base technologies such as
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Group "TopBraid
Suite Users", the topics of which include the TopBraid Suite family of products and
its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.