[topbraid-users] Re: problem with a function in a javascript file

2015-01-19 Thread Pierluigi Ritrovato
Scott: Now I see. it is a matter on namespace. For a mistake in my rule file the base URI was an older one! thanks again Pierluigi Il giorno mercoledì 14 gennaio 2015 19:13:25 UTC+1, Pierluigi Ritrovato ha scritto: > > I have defined a spin function that make some simple computation through a

[topbraid-users] breaking a list of tokens up?

2015-01-19 Thread Jack Hodges
I have a list of xsd:NMTOKENs that I want to render (using SWP) in a table or chart. These items are in an owl:equivalentClass as owl:oneOf items (an enumerated type). I tried breaking them up with spif:split (oops, not a string), and spif:foreach but neither worked. Here is an example list: ["

Re: [topbraid-users] breaking a list of tokens up?

2015-01-19 Thread Scott Henninger
Jack; No reason to use spif:split, given that the data is already in RDF. Something like the following should work: SELECT ?str WHERE { ... ?s rdf:rest*/rdf:first ?o . BIND (xsd:string(?o) AS ?str) } The rdf:rest*/rdf:first idiom will de-construct the RDF list into elements. -- Scott S