- From: Joseph Reagle <reagle@w3.org>
- Date: Fri, 28 Feb 2003 15:57:24 -0500
- To: www-rdf-interest@w3.org
I've completed a brief analysis and "encountered issues" on:
http://www.w3.org/2003/02/schema-annotation.html
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">
<text/>
</element>
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">
<title>
Being a Dog Is a Full-Time Job
</title>
<author>http://reagle.org/joseph/</author>
<character>
<name>Snoopy</name>
<friend-of>Peppermint Patty</friend-of>
<since>1950-10-04</since>
<qualification>
extroverted beagle
</qualification>
</character>
<character>
<name>Peppermint Patty</name>
<since>1966-08-22</since>
<qualification>bold, brash and tomboyish</qualification>
</character>
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