Re: Semantic Web: RDF Module For XHTML m12n

Firstly I would like to thank everybody for the great amount of feedback I
have recieved on and off list for this module, all comments and feedback are
highly appreciated.
IMPORTANT: Secondly, I would like to point out that the module is actualy
incorrect - oops! I have issued a replacement version 1.1 [1], at
http://xhtml.waptechinfo.com/modules/rdf/rdf.mod
The old incorrect version is still available at
http://xhtml.waptechinfo.com/modules/rdf/rdf10.mod I apologize most humbly
for any inconvenience this causes, but I hope you'll agree that the changes
are worth the effort (if not for the fact that it wouldn't validate!).

Changes from 1.0 to 1.1:
1. rdf:about is now #IMPLIED
2. Changed content mix for rdf:RDF so now only one instance can be added to
the head, and corrected a small syntactic error (forgot the "" arond the
entity contents...).
3. Changed content mix for rdf:description so that you can now use it
anywhere in an XHTML document: hooray!

I can't believe this is the first time anyone has even attempted this, but
heigh-ho. Lets hope this encourages others to start coming up with stuff for
the Semantic Web.

Of course now we have to wait until XHTML 1.1 comes out to validate it, but
never mind: it'll be worth the wait.

[1] The new module in all it's glory:-

<!-- XHTML Modularization RDF Simple DC Module 1.1 -->
<!-- file: rdf.mod

     This is a simple RDF Dublin Core module for XHTML Modularization,
     adding simple RDF capabilities to any DTD that references it.

     Copyright 2000 Sean B. Palmer, WAP Tech Info, sean@waptechinfo.com

     This DTD module is identified by the PUBLIC and SYSTEM identifiers:

     PUBLIC "-//WAP Tech Info//ELEMENTS XHTML RDF-Simple-DC 1.1//EN"
     SYSTEM "http://xhtml.waptechinfo.com/modules/rdf/rdf.mod"
 ....................................................................... -->

<!-- Bring in the QName file for rdf, giving the rdf: prefix for the
namespace -->
<!ENTITY % rdf-qname.mod SYSTEM "rdf-qname.mod" >
%rdf-qname.mod;
<!-- Bring in the QName file for dc, giving the dc: prefix for the
namespace -->
<!ENTITY % dc-qname.mod SYSTEM "dc-qname.mod" >
%dc-qname.mod;

<!ENTITY % rdf.RDF.qname  "%rdf.pfx;RDF" >
<!ENTITY % rdf.RDF.content  "( %rdf.description.qname; )" >
<!ELEMENT %rdf.RDF.qname;  %rdf.RDF.content; >

<!ENTITY % rdf.description.qname  "%RDF.pfx;description" >
<!ENTITY % rdf.description.content  "EMPTY" >
<!ELEMENT %rdf.description.qname  %rdf.description.content; >
<!ATTLIST %rdf.description.qname;
%rdf.description.about.qname;        %URI.datatype;           #IMPLIED

%dc.description.creator.qname;       CDATA                    #IMPLIED
%dc.description.date.qname;          %Datetime.datatype;      #IMPLIED
%dc.description.description.qname;   CDATA                    #IMPLIED
%dc.description.format.qname;        %ContentType.datatype;   #IMPLIED
%dc.description.language.qname;      %LanguageCode.datatype;  #IMPLIED
%dc.description.publisher.qname;     CDATA                    #IMPLIED
%dc.description.relation.qname;      %URI.datatype;           #IMPLIED
%dc.description.rights.qname;        CDATA                    #IMPLIED
%dc.description.subject.qname;       CDATA                    #IMPLIED
%dc.description.title.qname;         CDATA                    #IMPLIED
>

<!-- Add rdf:RDF to the head *once* only -->
<!ENTITY % HeadOpts.mix
     "( %script.qname; | %style.qname; | %meta.qname;
       | %link.qname; | %object.qname; )* | ( %rdf.RDF.qname; )? )" >

<!-- Add rdf:description capabilites to every point in an XHTML document -->
<!ENTITY % Misc.extra
         "( | %rdf.description.qname; )*" >

<!-- End of XHTML Modularization RDF Simple DC Module 1.1 -->

Kindest Regards,
Sean B. Palmer
----------------------------------------------------
The Semantic Web: A Resource - http://xhtml.waptechinfo.com/swr/
WAP Tech Info - http://www.waptechinfo.com/
Mysterylights.com - http://www.mysterylights.com/
----------------------------------------------------
"The Internet; is that thing still around?" - Homer J. Simpson

Received on Wednesday, 8 November 2000 18:50:48 UTC