Thank you Holger,

fn:substring works ok (just needed to fill in the correct arguments).



On Fri, May 30, 2014 at 2:04 AM, Holger Knublauch <hol...@topquadrant.com>
wrote:

>  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
> topbraid-users@googlegroups.com
> To unsubscribe from this group, send email to
> topbraid-users+unsubscr...@googlegroups.com
> 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 topbraid-users+unsubscr...@googlegroups.com.
>
> 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
> topbraid-users@googlegroups.com
> To unsubscribe from this group, send email to
> topbraid-users+unsubscr...@googlegroups.com
> 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 a topic in the
> Google Groups "TopBraid Suite Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/topbraid-users/dRv_LlV1oKA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> topbraid-users+unsubscr...@googlegroups.com.
> 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
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to