W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2004

Generated RDF conformant with good practise?

From: Howard Katz <howardk@fatdog.com>
Date: Wed, 15 Sep 2004 16:56:16 -0700
To: <www-rdf-interest@w3.org>

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):

	<book year="1994">
		<title>TCP/IP --- tcp --- Illustrated</title>
		<price> 65.95</price>

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/"
    <rdf:Description rdf:about="http://www.book-stuff.com/bib">
                <dc:title>TCP/IP Illustrated</dc:title>

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,
Received on Wednesday, 15 September 2004 23:54:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:53 UTC