| CogBase documentation | view source | Contained in the CogBase distribution. |
CogBase - A CogBase Implementation in Perl
This Database implementation is in its infancy. Just barely a proof of concept so far. It would be ridiculous of you to use it for anything serious, yet.
use CogBase;
my $conn = CogBase->connect('http://cog.example.com');
my $schema = $conn->node('Schema');
$schema->value(<<'...');
+: person
<: Node
age: Number
given_name: String
family_name: String
...
$conn->store($schema);
my $person = $conn->node('person');
$person->given_name('Ingy');
$person->family_name('dot Net');
$person->age(42);
$conn->store($person);
my @results = $conn->query('!person');
my @nodes = $conn->fetch(@results);
for my $node (@nodes) {
print "%s %s is %d years old\n",
$node->given_name,
$node->family_name,
$node->age;
}
$conn->disconnect;
CogBase is a Object Database Management System.
Some interesting characteristics of its design are:
Ingy döt Net, <ingy at cpan.org>
Please report any bugs or feature requests to
bug-cogbase at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CogBase.
I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc CogBase
You can also look for information at:
Unix, HTTP
Copyright 2006 Ingy döt Net, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| CogBase documentation | view source | Contained in the CogBase distribution. |