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

David Megginson david at
Mon Aug 23 20:03:34 BST 1999

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:

(The development of this library was funded by Muze,

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);
    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);
    switch (p.getType()) {
      case Property.ATTRIBUTE:
        System.out.println("Literal: " + p.getName() + '=' + p.getValue());
      case Property.RELATIONSHIP:
        System.out.println("Link: " + p.getName() + '=' + p.getValue());

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.


All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list