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

Re: Thank you: Re: "Namespaces facility"

From: Pierre-Antoine CHAMPIN <champin@bat710.univ-lyon1.fr>
Date: Tue, 18 Jul 2000 15:39:21 +0200
Message-ID: <39745E09.F199F86D@bat710.univ-lyon1.fr>
To: Francois-Paul Servant <hypersol@micronet.fr>
CC: "Ralph R. Swick" <swick@w3.org>, www-rdf-interest@w3.org
Francois-Paul Servant wrote:
> 
> Dear Mr Swick,
> 
> thank you very much for your very precise answer to my question.

there is a solution to avoid typing long strings many times:
I usually start my RDF file this way:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE rdf:RDF [
 <!ENTITY ais  'http://www710.univ-lyon1.fr/~champin/RDF/AIS/'>
 <!ENTITY rdf  'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
 <!ENTITY rdfs 'http://www.w3.org/TR/WD-rdf-schema#'>
]>

<rdf:RDF xml:lang="en"
   xmlns="&ais;"
   xmlns:rdf="&rdf;"
   xmlns:rdfs="&rdfs;">

then when I need some URI I write (for example)
  &rdf;type
instead of 
  http://www.w3.org/1999/02/22-rdf-syntax-ns#type

 much more convenient, isn't it ?

  Pierre-Antoine


--- Quid quid Latine dictum sit, altum viditur
    Whatever is said in Latin sounds important.
Received on Tuesday, 18 July 2000 08:58:06 GMT

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