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
RDF::Core::Model(3) User Contributed Perl Documentation RDF::Core::Model(3)

RDF::Core::Model - RDF model

  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"

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

new(%options)

$options is a hash reference, available options are

Storage

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

  • getOptions
  • setOptions(\%options)
  • addStmt($statement)

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

  • removeStmt($statement)

    Remove statement from Model, if it's there.

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

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

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

    Count matching statements.

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

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

  • getObjects($subject, $predicate)

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

  • getContainerObjects($container)

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

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

Ginger Alliance, rdf@gingerall.cz

RDF::Core::Statement, RDF::Core::Storage, RDF::Core::Serializer, RDF::Core::Parser, RDF::Core::Enumerator
2002-06-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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