ODO::Query::Simple - Simple single statement wildcard graph pattern matcher
use ODO::Node; use ODO::Query::Simple; use ODO::Query::Simple::Result;
my $s = ODO::Node::Resource->new('urn:lsid:testuri.org:ns:object:');
my $p = ODO::Node::Resource->new('http://testuri.org/predicate');
my $stmt = ODO::Query::Simple->new($s, $p, undef);
# ... $graph is an ODO::Graph
# Search for statements that match $s, $p, <ANY> my $result_set = $graph->query($stmt);
A simple single statement based graph pattern for searching.
If any of the parameters $subject, $predicate, $object are undef, that node will become an ODO::Node::Any.
IBM Corporation
the ODO::Graph manpage, the ODO::Statement manpage, the ODO::Node manpage
Copyright (c) 2004-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__