W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2003

AW: relationship of rdfs:Literal to rdfs:Resource

From: Leo Sauermann <leo@gnowsis.com>
Date: Mon, 29 Sep 2003 11:30:41 +0200
To: <www-rdf-interest@w3.org>
Message-ID: <000f01c3866c$59d950b0$0b01a8c0@Bundeslade>

I understand that the main purpose for Literals is to be read by humans 
or for computers to be interpreted as numbers & dates to do searches, <=
> == != things and the like.

An interesting point to the discussion is the language specification of
literals. This is a useful thing in the standard to note semantics about
literals and it is implemented in a clumsy way, if you have to notate
languages. <rdfs:label xml:lang='en'>extension</rdfs:label>
and the N3 notation is even clumsier.
but that is ok, 
you can do internationalization with it.

but if you want more metadata, I would recommend to create resources

<person> <hasName> <name>, 
<name> <literalValue> "leo"
<name> <meaning> <http://.../Lion>

and so on....

you can do all you want with existing RDF standard, some things may be
complicated, but programming is very easy with it. If a literal is also
a resource that could be linked, i would have many problems when i want
to output literals... 
RDFNode node;
if (node instanceof Resource) 
 do blabla
else if (node instanceof Literal)
 do blabal
works fine for me.

Leo Sauermann
Received on Monday, 29 September 2003 05:31:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 6 January 2021 22:03:27 UTC