Re: RFE: built-in for making datatype literals

> I'd like a built-in for making datatyped literals out of strings
> and URIs, ala...
>
> { ("2005-03-30T11:00:00" tz) log:dtlit ?X } => { ?X a Answer }.
>
> produces...
>
>     "2005-03-30T11:00:00"^^:tz     a :Answer .

also needed that a while back, but then could work around..
implemented it now in euler BuiltinManager (and also log:uri) and

--filter

@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <http://example.org/eg#>.
{ :a log:uri ?Q } => { ?Q a :Answer}.
{ ("2005-03-30T11:00:00" :tz) log:dtlit ?X } => { ?X a :Answer }.

then gives

"http://example.org/eg#a" a :Answer. 
"2005-03-30T11:00:00"^^:tz a :Answer. 

-- 
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Saturday, 2 April 2005 23:26:29 UTC