[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RDF : Headless Triples syntax


rdf d
Ok, so I'm typing this up first thing in the morning so I can forget about
it and get some work done, so I've not played with it properly, but just a
thought I had in the night (thanks to a thunderstorm) that might be useful
in the quest-to-be for an easier RDF/XML. This really is simple. Whether or
not it might work is another matter.

The apparent ugliness of RDF/XML is due in large part to the mismatch
between the graph model of RDF and the tree model of XML. We want to be able
to use RDF to add metadata to an arbitrary XML document. But most of the
time the metadata for a document won't be any glorious graph stuff, just a
set of set of statements that have the current document as the subject, and
simple resources/literals as the object (no bnodes, no nesting). Why not
leverage this? - it could be an 80/20 solution : lop the heads of all the
triples that refer to the current document; drop nesting/graphs.

So here's one way it could perhaps be implemented:

RDF namespaces given inside the document's declarations. Any markup within
an <rdf:D></rdf:D> block is taken to be RDF. There can be more than one
<rdf:D> element. The subject of all statements within <rdf:D> elements will
be the containing XML document.

Here we go as a block -

<rdf:D>
	<dc:creator rdf:resource="http://www.isacat.net/misc/biog.rdf" />
	<dc:title>A test</dc:title>
</rdf:D>

and as separate statements -

<rdf:D><dc:creator rdf:resource="http://www.isacat.net/misc/biog.rdf"
/></rdf:D>
<p>some other stuff</p>
<rdf:D><dc:title>A test</dc:title></rdf:D>

Where richer metadata is needed, the current RDF/XML syntax can be used,
linked/embedded as appropriate.

I have no idea what issues there may be relating to embedding <rdf:D> in
(X)HTML, apart from it not being in the dtd...

An alternative interpretation could be that the subject of the statements is
the enclosing XML element, though I'm guessing that there may be
complications with that.

Cheers,
Danny.

PS. I've posted yesterday's procrastinatory effort "RDF in 500 Words (not
containing these)" at:
http://www.citnames.com/2002/11/rdf500.htm
(I really must get some *proper* work done!)


[1] http://weblog.burningbird.net/
[2] http://www.textuality.com/xml/RPV.html

-----------
Danny Ayers

Idea maps for the Semantic Web
http://ideagraph.net

<stuff> http://www.isacat.net </stuff>

Semantic Web Log :
http://www.citnames.com/blog



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.