As a new user I'm hoping you professionals will be able to guide me to becoming a geneous.

I am working on a project which involves taking an XML document and storing it in a database. However, this database must be a triple store.

My ideas to tackle this are as follows;

Search through the xml doc to create the triples (using a full text search).

Using C++ or java, create tables of triples.

Having researched briefly around this area I am sure there are better ways of doing this.

Will it be best to use something other than java, c++ to create the database?

Does anyone know of algorithms already exist to create triples from xml data?

Does anyone know of any material that would be of use to me?

Also I must be able to query this data from the triple store so advice on where to find indexing for triples would be gratefully received.

Cheers, Dave.