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
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:
["
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