W3C home > Mailing lists > Public > www-rdf-interest@w3.org > October 2000

Re: A DTD for the abstract RDF model

From: Simon Cox <Simon.Cox@dem.csiro.au>
Date: Tue, 10 Oct 2000 12:41:57 +0800
Message-ID: <39E29E15.7172335E@dem.csiro.au>
To: www-rdf-interest@w3.org
CC: Tom Van Eetvelde <tom.van_eetvelde@alcatel.be>
... or even follow P-A Champin's [1] suggestion and express RDF in a syntax 
that uses XLink directly.  For example:

<rdf:graph xlink:type="extended">
	<rdf:statement xlink:type="arc" xlink:arcrole="rdf:type" xlink:from="Kevin"
xlink:to="s:Person">
	<rdf:statement xlink:type="arc" xlink:arcrole="s:gender" xlink:from="Kevin"
xlink:to="male">
	<rdf:statement xlink:type="arc" xlink:arcrole="rdf:type" xlink:from="Laura"
xlink:to="s:Person">
	<rdf:statement xlink:type="arc" xlink:arcrole="s:likes" xlink:from="Laura"
xlink:to="Kevin">
</rdf:graph>
	    

Tom Van Eetvelde wrote [in part]:
> 
> Why not using DTD's to support serializing RDF?
> 
> Take a look at following DTD:
> 
> <!ELEMENT graph (arc)*>
> <!ELEMENT arc (node, link, node)>
> <!ELEMENT node>
> <!ELEMENT link>
> <!ATTLIST node id ID #optional>
> <!ATTLIST link id ID #optional>
> 
> This XML DTD supports making RDF (directed labeled graph) instances. If you
> want to add namespacing, add attributes to the graph element. The id's used
> have to follow the URI conventions.
> 
> I think the DTD reflects the RDF model completely if you throw away the
> literals (which I never use as I do not find them useful): resource,
> propertyl, resource. It has everything to support writing down tripples.
> Simpel RDF instance example:
> 
> <graph>
>     <arc>
>         <node id="Kevin"/>
>         <link id ="rdf:type"/>
>         <node id="s:Person"/>
>     </arc>
>     <arc>
>         <node id="Kevin"/>
>         <link id ="s:gender"/>
>         <node id="male"/>
>     </arc>
>     <arc>
>         <node id="Laura"/>
>         <link id ="rdf:type"/>
>         <node id="s:Person"/>
>     </arc>
>     <arc>
>         <node id="Laura"/>
>         <link id ="s:likes"/>
>         <node id="Kevin"/>
>     </arc>
> </graph>
> 
> Parsing this graph (and validating it to make sure a graph is written down) is
> piece of cake. I do not understand why so much effort has been put in RDF XML
> serialization syntax. RDF = a tripple model. As soon as you are able to write
> down tripples and URI's, the serialization is OK, right?


[1] http://lists.w3.org/Archives/Public/www-rdf-interest/2000Jul/0046.html
-- 
Simon.Cox@dem.csiro.au    CSIRO Exploration & Mining
T:+61(8) 9284 8443 F:+61(8) 9389 1906 M:0403 302 672
http://www.ned.dem.csiro.au/research/visualisation/
Received on Tuesday, 10 October 2000 00:42:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:44 GMT