com.hp.hpl.jena.graph.query
Class QueryTriple

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.QueryTriple

public class QueryTriple
extends Object

A QueryTriple is a composite of three QueryNodes derived from a single source triple. QueryTriple knows how to classify a triple into a QueryTriple based on the classification of that triple's elements. A QueryTriple can create a specific Matcher which will do the minimal amount of work to match triples that have been generated by find on the finder of that QueryTriple.

Author:
hedgehog

Nested Class Summary
static class QueryTriple.SimpleApplyer
           
 
Field Summary
 QueryNode O
           
 QueryNode P
           
 QueryNode S
           
 
Constructor Summary
QueryTriple(QueryNode S, QueryNode P, QueryNode O)
           
 
Method Summary
static QueryTriple classify(QueryNodeFactory f, Mapping m, Triple t)
           
static QueryTriple[] classify(QueryNodeFactory f, Mapping m, Triple[] t)
           
 Applyer createApplyer(Graph g)
           
 Matcher createMatcher()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

S

public final QueryNode S

P

public final QueryNode P

O

public final QueryNode O
Constructor Detail

QueryTriple

public QueryTriple(QueryNode S,
                   QueryNode P,
                   QueryNode O)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

classify

public static QueryTriple[] classify(QueryNodeFactory f,
                                     Mapping m,
                                     Triple[] t)

classify

public static QueryTriple classify(QueryNodeFactory f,
                                   Mapping m,
                                   Triple t)

createApplyer

public Applyer createApplyer(Graph g)

createMatcher

public Matcher createMatcher()


Licenced under the Apache License, Version 2.0