[closed] Re: RFE: built-in for making datatype literals

Re: http://lists.w3.org/Archives/Public/public-cwm-bugs/2005Apr/0000

I've merged the change to add log:dtlit from the branch into the trunk.
I also hooked up the test case (I just threw it into regression.n3,
though...) (see below). I also added an extremely simple definition for
log:dtlit in log.n3 and regenerated log.rdf and doc/CwmBuiltin.html.
Finally, I updated llyn.html as well.

Currently, the definition of log:dtlit is as follows:

log:dtlit a rdf:Property;
    rdfs:comment """Takes a list of a string and a URI and creates a
datatyped literal. For example, { ("2005-03-30T11:00:00" :tz)
log:dtlit ?X } => { ?X a :Answer } . will produce
"2005-03-30T11:00:00"^^:tz a :Answer .""" .

DanC, do you want to add anything else to this definition (such as a
domain, range, better/corrected description, etc.)?

-- eefi

Test added:
URI: http://www.w3.org/2000/10/swap/test/regression.n3#t1062
description: "simple test for log:dtlit"
input: http://www.w3.org/2000/10/swap/test/dt/dtlit1.n3
output: http://www.w3.org/2000/10/swap/test/ref/dtlit1.n3

Received on Monday, 20 June 2005 01:04:42 UTC