Hi Jerven,
I believe you may have the wrong Jena/ARQ versions. The function spl:instanceOf
has the following body
ASK WHERE {
{
FILTER (isIRI(?arg1) || isBlank(?arg1)) .
?class (rdfs:subClassOf)* ?arg2 .
?arg1 a ?class .
}
UNION
{
FILTER isLiteral(?arg1) .
BIND (datatype(?arg1) AS ?datatype) .
FILTER (?datatype = ?arg2) .
} .
}
Upgrading to Jena 2.6.4 and ARQ 2.8.7 will make sure that you have support for
the new SPARQL 1.1 features such as BIND (formerly known as LET).
For future reports, please include the full stack trace - the one you sent
seems to have been cut off too early so that they real exception wasn't
visible. It might explain a SPARQL syntax error - Thanks.
Cheers,
Holger
On Jun 1, 2011, at 10:08 PM, Jerven Bolleman wrote:
> Hi SPIN API/Topbraid developers,
>
> I just attempted to upgrade to the latest spin-api version 1.2.0 from
> spin-api 1.1.2.
>
> Code compiles fine but all my test cases fail the moment I attempt to
> init the SPINModuleRegistry.get().init();
> What should I look at to make it work again.
>
> Regards,
> Jerven
>
> e.g. with this kind of stack trace.
>
>
> java.lang.ExceptionInInitializerError
> at
> org.expasy.rules.crossReferences.URC43Test.testShouldTrigger(URC43Test.java:28)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.IllegalArgumentException: Function
> http://spinrdf.org/spl#instanceOf does not define a valid body
> at
> org.topbraid.spin.arq.SPINARQFunction.<init>(SPINARQFunction.java:69)
>
> --
> 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
> <jerven_bolleman.vcf>
--
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