|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.querybuilder.PropertyGrounding
public class PropertyGrounding
Provides RDF objects (triple matches) to a query builder for a single predicate. Implementations declare getNode(ResultSet) to return the correct object for this triple match.
| Constructor Summary | |
|---|---|
PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding)
Create a new PropertyGrounding for the given Predicate and a column that matches a literal grounding |
|
PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding,
java.util.Collection<Constraint> constraints)
Create a new PropertyGrounding for the given Predicate and a column that matches a literal grounding |
|
PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding,
Constraint constraint)
Create a new PropertyGrounding for the given Predicate and a column that matches a literal grounding |
|
PropertyGrounding(org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
Create new PropertyGrounding for the given Predicate and Object value |
|
| Method Summary | |
|---|---|
java.lang.Object |
constrainObject(org.openrdf.model.Value object,
CompositeNodeLayout nodeLayout)
Constrains the objects this element will match to the one specified and returns SQL representation of query if this grounding matches. |
boolean |
constrainPredicate(org.openrdf.model.URI predicate)
Determine if this grounding's predicate matches the provided predicate |
java.util.Collection<Constraint> |
getConstraints()
Gets a list of constraints that must be set in an SQL 'where' clause to get the correct triple match values for this object. |
java.lang.Long |
getId(CompositeNodeLayout nodeLayout)
Get the ID of this predicate's value in the nodelayout |
java.util.List<Column> |
getSelections()
Gets a list of columns that must be set in an SQL 'select' caluse to get the correct triple match values for this object. |
org.openrdf.model.URI |
getUri()
Get URI for predicate |
IRdbTerm |
getValue(CompositeNodeLayout nodeLayout)
Get the value for this predicate |
java.lang.String |
toSqlString(org.openrdf.model.Value object,
CompositeNodeLayout nodeLayout)
Converts a RDF object to a string that matches values in the SQL store equal to this object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyGrounding(org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
predicate - Predicate value of materialized tripleobject - Object value of materialized triple
public PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding)
predicate - Predicate value of materialized triplecolumn - Column that contains object value for the materialized tripleliteralGrounding - Grounding that contains object value that must match
public PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding,
Constraint constraint)
predicate - Predicate value of materialized triplecolumn - Column that contains object value for the materialized tripleliteralGrounding - Grounding that contains object value that must matchconstraint - Constaint that this grounding has to match
public PropertyGrounding(org.openrdf.model.URI predicate,
Column column,
ObjectGrounding literalGrounding,
java.util.Collection<Constraint> constraints)
predicate - Predicate value of materialized triplecolumn - Column that contains object value for the materialized tripleliteralGrounding - Grounding that contains object value that must matchconstraints - Set of constaints that this grounding has to match| Method Detail |
|---|
public org.openrdf.model.URI getUri()
public java.lang.Long getId(CompositeNodeLayout nodeLayout)
nodeLayout - CompositeNodeLayout to retrieve URIs and Node values
public IRdbTerm getValue(CompositeNodeLayout nodeLayout)
nodeLayout - CompositeNodeLayout to retrieve URIs and Node values
public java.lang.Object constrainObject(org.openrdf.model.Value object,
CompositeNodeLayout nodeLayout)
object - Object to constrain this elementnodeLayout - INodeLayout that is used to fetch and store node values
public boolean constrainPredicate(org.openrdf.model.URI predicate)
predicate - Predicate value to match against this grounding's predicate
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<Constraint> getConstraints()
public java.util.List<Column> getSelections()
public java.lang.String toSqlString(org.openrdf.model.Value object,
CompositeNodeLayout nodeLayout)
object - Object to convert to stringnodeLayout - INodeLayout that is used to fetch and store URI and Node values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||