NAME
ODO::Query::Simple - Simple single statement wildcard graph pattern matcher
SYNOPSIS
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);
DESCRIPTION
A simple single statement based graph pattern for searching.
CONSTANTS
METHODS
- new( [ [s=> $s ], [ p=> $p], [ o=> $o ] ] | [ $s, [ $p, [ $o ] ] ] )
-
Creates a new ODO::Query::Simple object with the specified $subject, $predicate, $object The $subject, $predicate, $object may be any combination of ODO::Node::Resource, ODO::Node::Literal, ODO::Node::Variable, ODO::Node::Blank (more generically, anything that conforms to ODO::Node).
If any of the parameters $subject, $predicate, $object are undef, that node will become an ODO::Node::Any.
- equal( $statement )
-
Tests whether or not $self and $statement are the same statement, taking ODO::Node::Any nodes in to account.
AUTHOR
IBM Corporation
SEE ALSO
ODO::Graph, ODO::Statement, ODO::Node
COPYRIGHT
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