Comments: I need a namespaces.rdf file

Well, I've never written any RDF documents before but this could be a basis for you:

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!-- In XHTML we have a problem:
     It uses the same namespace for
     different versions:
     XHTML 1.0 has the same namespace as
     XHTML 1.1
-->
<ns rdf:about="http://www.w3.org/1999/xhtml">
    <name>XHTML</name>
    <fullName>eXtensible HyperText Markup Language</fullName>
    <commonNames>
        <commonName>Hypertext Markup Language</commonName>
    </commonNames>
    <definitions>
        <!-- DTD example:
             <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
             html -> type
             PUBLIC -> vis
             "-//W3C//DTD XHTML 1.0 Strict//EN" --> identifier
        <def
            def-type="dtd"
            type="html"
            vis="PUBLIC"
            identifier="-//W3C//DTD XHTML 1.0 Strict//EN"
            rdf:resource="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
        />
        <def
            def-type="dtd"
            type="html"
            vis="PUBLIC"
            identifier="-//W3C//DTD XHTML 1.0 Transitional//EN"
            rdf:resource="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
        />
        <def
            def-type="dtd"
            type="html"
            vis="PUBLIC"
            identifier="-//W3C//DTD XHTML 1.0 Frameset//EN"
            rdf:resource="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
        />
        <def
            def-type="dtd"
            type="html"
            vis="PUBLIC"
            identifier="-//W3C//DTD XHTML 1.0 Basic//EN"
            rdf:resource="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"
        />
        <def
            def-type="dtd"
            type="html"
            vis="PUBLIC"
            identifier="-//W3C//DTD XHTML 1.1//EN"
            rdf:resource="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
        />
    </definitions>
    <commonPrefixes>
        <commonPrefix>xhtml</commonPrefix>
        <commonPrefix>html</commonPrefix>
        <commonPrefix>h</commonPrefix>
        <commonPrefix>xht</commonPrefix>
    </commonPrefixes>
    <specs>
        <!-- too lazy to add the rest - imagine it was there ;) -->
        <spec rdf:resource="http://www.w3.org/TR/xhtml1"/>
    </specs>
</ns>
</rdf:RDF>

(From Alex: I'll have to think about this. It's a bit too centered on (X)HTML. XUL, XBL, RDF, etc. aren't included at all. Also, you can give it a default namespace :) )

Posted by Christian Juner at May 16, 2005 1:37 AM