W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2002

Using entities [was Re: RDFX: My "vision" for an RDF/XML serialization, for both assertions and queries (RDF 2.0)? ]

From: Uche Ogbuji <uche.ogbuji@fourthought.com>
Date: Sat, 22 Jun 2002 01:18:57 -0600
Message-Id: <200206220718.g5M7Ivn30953@localhost.localdomain>
To: Patrick Stickler <patrick.stickler@nokia.com>
cc: RDF Interest <www-rdf-interest@w3.org>

Patrick,

In examples.rdfx, you have:

"""
<!DOCTYPE rdfx [
<!ENTITY rdfx "voc://nokia.com/rdfx-1/">
<!ENTITY rdf  "rdf:">
<!ENTITY rdfs "rdf:">
<!ENTITY xsd  "xsd:"> 
<!ENTITY dc   "dc:"> 
<!ENTITY foaf "foaf:"> 
<!ENTITY ex   "ex:"> 

<!--   Please forgive the nasty abbreviated namespace URIs  ;-)   -->

]>

<rdfx xmlns:rdf  ="&rdf;"
      xmlns:rdfs ="&rdfs;"
      xmlns:xsd  ="&xsd;"
      xmlns:dc   ="&dc;"
      xmlns:foaf ="&foaf;"
      xmlns:ex   ="&ex;"
      xmlns      ="&rdfx;">
"""

What's so nasty about this?  It's a pattern I've been using for a while, and I 
think it really helps readability.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Track chair, XML/Web Services One (San Jose, Boston): 
http://www.xmlconference.com/
DAML Reference - http://www.xml.com/pub/a/2002/05/01/damlref.html
The Languages of the Semantic Web - http://www.newarchitectmag.com/documents/s=
2453/new1020218556549/index.html
XML, The Model Driven Architecture, and RDF @ XML Europe - 
http://www.xmleurope.com/2002/kttrack.asp#themodel
Received on Saturday, 22 June 2002 03:39:58 GMT

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