W3C home > Mailing lists > Public > semantic-web@w3.org > February 2010

RDF/XML Syntax Question: Label on an RDF Object being a literal

From: Svante Schubert <Svante.Schubert@Sun.COM>
Date: Sun, 28 Feb 2010 19:04:42 +0100
To: Semantic Web <semantic-web@w3.org>
Cc: Dan Brickley <danbrickley@gmail.com>
Message-id: <4B8AB03A.90704@sun.com>
I got a question on RDF/XML syntax.
I would like to put an rdfs:label on an RDF object being a literal.

In RDF I read that rdfs:label takes as input an rdfs:Resource
http://www.w3.org/TR/rdf-schema/#ch_label
and found that the literal (rdfs:Literal ) is a subclass an rdfs:Resource
http://www.w3.org/TR/rdf-schema/#ch_literal

Therefore it should be possible to do so.

Why do I like to do it? Imagine I got in ODF a table

<table:table-cell office:value-type="date" office:date-value="1980-09-02">
<text:p>2. September 1980</text:p>
</table:table-cell>

In above example there are two strings for the same date:
1) In the attribute there is the string the ODF implementation should
work with "1980-09-02"
2) In the paragraph within the cell is the human readable string "2.
September 1980" (the label)

Similar I desire an adequate solution for RDFa, where

<table:table-cell
xhtml:about="uri:subject"
xhtml:property="uri:property"
xhtml:content="1980-09-02"
office:value-type="date" office:date-value="1980-09-02">
<text:p>2. September 1980</text:p>
</table:table-cell>

The description for the RDFa you find here:
http://docs.oasis-open.org/office/v1.2/part1/cd04/OpenDocument-v1.2-part1-cd04.html#attribute-xhtml_about
"If an xhtml:content attribute is present, the above mentioned literal
content becomes a label."

Thanks for any help,
Svante
Received on Sunday, 28 February 2010 18:05:42 GMT

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