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

Reifying using XML attributes only

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Thu, 30 Aug 2001 18:38:21 +0100
To: w3c-rdfcore-wg@w3.org
Message-ID: <9164.999193101@tatooine.ilrt.bris.ac.uk>
Addressing ACTION: 2001-08-24#8 Dave Beckett
  Write up a proposed resolution for reifying using XML attributes
  anly (sic)


The RDF XML syntax defined in M&S allows properties to be written as
XML attributes in the Qname form, with values that are strings.
These are then turned into RDF statements with a string object.  The
syntax also allows the rdf:type property to be used as an attribute
with the string value interpreted as a URI-reference.

M&S defines explicitly other properties including rdf:subject,
rdf:predicate and rdf:object 
  http://www.w3.org/TR/REC-rdf-syntax/#formalReification

In summary, these take as values:
  Property      Property Value
  --------      --------------
  rdf:type      URI-reference
  rdf:subject   URI-reference
  rdf:predicate URI-reference
  rdf:object    URI-reference or literal

These can be used in this attribute abbreviated form since they match
the grammar propAttr or typeAttr (for rdf:type).

Testing the attached example with parser implementations gives
different results for the statement values - some literals,
some URI-references.

Thus, we need to clarify what is allowed here.


Proposed clarification / resolution, test case.

  For properties encoded in XML attribute form, the attribute value
  is interpreted as a literal for all properties except rdf:type
  for which it is interpreted as a URI-reference.

  The attached N-Triples defines the model produced by the attached
  RDF/XML.


Consequences:
  rdf:subject and rdf:predicate if used in XML attribute form will
  generate literal values which are presently forbidden (I think!)
  or maybe just very unexpected.

  If you want to use rdf:subject, rdf:predicate properties, encode
  them in the property element form (propElt).

  rdf:object can be used but can only take a literal value.

Dave

--


Received on Thursday, 30 August 2001 13:38:23 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:38:50 EDT