W3C home > Mailing lists > Public > semantic-web@w3.org > October 2007

Re: my laziness with literals

From: Garret Wilson <garret@globalmentor.com>
Date: Fri, 12 Oct 2007 11:57:41 -0300
Message-ID: <470F8B65.2070704@globalmentor.com>
To: Story Henry <henry.story@bblfish.net>
CC: Semantic Web <semantic-web@w3.org>

Story Henry wrote:
>
> On 12 Oct 2007, at 15:04, Garret Wilson wrote:
>
>>
>> * If you're going to store a number, use a typed literal with 
>> xsd:integer or similar.
>> * If you're going to store a boolean, use a typed literal with 
>> xsd:boolean or similar.
>> * If you're going to store a URI, use a typed literal with xsd:anyURI.
>> * If you're going to store a language, use something like 
>> info:lang/en/US.
>
>
> For all of these I suggest using N3 (or its subset Turtle). It makes 
> it really easy to write integers, booleans, uris and languages. In 
> fact it makes writing rdf a lot easier.
>
> :me :age 23 ;
>     foaf:homepage </> ;
>     :description "I like N3"@en .
>
> It does not make dates that much easier.
>
> Since rdf is about semantics and not syntax, one should have no 
> problem using whatever syntax best suits the occasion.
>
> Henry
>
>

I completely agree. Hopefully N3 will encourage the use of typed 
literals over plain literals for anything other than strings.

Cheers,

Garret
Received on Friday, 12 October 2007 14:58:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:18 GMT