Hi Nikolaos,

the SPIN API does not include all SPARQL functions that TBC does. So any function starting with smf: or spif: would need to be either re-implemented in Java, or replaced. (I see smf:subString for which you could just use fn:substring).

Also make sure that the user-defined SPIN functions are properly registered prior to execution.

        // Register locally defined functions
        SPINModuleRegistry.get().registerAll(ontModel, null);

HTH
Holger


On 5/30/2014 0:17, Nikolaos Beredimas wrote:
Please take a look at the attached ttl.
There are two constraints defined inside. One is about a string's length, one about the string's checksum.

There are four instances of the class AMKA. Of these 4, 3 should give a constraint violation warning.

This works as intented in TBC Free 4.4

However when checking the file using the SPIN API 1.3.2 in java, only the constraints about the strings length are detected.

I used the KennedysInferencingAndConstraintsExample java code, only replacing the input model with the one attached, so I'm stuck as to what is causing this behavior.

Any thoughts?
--
-- 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 Insight, SPARQLMotion, SPARQL Web Pages 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
---
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 Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL 
Web Pages 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
--- 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.

Reply via email to