May 15, 2005

I need a namespaces.rdf file

I've flamed out on the last two blog posts I've made. Each time someone came up with a better idea. So this time, I'm just going to outright ask for help, and it won't need any fancy engineering.

Just some basic RDF+XML.

Specifically, I'm looking for a RDF file organizing the most basic data we have about XML languages: their namespace URI's, their most common prefixes, URI's of the specifications which define them, DTD locations, XML schema locations.

I really don't care if the list is incomplete. I just need something I can experiment with.

Posted by WeirdAl at May 15, 2005 8:01 PM
Comments

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