W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > September 2001

big issue (2001-09-28#13)

From: Sergey Melnik <melnik@db.stanford.edu>
Date: Fri, 28 Sep 2001 10:31:05 -0700
Message-ID: <3BB4B3D9.2249B90C@db.stanford.edu>
To: RDFCore WG <w3c-rdfcore-wg@w3.org>
This is a followup clarification regarding the issue #13 assigned to me
this Friday (what an inspiring number play) and christened "datatypes".
At the same time, after giving some context information, I'm throwing
the ball into the game by putting forth some (hopefully, provocative)

It seems to be generally acknowledged that the following 4 issues are
closely related and, thus, may need to be resolved simultaneously:

1. Are literals resources?

  Tracked as: #rdfms-literals-as-resources
  Dependent issue: #rdfms-literalsubjects, would be resolved immediately
if literals are resources

2. Are resource URIs opaque or composed of namespace + local name?

  Tracked as: #rdfms-uri-substructure

3. Are literals opaque or composed of unicode string + language ID/URI?

  Tracked as: #rdfms-xmllang
  Related: #rdfms-literal-is-xml-structure
           (suggests literals are composite values)

4. How to use datatypes in RDF?

  Tracked as: #rdfs-xml-schema-datatypes
  Possible foundation: http://www.w3.org/TR/xmlschema-2/

Let me start the discussion backwards. What are the requirements for
using datatypes? Here is a quote from

- provide for primitive data typing, including byte, date, integer,
  SQL and Java primitive datatypes, etc.; 
- define a type system that is adequate for import/export from database
  (e.g., relational, object, OLAP); 
- distinguish requirements relating to lexical data representation vs.
  those governing an underlying information set; 
- allow creation of user-defined datatypes, such as datatypes that are
  from existing datatypes and which may constrain certain of its
  (e.g., range, precision, length, format). 

In other words, to use datatypes effectively, we must at least be able

a) identify a resource (or literal) as a typed one
b) refer to a datatype as a resource (this allows defining datatypes,
determining their equivalence etc.)

Here is a tentative suggestion of how datatypes may be introduced into
RDF. This is also an attempt of a simultaneous attack on issues 1-4
above. Previously, I proposed several ways of treating literals as
resources. For a change, here is an alternative view:

s1) A resource is a pair of (URI, local name) (URIs may contain "#"
etc.; this satisfies the M&S requirement that given a property, one can
retrieve the schema describing this property)

s2) A literal is a pair <resource, unicode string>. The first component
of a literal denotes its (data)type.

That's it for now. Here is an example of how (s1),(s2) address (a),(b):

Notice that the datatypes themselves are resources. For instance, a
resource for "integer" defined in XML schema is
(http://www.w3.org/2001/XMLSchema-datatypes, integer). Literals are
tagged using resources. For instance, value "5" is tagged as "integer"
using <(http://www.w3.org/2001/XMLSchema-datatypes, integer), "5">. The
definition of the datatype of the above primitive value "5" can be
retrieved from http://www.w3.org/2001/XMLSchema-datatypes (according to
M&S requirement).

These are the (possible) consequences:

c1) Resources and literals are disjoint
c2) Language tagging in literals is done using the typing mechanism,
    <(http://iso.org/lang/, en-us), "rat">
c3) #rdfms-literalsubjects is still open.
c4) s1,s2 say nothing about the type system or creation of user-defined
types. XML schema introduces a very elaborate one (maybe ugly, but
comprehensive), which may or may not be worth mirroring in RDF.

Rotten tomatoes are welcome.

Received on Friday, 28 September 2001 13:05:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:24:04 UTC