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.
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.
Tests whether or not $self and $statement are the same statement, taking ODO::Node::Any nodes in to account.
IBM Corporation
ODO::Graph, ODO::Statement, ODO::Node
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
To install PLUTO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PLUTO
CPAN shell
perl -MCPAN -e shell install PLUTO
For more information on module installation, please visit the detailed CPAN module installation guide.