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

Schema Annotations Issues and Proposal

From: Joseph Reagle <reagle@w3.org>
Date: Fri, 28 Feb 2003 15:57:24 -0500
To: www-rdf-interest@w3.org
Message-Id: <200302281557.24283.reagle@w3.org>

I've completed a brief analysis and "encountered issues" on:

It includes a proposal for a simple way of annotating relaxNG:
 <element name="author" rr:ID="author" rr:type="rdfs:Property"
          rr:domain="#book" rr:range="rdfs:Literal">
and a quick prototype implementation that can yield triples given an
annotated rng and valid (using an external call to Jing) XML instance. 
Features and limitations are captured in the documents.

>cat dog.xml
<?xml version="1.0" encoding="UTF-8"?>
<book isbn="0836217462">
  Being a Dog Is a Full-Time Job
  <friend-of>Peppermint Patty</friend-of>
    extroverted beagle
  <name>Peppermint Patty</name>
  <qualification>bold, brash and tomboyish</qualification>

rng-rdf> rng-rdf.py book-a.rng dog.xml
<_:book3124> <http://example.org/lib/isbn> "0836217462" .
<_:book3124> <http://purl.org/dc/elements/1.1/title> "Being a Dog Is a 
Full-Time Job" .
<_:book3124> <http://purl.org/dc/elements/1.1/creator> 
<http://reagle.org/joseph/> .
<_:book3124> <http://example.org/lib/character> <_:person8110> .
<_:person8110> <http://example.org/lib/name> "Snoopy" .
<_:person8110> <http://example.org/lib/friend-of> "Peppermint Patty" .
<_:person8110> <http://example.org/lib/since> "1950-10-04" .
<_:person8110> <http://example.org/lib/qualification> "extroverted beagle" .
<_:book3124> <http://example.org/lib/character> <_:person9305> .
<_:person9305> <http://example.org/lib/name> "Peppermint Patty" .
<_:person9305> <http://example.org/lib/since> "1966-08-22" .
<_:person9305> <http://example.org/lib/qualification> "bold, brash and 
tomboyish" .
Received on Friday, 28 February 2003 15:57:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:44 UTC