Addressbook in XML/RDF

Status
Not open for further replies.

Reinhold May

Usenet Archive
Joined
Mar 20, 2003
Messages
1
Reaction score
0
Hi,

I'm quite fed up with PIM (Personal Information Management) programmes available on the market today. I don't like the way they organize data (proprietary formats) and the amount of resources (processing load, RAM and HD space usage) they use.

An example is MS Outlook. Outlook is a huge application that takes ages to load and uses quite a lot of RAM and HD space. It stores data in a proprietary file format (.pst) which is almost only usable through Outlook itself (apart from very few programmes that have working import routines).

I want to get away from using applications like these. I want to use open, standardized and portable file formats and simple user interfaces. Standardized formats because I don't want to convert data from one application to another and possibly lose information and need to keep the integrity between the different instances of my data.

My first aim in the development of my PIM environment is storage space for an address book. The data in such an address book should be structured, should be human readable and editable in a text editor and it should---if possible---adhere to a standard.

I've searched through the web to find something in this cathegory that's already a finished product.

I've come across LDAP (Lightweight Directory Access Protocol) which is a standardized application for managing resources (addresses). LDIF is the exchange format for information between LDAP servers. I could imagine to use this exchange format as my personal addressbook.

A quite obvious possibility would be to use a database engine like MySQL, design a database and hold the addresses inside it. But then I have to use a database engine all the time I want to access address information, so it's not a very mobile possibility. Apart from that, the whole thing becomes quite heavy and for addresses only I don't really need a powerful database engine. So that's not really the way I want to go.

Then I read more about XML. I've heard XML before, of course, but I've never understood the ideas behind it. I'm still quite at the beginning but I could imagine that XML could be a solution to my address book requirements, because it's human readable, structured and widely supported by libraries in all major programming languages.

Especially an application of XML called RDF seems to me like an ideal choice for what I want because it's made for handling meta data (which addresses are) and it's even slimmer than XML but uses the XML syntax.

So the next thing I was looking for was: Are there any standards towards an addressbook implementation?

I found the vCard RDF schema which is an RDF version of the standardized vCard business card.

So I thought: If I had a kind of directory structure combined with vCard information, I'd already have my addressbook format.

My questions are:

- Is this---according to your opinion---a reasonable application of RDF/XML?

- Does anyone know a standardized way of expressing a directory structure. Maybe even a RDF implementation?

- I think, I understand most of the ideas behind XML, but one thing keeps me away from using it. XML and RDF make extensive use of URIs (preferably to the w3c site if a schema is a recommendation or even a standard). For example, if you want to refer to a schema in an XML file you have to specify the URI of that schema for a XML parser to use it. Is there a good way of keeping all my information locally (without too much changes for example in schema files) or do I have to have a working internet connection in order to process RDF/XML information?

Any comments are welcome.

Thanks for your patience and maybe answers.

Reinhold
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
On 20 Mar 2003 07:07:17 -0800, (Reinhold May)
wrote:

Especially an application of XML called RDF seems to me like an ideal choice for what I want because it's made for handling meta data

Two quibbles with that:

* RDF is not an XML application.

There is an RDF data model. It exists independently. A convenient and popular way to serialise RDF is in XML, but this isn't the only way.

* RDF is not a metadata protcol.

RDF has a data model. As metadata is a subclass of "data", then it can handle metadata. In no way though is RDF _limited_to_ metadata.

So the next thing I was looking for was: Are there any standards towards an addressbook implementation?

vCard, Dublin Core and FOAF are all useful here.

- Is this---according to your opinion---a reasonable application of RDF/XML?

Yes. It wants sorting out properly and writing down somewhere. Fancy being famous ? :cool:

- Does anyone know a standardized way of expressing a directory structure. Maybe even a RDF implementation?

I think there was some LDAP work going on as part of the FOAF / Swordfish work

Is there a good way
of keeping all my information locally (without too much changes for example in schema files) or do I have to have a working internet connection in order to process RDF/XML information?

You need to use a lot of URI's, but you don't need to resolve them. In almost all of the cases, the whole load of URI's that RDF throws at you can be treated as opaque identifiers.

There are some URI's, such as those to schema, that may need to be either recognised as one that was hard-coded into the application (i.e. a stable version of vCard or DC) and there may be other schemas (such as a company-wide job grade vocabulary) that may need to be refreshed if changed or updated.
 

Peter Flynn

Usenet Archive
Joined
Jan 2, 2000
Messages
1,813
Reaction score
0
Reinhold May wrote:
I'm quite fed up with PIM (Personal Information Management) programmes available on the market today.

You are not alone :)

My first aim in the development of my PIM environment is storage space for an address book.

The Sharp Zaurus 5000 series PDA already stores all its data in XML, including the addressbook.

///Peter
 

Nick Kew

Usenet Archive
Joined
Jul 21, 2000
Messages
292
Reaction score
0
In article <b5ibhl$295q9v$>, one of infinite monkeys
at the keyboard of Peter Flynn wrote:

Pity. Coming on top of Tim Bray's post that he believes XML is "too difficult" for programmers, perhaps some readers might like to indicate if they feel XML software is "too slow" and XML is "too difficult".

Yes, of course it is.

The problem with XML is high buzzword value, which has led to it being adopted very widely and often indiscriminately. That inevitably means a lot of projects where it is - or should be - clearly the wrong tool for the job.

Note that that's not saying anything about XML, only about misapplication of it. But someone who's been exposed to that could tend towards a negative view. Remember when the Journos first discovered the 'net - for a couple of years all they could tell us about was the dangers of online porn!
 

Peter Flynn

Usenet Archive
Joined
Jan 2, 2000
Messages
1,813
Reaction score
0
Peter Flynn wrote:
Reinhold May wrote:

> I'm quite fed up with PIM (Personal Information Management)
> programmes available on the market today.

You are not alone :)

> My first aim in the development of my PIM environment is storage
> space for an address book.

The Sharp Zaurus 5000 series PDA already stores all its data in XML, including the addressbook.

[Poor form to followup your own posts, but...]

Slashdot reported today that the new range of Zauri have dropped XML from the PIM apps because it was too slow. What they meant, of course, was that their data design was poor (all data in attributes, all elements EMPTY) and their parser was not up to it.

Pity. Coming on top of Tim Bray's post that he believes XML is "too difficult" for programmers, perhaps some readers might like to indicate if they feel XML software is "too slow" and XML is "too difficult".

///Peter
 

L. Adrian Jackson

Usenet Archive
Joined
Mar 10, 2003
Messages
134
Reaction score
0
As for as XML being too slow - well one does have to really work with the design in order to optimise an application for speed and even then a given application might be too slow. And why should anyone be surprised at this when there is a near total lack of recent, accurate and independent data as to the performance of the various parsers/processors out there? I was *shocked* when I recently ported an application from Windows(MSXML) to Linux (Xalan-C++) and found it over 60% slower on the transforms!! Luckily it moved to an SMP box so the overall impact wasnt that high.

As for Tim Bray's post....I do agree that the APIs are a pain to use at times but then I could equally say that about Java, C++ etc etc. Theres obvious scope for more abstration in the APIs to make commonly performed tasks easier and quicker to impliment...but thats something that we do with code ourselves everyday. I think the most valid argument to support the "XML is too hard for programmers" was that with the mirad standards, APIs, specifications, interfaces etc. that surround XML it makes "XML" difficult to learn. Since I'm still climbing up the learning curve myself this is something I can definately agree with.

On Sat, 22 Mar 2003 19:16:33 +0000, Peter Flynn
wrote:

Peter Flynn wrote:
> Reinhold May wrote:
>
>> I'm quite fed up with PIM (Personal Information Management)
>> programmes available on the market today.
>
> You are not alone :)
>
>> My first aim in the development of my PIM environment is storage
>> space for an address book.
>
> The Sharp Zaurus 5000 series PDA already stores all its data in XML, ...

Regards

Lee

I need a job!! If you're a London, UK based company
and have a suitable project/position for a VERY
experienced developer, please contact me at
by removing the N0-SP4M-
 

Nick Kew

Usenet Archive
Joined
Jul 21, 2000
Messages
292
Reaction score
0
In article , one of infinite monkeys
at the keyboard of L. Adrian Jackson wrote:

a given application might be too slow. And why should anyone be surprised at this when there is a near total lack of recent, accurate and independent data as to the performance of the various parsers/processors out there?

http://xmlbench.sourceforge.net/results/benchmark/index.html

I was *shocked* when I recently ported
an application from Windows(MSXML) to Linux (Xalan-C++) and found it over 60% slower on the transforms!!

Xerces and Xalan are _big_ - though they _can_ be optimised by pre-loading stuff. When I wrote mod_xml it was very clear that the Gnome libs (libxml2/libxslt) knocked the spots off them performancewise, and the xmlbenchmark results seem to agree. No great surprise if M$XML does so too, especially if you were porting an app that may have been optimised for and with it in the first place.

Talking of which, when I first tried XSLT within Apache, I downloaded an early sablotron-based module. It turned out to be several hundred times slower than running Sablotron from CGI. Decent implementation counts!

I need a job!!

Metoo :-(
 

L. Adrian Jackson

Usenet Archive
Joined
Mar 10, 2003
Messages
134
Reaction score
0
On Sun, 23 Mar 2003 11:42:33 +0000, (Nick
Kew) wrote:

In article , one of infinite monkeys
at the keyboard of L. Adrian Jackson wrote:

> a given application might be too slow. And why should anyone be
> surprised at this when there is a near total lack of recent, accurate
> and independent data as to the performance of the various
> parsers/processors out there?

http://xmlbench.sourceforge.net/results/benchmark/index.html

Nice set of benchmarks (although the write-up leaves something to be desired ) and only 1 month old. Woot!!! ;) . Thankyou very much for pointing that out Nick.

Metoo :-(

*sigh*
Regards

Lee

I need a job!! If you're a London, UK based company
and have a suitable project/position for a VERY
experienced developer, please contact me at
by removing the N0-SP4M-
 

Dave (59)

Usenet Archive
Joined
Jan 28, 2003
Messages
8
Reaction score
0
You guys make some great points. There are a few articles on XML.com that you could check out which follow up to Bray's argument (that is if you haven't seen them already!)

Check out: http://www.xml.com/pub/a/2003/03/19/deviant.html and for all those people who are from the HTML background and just can't understand why xml is a decent option (imho at least) try this article:

http://www.xml.com/pub/a/2003/01/22/deviant.html
 

Cameron Laird

Usenet Archive
Joined
Feb 12, 2001
Messages
903
Reaction score
0
Peter Flynn wrote:
L. Adrian Jackson wrote:
> I was *shocked* when I recently ported
> an application from Windows(MSXML)

C++, I am told.

> to Linux (Xalan-C++)

Java, I believe.

> and found it over 60% slower on the transforms!!

...
.
.
.
No.

I think Mr. Flynn is saying, "Java-coded applications are inherently slow".

This is false. While I'm no Java fan--not at all--the
facts of this case belie the claim. Xalan exists in
implementations coded in both C++ and Java, if I under- stand correctly, and the latter is frequently *faster* than the former.
 

The Ghost In The Machine

Usenet Archive
Joined
Aug 25, 2000
Messages
85
Reaction score
0
In comp.lang.java.advocacy, Cameron Laird

wrote
on Tue, 08 Apr 2003 15:44:26 -0000
:
In article ,
Peter Flynn wrote:
>L. Adrian Jackson wrote:
>> I was *shocked* when I recently ported
>> an application from Windows(MSXML)
>
>C++, I am told.
>
>> to Linux (Xalan-C++)
>
>Java, I believe.
>
...

I suspect that there are a fair number of issues here, one of which is startup costs. Without a good benchmark, I for one can't tell. :)
 

asj

Usenet Archive
Joined
Mar 12, 2002
Messages
63
Reaction score
0
Cameron Laird wrote:
.
No.

I think Mr. Flynn is saying, "Java-coded applications are inherently slow".

This is false. While I'm no Java fan--not at all--the
facts of this case belie the claim. Xalan exists in
implementations coded in both C++ and Java, if I under- stand correctly, and the latter is frequently *faster* than the former.
--

yep, whine whine whine...in the meantime, i'm making cool money doing j2ee (and now j2me)...'nuff said. our webapp (servlet/jsp) implementations of old perl scripts run faster, not to mention they were immeasurably more maintainable and robust.
 
Status
Not open for further replies.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,244
Members
248,133
Latest member
DujonT

Latest Threads

Top