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

Re: RDF, again

  • From: Paul Prescod <paul@p...>
  • To: "'xml-dev@i...'" <xml-dev@i...>
  • Date: Tue, 23 Nov 1999 14:01:00 +0100

s expression xml rdf
> > Without the minimization hacks, the syntax is verbose and hard to
> > read.
> 
> That's inevitable for any kind of object exchange, though -- it's the
> nature of the normalized object-oriented information.
> 
> Here's some mostly non-minimized RDF (using only the rdf:type as class
> name):

The thing I find confusing about the RDF syntax is that the element type
name can be either an RDF type name or an RDF property. XML makes no
distinction and that's why I think that it is difficult to use for
object oriented interchange. Your example doesn't run into that problem
really because it only goes one level deep. But what does the RDF for
this CSS-style object representation look like:

person{
	name: person-name{ first: "Paul"; last: "Prescod"};
	address: snail-mail-address{
		street: street-address{
			number: 5936; 
			street: "Lovers Lane"
		city: city( #!Dallas );
		state: state( #!Texas )};
	siblings: #sibling1 #sibling2 #sibling3}

(curly braces for structures, parentheses for primitive types,
concatenation for lists, semicolons for property separators)

<ramble>
Note also that common XML usage puts datatypes in the schema or
elsewhere. To recognize an integer as such you need the schema or some
other external knowledge. Some DTDs have <int> elements but that's so
ugly that it hasn't really "caught on." The XML world is very
inconsistent in its thought about the appropriateness of dependence on
the schema. I think that that dependence is slowly creeping back into
vogue.

Speaking on behalf of the devil, I'd say that in one week we could
define (or just find) an S-expression-like language with none of these
weaknesses and in less time we could write a parser for it. It could
have "XML element" as a primary data type for embedded XML and could
also be embedded IN XML.

I am enough of a language aficionado to feel that there is virtue in
having languages that are immediately interpretable. Languages where the
semantics "fall out" visually. But I know you are a Perl programmer so I
won't ask you to agree.

The fashionable thing is to say that these are problems that can be
hidden "behind a good GUI" but here we are, (more than?) twenty years
into the Age of Emacs and the best IDEs are still designed to help us
type text faster. Unless we are going to standardize graphical
representations of RDF graphs, and send those representations through
email, and embed RDF renderers and editors in every device, people will
still look at the text.
</ramble>

-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
It's such a 
Bore
Being always
Poor
LANGSTON HUGHES
http://www.northshore.net/homepages/hope/engHughes.html



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.