ODO::Graph - Base methods for a graph object
use ODO::Graph::Simple;
# Create an ODO::Graph::Simple object backed by memory
my $graph = ODO::Graph::Simple->Memory();
Base graph object that defines the graph interface.
Constructor.
Autoload.
- add( $statement )
- add( \@statements )
- add( @statements )
-
Add statement(s).
- remove( $statement )
- remove( \@statements )
- remove( @statements )
-
Remove statement(s).
- size( )
-
Returns the number of statements in the graph.
- query( $query )
-
Query the graph based on the query parameter which must be a subclass of ODO::Query.
- clear( )
-
Remove all statements from the graph.
- contains( $query )
-
Returns a boolean value of the graph contains results that match the query.
- storage( )
-
Returns the underlying graph storage object. See the ODO::Graph::Storage manpage for more information.
- storage_package( )
-
Returns the name of the package for the underlying graph storage object.
See the ODO::Graph::Storage manpage for more information.
the ODO::Graph::Storage manpage, the ODO::Statement manpage, the ODO::Query manpage
Copyright (c) 2005-2006 IBM Corporation.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
=cut
1;
__END__