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]. For more options, visit https://groups.google.com/d/optout.
