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>


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): 
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=
XML, The Model Driven Architecture, and RDF @ XML Europe - 
Received on Saturday, 22 June 2002 03:39:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:37 UTC