GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RDF::CORE::NODEFACTORY (3)

.ds Aq ’

NAME

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

CONTENTS

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@gingerall.cz

SEE ALSO

URI, RDF::Core::Resource, RDF::Core::Literal
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 RDF::CORE::NODEFACTORY (3) 2004-07-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.