NAME
Triples - Stores triples as hashes keyed by subject.
SYNOPSIS
use Triples;
my $t = Triples->new();
$t->store_triple($subject,$predicate,$object);
DESCRIPTION
This module provides a data structure which stores triples. The structure is a hash keyed by the $subject:
$subject = { obj => [], predicate => [] }
- new()
-
Returns an instance of the class.
- store_triple($subject,$prediate,$object)
-
Stores $subject, $predicate and $object in the triples data structure. Returns a refenece the data structure.
AUTHOR
Iestyn Pryce, <imp25@cam.ac.uk>
ACKNOWLEDGEMENTS
I'd like to thank the Ensemble project (www.ensemble.ac.uk) for funding me to work on this project in the summer of 2009.
COPYRIGHT AND LICENSE
Copyright (C) 2009 Iestyn Pryce <imp25@cam.ac.uk>
This library is free software; you can redistribute it and/or modify it under the terms of the BSD license.