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

Re: XML Redux

  • From: Danny Ayers <danny.ayers@gmail.com>
  • To: Dave Pawson <davep@dpawson.co.uk>
  • Date: Wed, 16 Feb 2011 15:55:52 +0100

Re:  XML Redux
Not visited xml-dev for a long time, quite funny this is a prominent
thread - over a long time span, build it up then knock it down...

If the aim is a simple syntax for arbitrary data, you could do worse
than Turtle [1], e.g.

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#>.

<http://www.w3.org/People/EM/contact#me>
  a contact:Person;
  contact:fullName "Eric Miller";
  contact:mailbox <mailto:em@w3.org>;
  contact:personalTitle "Dr.".

(lifted from [2], tweaked rdf:type to its abbreviated form 'a')

That doesn't look simple, but that's namespace prefixes for you. If
you don't care about data reuse outside of your own domain, you could
drop it down to:

@prefix : <http://example.org/dummy> .

:me a :Person;
  :fullName "Eric Miller";
  :mailbox <mailto:em@w3.org>;
  :personalTitle "Dr.".

For XML-shaped data in general, various mappings could be used, e.g. :

<parent attribute="value"><child>content</child></parent>

=>

[
   a :parent;
   :attribute "value" ;
   :child
      [
         :text "content" .
      ] .
]

Ok, I'm posting partly tongue-in-cheek, after all the travails of
RDF/XML. But seriously, if you want to put arbitrary data on the Web,
this is a good way to go :)

Cheers,
Danny.

[1] http://www.w3.org/TeamSubmission/turtle/
[2] http://www.w3.org/2007/02/turtle/primer/


-- 
http://danny.ayers.name


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.