- From: <tim.glover@bt.com>
- Date: Fri, 2 Jun 2006 08:54:16 +0100
- To: <danbri@danbri.org>, <cff@di.uevora.pt>
- Cc: <chris.dollin@hp.com>, <semantic-web@w3.org>
I believe SWI prolog has RDF and OWL parsers built in, together with RDF and OWL reasoners. Tim. -----Original Message----- From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On Behalf Of Dan Brickley Sent: 01 June 2006 15:41 To: Cl?udio Fernandes Cc: Chris Dollin; semantic-web@w3.org Subject: Re: xlst and rdf/owl * Cl?udio Fernandes <cff@di.uevora.pt> [2006-06-01 15:31+0100] > > On Thu, 2006-06-01 at 15:05 +0100, Chris Dollin wrote: > > On Thursday 01 June 2006 14:36, you wrote: > > > > > I've been working with xslt lately, great tool. But the question is: can > > > I use it to parse rdf/owl? I tried to, but all I get is parsing errors > > > from '<rdf:' or '<owl:' tags. > > > > You /can/ use XSLT to parse RDF/OWL. But if you want to process the > > RDF/OWL /as/ RDF or OWL, is XSLT the right tool for the job? > > > > Actually I want to process rdf/owl to generate Prolog predicates, which > means I don't want to generate another tree, and I need some formatting > capacities. > > Right now I'm doing it with the expat lib. I parse the document and > forward a big term to Prolog, which will generate the desired .pl. > However, it seems that if I could do this with xslt, my life would be > easier :) OK, look around for one of the XSLT parsers that generates 'n-triples' or N3 format. These are prolog-like. It can be done... Dan
Received on Friday, 2 June 2006 07:54:21 UTC