- From: Andy Seaborne <andy.seaborne@epimorphics.com>
 - Date: Mon, 26 Sep 2011 15:06:43 +0100
 - To: public-rdf-wg@w3.org
 
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