Scroll to navigation

OpenGuides::RDF(3pm) User Contributed Perl Documentation OpenGuides::RDF(3pm)


OpenGuides::RDF - An OpenGuides plugin to output RDF/XML.


Does all the RDF stuff for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for independent installation. This documentation is probably only useful to OpenGuides developers.


    use Wiki::Toolkit;
    use OpenGuides::Config;
    use OpenGuides::RDF;
    my $wiki = Wiki::Toolkit->new( ... );
    my $config = OpenGuides::Config->new( file => "wiki.conf" );
    my $rdf_writer = OpenGuides::RDF->new( wiki   => $wiki,
                                         config => $config );
    # RDF version of a node.
    print "Content-Type: application/rdf+xml\n\n";
    print $rdf_writer->emit_rdfxml( node => "Masala Zone, N1 0NU" );


    my $rdf_writer = OpenGuides::RDF->new( wiki   => $wiki,
                                           config => $config );

"wiki" must be a Wiki::Toolkit object and "config" must be an OpenGuides::Config object. Both arguments mandatory.

    $wiki->write_node( "Masala Zone, N1 0NU",
                     "Quick and tasty Indian food",
                     { comment  => "New page",
                       username => "Kake",
                       locale   => "Islington" }
    print "Content-Type: application/rdf+xml\n\n";
    print $rdf_writer->emit_rdfxml( node => "Masala Zone, N1 0NU" );

Note: Some of the fields emitted by the RDF/XML generator are taken from the node metadata. The form of this metadata is not mandated by Wiki::Toolkit. Your wiki application should make sure to store some or all of the following metadata when calling "write_node":



The OpenGuides Project (


Copyright (C) 2003-2013 The OpenGuides Project. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Code in this module written by Kake Pugh and Earle Martin. Dan Brickley, Matt Biddulph and other inhabitants of #swig on gave useful feedback and advice.

2021-01-30 perl v5.32.0