Generated RDF conformant with good practise?

Hi all,

I'd appreciate some feedback on something. I'm writing an tutorial-type
article that shows how to use XQuery to transform a standard XML datafile
(not RDF/XML) into RDF. The main focus of the article is on XQuery, but I
need to make sure that my RDF is also correct and not atypical. Here's a
snippet of the data I'm starting with (the "bib.xml" file that ships with
the XQuery specification):

<bib>
	...
	<book year="1994">
		<title>TCP/IP --- tcp --- Illustrated</title>
		<author><last>Stevens</last><first>W.</first></author>
		<publisher>Addison-Wesley</publisher>
		<price> 65.95</price>
	</book>
	...
</bib>

My XQuery script takes this particular book and programmatically produces
the following RDF/XML:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:bibterm="http://www.book-stuff.com/terms/"
         xmlns:dc="http://purl.org/dc/elements/1.0/"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description rdf:about="http://www.book-stuff.com/bib">
        <bibterm:book>
            <rdf:Description>
                <bibterm:year>1994</bibterm:year>
                <dc:title>TCP/IP Illustrated</dc:title>
                <bibterm:author>
                    <rdf:Description>
                        <bibterm:last>Stevens</bibterm:last>
                        <bibterm:first>W.</bibterm:first>
                    </rdf:Description>
                </bibterm:author>
            </rdf:Description>
        </bibterm:book>
    </rdf:Description>
</rdf:RDF>

Here's an N-Triples view of the same information:

<http://www.book-stuff.com/bib> <http://www.book-stuff.com/terms/book>
_:jARP438894 .
_:jARP438894 <http://www.book-stuff.com/terms/year> "1994" .
_:jARP438894 <http://purl.org/dc/elements/1.0/title> "TCP/IP Illustrated" .
_:jARP438894 <http://www.book-stuff.com/terms/author>  _:jARP438895 .
_:jARP438895 <http://www.book-stuff.com/terms/last> "Stevens" .
_:jARP438895 <http://www.book-stuff.com/terms/first> "W." .

My basic question, given that I'm still fairly new to RDF, is: does this
look like reasonably valid RDF to people, valid in the sense of not seeming
too odd or unusual in some way, as well as being true to the intent of the
original data? I basically want to make sure I'm not producing RDF that's at
odds with what's considered good practise.

TIA for any thoughts,
Howard

Received on Wednesday, 15 September 2004 23:54:57 UTC