com.tinkerpop.blueprints.oupls.sail
Class GraphBasedMatcher
java.lang.Object
com.tinkerpop.blueprints.oupls.sail.Matcher
com.tinkerpop.blueprints.oupls.sail.GraphBasedMatcher
public class GraphBasedMatcher
- extends Matcher
A matcher which uses the vertex-edge structure of the graph to retrieve statements. It does not require an edge index of any kind,
but it can only be applied to triple patterns in which the subject or object is specified
(which includes all patterns apart from "p", "c", and "pc").
- Author:
- Joshua Shinavier (http://fortytwo.net)
| Fields inherited from class com.tinkerpop.blueprints.oupls.sail.Matcher |
c, o, p, s |
|
Method Summary |
Iterable<Edge> |
match(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
org.openrdf.model.Resource context)
Retrieve matching statements based on this matcher's triple pattern as well as the provided values. |
| Methods inherited from class com.tinkerpop.blueprints.oupls.sail.Matcher |
toString |
GraphBasedMatcher
public GraphBasedMatcher(boolean s,
boolean p,
boolean o,
boolean c,
com.tinkerpop.blueprints.oupls.sail.GraphSail.DataStore store)
- Create a new graph-based matcher with the given triple pattern.
- Parameters:
s - whether the subject is specifiedp - whether the predicate is specifiedo - whether the object is specifiedc - whether the context is specifiedstore - the Blueprints data store
match
public Iterable<Edge> match(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object,
org.openrdf.model.Resource context)
- Description copied from class:
Matcher
- Retrieve matching statements based on this matcher's triple pattern as well as the provided values.
If a component such as subject or object is specified in the pattern, a non-null value must be provided to this method.
Non-null values for unspecified components may be provided, but they will not be used.
- Specified by:
match in class Matcher
- Parameters:
subject - the subject value of matching statementspredicate - the predicate value of matching statementsobject - the object of matching statementscontext - the context of matching statements
- Returns:
- an iterator over all matching statements
Copyright © 2010-2012 David Wu. All Rights Reserved.