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

Re: RDF syntax


rdf atom primer
On Sun, 02 Nov 2003 21:00:52 +0200
Toni Uusitalo <toni.uusitalo@l...> wrote:

> I read RDF primer stuff, at least first part of warning commonly
> printed on instruction manuals: "you must READ and UNDERSTAND the
> instruction manual" is now true in my case when it comes to RDF ;)
> 
> But I was shocked when I started browsing through RDF syntax spec 
> http://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20030905/

That's the doc I edit about RDF/XML.

> and came to
> 2.5 Property Attributes
> where it says:
> "When a property element's content is string literal, it may be
> possible to use it as an XML attribute on the containing node element.
> This can be done for multiple properties on the same node element only
> if the property element name is not repeated "...

Yes, I wrote that too.

> compared to section 2.4 Empty Property Elements' Example 5
> what's gained with this "abbreviation" but maybe that "the most
> horrible markup usage award" or something?!

"horrible" is a form of emotional response to XML rather
than a technical critcism.   I find qnames used in attribute values
a disaster, but it seems "good" XML style for several XML syntaxes.

I scare-quote "good" also since that is also a value-laden measure of
XML style.

> I'm not saying RDF hasn't got a future since I'm not really 
> using/understanding it fully yet but isn't the syntax just too
> liberal?

Yes, the RDF/XML syntax has too many abbreviated forms.
So the obvious answer is to not use them all.   

Personally I'd say there is no need to use property
attributes - stick with just property elements form.  It's got other
advantages too, such as being able to write down human languages
(xml:lang) and datatypes (rdf:datatype) on the property elements.

Dave



  • References:
    • RDF syntax
      • From: Toni Uusitalo <toni.uusitalo@l...>

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.