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

Command: man perldoc info search(apropos)  


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



NAME
       RDF::Core::Model - RDF model

SYNOPSIS
         my $storage = new RDF::Core::Storage::Memory;
         my $model = new RDF::Core::Model (Storage => $storage);
         my $subject = new RDF::Core::Resource('http://www.gingerall.cz/employees/Jim');
         my $predicate = $subject->new('http://www.gingerall.cz/rdfns#name');
         my $object = new RDF::Core::Literal('Jim Brown');
         my $statement = new RDF::Core::Statement($subject, $predicate, $object);

         $model->addStmt($statement);

         print "Model contains ".$model->countStmts."statement(s).\n"

DESCRIPTION
       Model provides interface to store RDF statements, ask about them and retrieve them back.

   Interface
       o   new(%options)

           $options is a hash reference, available options are

           o   Storage

               a reference to a RDF::Core::Storage implementation

       o   getOptions

       o   setOptions(\%options)

       o   addStmt($statement)

           Add RDF::Core::Statement instance to Model, unless it already exists there.

       o   removeStmt($statement)

           Remove statement from Model, if it's there.

       o   existsStmt($subject,$predicate,$object)

           Check if statement exists, that matches given mask. Parameters can be undefined, every
           value matches undefined parameter.

       o   countStmts($subject,$predicate,$object)

           Count matching statements.

       o   getStmts($subject,$predicate,$object)

           Retrieve matching statements. Returns RDF::Core::Enumerator object.

       o   getObjects($subject, $predicate)

           Return a reference to an array keeping all objects, that are values of specified
           $predicate for given $subject.

       o   getContainerObjects($container)

           Return a reference to an array keeping all objects, that are members of the
           $container. Objects are sorted.

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

AUTHOR
       Ginger Alliance, rdf AT gingerall.cz

SEE ALSO
       RDF::Core::Statement, RDF::Core::Storage, RDF::Core::Serializer, RDF::Core::Parser,
       RDF::Core::Enumerator



perl v5.10.0                                2002-06-12                      RDF::Core::Model(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:37 @38.107.179.237 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!