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

ANN: DATAX 1.0beta (DATA Exchange in XML) Library

  • From: David Megginson <david@m...>
  • To: XMLDev list <xml-dev@i...>
  • Date: Mon, 23 Aug 1999 14:05:15 -0400 (EDT)

beta data
As announced Friday at the XML Developers' Conference in Montreal,
there is now a beta version of the DATAX library in Java available at
the following location:

  http://www.megginson.com/DATAX/

(The development of this library was funded by Muze,
http://www.muze.com/)

DATAX is a very simple set of interfaces for representing entities
(resources/objects) and their attributes (properties) and
relationships (references/links).  The library includes a default,
in-memory implementation, together with very efficient classes for
writing to and reading from RDF documents.

DATAX and RDF massively simplify the task of exchanging information
about things and their properties and relationships in XML; importing
an RDF document, for example, requires only one line of code:

  EntitySet entities = new RDFReader().read("mydata.xml");

You can then use the standard Java2 collections interface to iterate
through the entities (objects) read:

  Iterator it = entities.iterator();
  while (it.hasNext()) {
    Entity e = (Entity)it.next();
    System.out.println("The entity's identifier is " + e.getId());
    System.out.println("The entity's class is " + e.getClassId());
  }

It's equally simple to iterate through an entity's properties:

  Iterator it2 = e.iterator();
  while (it2.hasNext()) {
    Property p = (Property)it2.next();
    switch (p.getType()) {
      case Property.ATTRIBUTE:
        System.out.println("Literal: " + p.getName() + '=' + p.getValue());
        break;
      case Property.RELATIONSHIP:
        System.out.println("Link: " + p.getName() + '=' + p.getValue());
        break;
    }
  }

There are several query methods available as well.

The beta version includes source code but does not yet have an
explicitly open source license -- in particular, you have to agree
that any bug reports you submit can be merged back into the code base.
There will be a proper open-source license for the 1.0 final release
this fall.


Enjoy!


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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 (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe 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.