Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RDFStore::Serializer::UserMContributed Perl DocRDFStore::Serializer::RDFXML(3)

NAME
       RDFStore::Serilizer::RDFXML - Serialise a model/graph to	W3C RDF/XML
       syntax

SYNOPSIS
	       use RDFStore::Serializer::RDFXML;

	       my $model= new RDFStore::Model();
	       $model->add($statement);
	       $model->add($statement1);
	       $model->add($statement2);

	       my $serializer =	new RDFStore::Serializer::RDFXML;

	       my $rdf_strawman	= $serializer->serialize( $model ); # serialise	model to a string in-memory
	       my $rdf_strawman	= $serializer->serialize( $model, undef, {}, $base ); #	using xml:base
	       my $rdf_strawman	= $serializer->serialize( $model, undef, { 'http://mynamespace.org/blaaa/' => blaa } );	# using	my blaa	namespace

	       $serializer->serialize( $model, *STREAM ); # serialise model to a given descriptor (stream)

DESCRIPTION
       An RDFStore::Model serializer to	W3C RDF/XML syntax - see
       http://www.w3.org/TR/rdf-syntax-grammar/

CONSTRUCTORS
       The following methods construct RDFStore::Serializer::RDFXML :

       new ()
	    Create an new RDFStore::Serializer object to serialize and RDFStore::Model.

METHODS
       write ( MODEL [ , FILEHANDLE_REF, NAMESPACES, BASE ] )
	    Write out the given	MODEL to FILEHANDLE_REF	(or in-memory string if	not passed) using a given list of NAMESPACES and xml:base BASE if passed. The NAMESPACES hash ref contains a list of namespace values (URI refs) and prefix names - see	RDFStore::Vocabulary::Generator(3). By default the output is returned from the method into a string otheriwse a	valid (and opened) FILEHANLDE_REF can be passed, which will be being printed to.

       serialize ( MODEL [ , FILEHANDLE_REF, NAMESPACES, BASE ]	)
	    Same as write method above.

SEE ALSO
	RDFStore::Model(3) RDFStore::Serializer(3)

	http://www.w3.org/TR/rdf-syntax-grammar/

	http://www.w3.org/TR/rdf-schema/

AUTHOR
	       Alberto Reggiori	<areggiori@webweaving.org>

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 243:
	   '=item' outside of any '=over'

       Around line 247:
	   You forgot a	'=back'	before '=head1'

       Around line 249:
	   '=item' outside of any '=over'

       Around line 257:
	   You forgot a	'=back'	before '=head1'

perl v5.32.0			  2006-06-19   RDFStore::Serializer::RDFXML(3)

NAME | SYNOPSIS | DESCRIPTION | CONSTRUCTORS | METHODS | SEE ALSO | AUTHOR | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=RDFStore::Serializer::RDFXML&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help