RDF::Core::NodeFactory(3pm) - phpMan

Command: man perldoc info search(apropos)  


RDF::Core::NodeFactory(3pm)    User Contributed Perl Documentation    RDF::Core::NodeFactory(3pm)



NAME
       RDF::Core::NodeFactory - produces literals and resources, generates labels for anonymous
       resources

SYNOPSIS
         require RDF::Core::NodeFactory;
         my $factory = new RDF::Core::NodeFactory(BaseURI=>'http://www.foo.org/');
         my $resource = $factory->newResource('http://www.foo.org/pages');

         #get the same uri:
         my $absolutizedResource = $factory->newResource('/pages');

         #anonymous resource
         my $generatedResource = $factory->newResource;

DESCRIPTION
       NodeFactory generates RDF graph nodes - literals and resources. The resources' URIs are
       expanded against base uri (BaseURI option) to their absolute forms using URI module.
       NodeFactory can generate unique 'anonymous' resources.

   Interface
       o   new(%options)

           Available options are:

           o   BaseURI

               When NodeFactory generates a resource from relative URI, BaseURI is used to obtain
               absolute URI. BaseURI must be absolute. Default value is 'uri:'.

           o   GenPrefix, GenCounter

               Is used to generate bNode label (an anonymous resource). Default values are '_:a'
               for GenPrefix and 0 for GenCounter. Resulting label is concatenation of GenPrefix
               and GenCounter.

       o   getOptions

       o   setOptions(\%options)

       o   newLiteral($value)

       o   newResource($namespace, $localValue)

       o   newResource($uri)

       o   newResource

LICENSE
       This package is subject to the MPL (or the GPL alternatively).

AUTHOR
       Ginger Alliance, rdf AT gingerall.cz

SEE ALSO
       URI, RDF::Core::Resource, RDF::Core::Literal



perl v5.10.0                                2004-07-28                RDF::Core::NodeFactory(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-25 01:43 @38.107.179.237 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!