Re: Datayped tagged literals: a case for option 4 vs option 2d

On 26/09/11 14:44, Jan Wielemaker wrote:
...
>
> I am afraid that DATATYPE(?x) cannot be used in SPARQL graph
> expressions, but I think this can be fixed if there is a good
> use-case.

In SPARQL 1.1:

    BIND(DATATYPE(?x) As ?langX)

and the ?langX variable used.

another example:

SELECT ?s ?p (STR(?o) AS ?lex) (DATATYPE(?o) AS ?dt) (LANG(?o) AS ?lang)
WHERE { ?s ?p ?o }

 andy

Received on Monday, 26 September 2011 14:07:13 UTC