XML Literals in RDFa
Kjetil Kjernsmo
kjetil at kjernsmo.net
Sun Jan 18 20:51:48 CET 2009
On Sunday 18 January 2009, Toby A Inkster wrote:
> Oh, no, no - you don't want to be doing that. It's wasteful.
Yup!
> You should be able to use callback functions to achieve what you
> want. How to do this depends on how you're using RDF::RDFa::Parser -
> there are effectively two ways of using the module:
>
> 1. Set callback functions for handling triples, and deal with them
> one-by-one.
> 2. Parse the whole file, and then call ->graph to get back a complete
> graph of triples.
>
> If you're using the first technique, then you should find that $_[1]
> passed to your callback functions is an XML::LibXML::Element
> representing the current element being parsed. That should be all you
> need to know.
Ah, yeah, that's obviously a good idea! I'll try this out.
Cheers,
Kjetil
--
Kjetil Kjernsmo
Programmer / Astrophysicist / Ski-orienteer / Orienteer / Mountaineer
kjetil at kjernsmo.net
Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC
More information about the Dev
mailing list