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

Re: my laziness with literals

From: Story Henry <henry.story@bblfish.net>
Date: Fri, 12 Oct 2007 16:45:14 +0200
Message-Id: <9DBE9C34-5012-4CEB-ABD6-FEACAFB64FD0@bblfish.net>
Cc: Semantic Web <semantic-web@w3.org>
To: Garret Wilson <garret@globalmentor.com>

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




Received on Friday, 12 October 2007 14:45:22 GMT

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