|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.map.PropertyBridge
A respresentation of a d2rq:PropertyBridge, describing how
a set of virtual triples are to be obtained
from a database. The virtual subjects, predicates and objects
are generated by NodeMaker
s.
TODO: Rename to TripleMap?
History:
06-03-2004: Initial version of this class.
08-03-2004: Many, many changes.
Field Summary | |
private java.util.Map |
aliases
|
private java.util.Set |
conditions
|
private Database |
database
|
private com.hp.hpl.jena.graph.Node |
id
|
private java.util.Set |
joins
|
private boolean |
mightContainDuplicates
|
private NodeMaker |
objectMaker
|
private NodeMaker |
predicateMaker
|
private NodeMaker |
subjectMaker
|
private TablePrefixer |
tablePrefixer
|
private URIMatchPolicy |
uriMatchPolicy
|
Constructor Summary | |
PropertyBridge(com.hp.hpl.jena.graph.Node id,
NodeMaker subjectMaker,
NodeMaker predicateMaker,
NodeMaker objectMaker,
Database database,
java.util.Set joins,
java.util.Map aliases)
|
Method Summary | |
void |
addConditions(java.util.Set whereConditions)
Adds SQL WHERE conditions that must evaluate to TRUE for a given database row or the bridge will not generate a triple. |
java.lang.Object |
clone()
Make a shallow copy of this . |
boolean |
couldFit(com.hp.hpl.jena.graph.Triple t,
QueryContext context)
Checks if a given triple could match this bridge without querying the database. |
java.util.Map |
getAliases()
|
java.util.Set |
getConditions()
Returns the SQL WHERE conditions that must hold for a given database row or the bridge will not generate a triple. |
Database |
getDatabase()
|
int |
getEvaluationPriority()
|
java.util.Set |
getJoins()
|
NodeMaker |
getObjectMaker()
|
NodeMaker |
getPredicateMaker()
|
NodeMaker |
getSubjectMaker()
|
TablePrefixer |
getTablePrefixer()
|
boolean |
mightContainDuplicates()
|
void |
prefixTables(TablePrefixer prefixer)
Changes the fields in a newly created clone that are to be modified when making aliasses. |
void |
setMightContainDuplicates(boolean mightContainDuplicates)
|
void |
setTablePrefixer(TablePrefixer tablePrefixer)
|
void |
setURIMatchPolicy(URIMatchPolicy policy)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private com.hp.hpl.jena.graph.Node id
private NodeMaker subjectMaker
private NodeMaker predicateMaker
private NodeMaker objectMaker
private Database database
private java.util.Map aliases
private java.util.Set joins
private java.util.Set conditions
private URIMatchPolicy uriMatchPolicy
private boolean mightContainDuplicates
private TablePrefixer tablePrefixer
Constructor Detail |
public PropertyBridge(com.hp.hpl.jena.graph.Node id, NodeMaker subjectMaker, NodeMaker predicateMaker, NodeMaker objectMaker, Database database, java.util.Set joins, java.util.Map aliases)
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Prefixable
this
.
General advice: Do not overwrite clone().
prefixTables() works best with shallow copy which Object implements.
Issues: I have not found a (preferred) static equivalent of clone().
Since Objects clone() method is protected, we cannot just declare
Cloneable
, if we want to call clone() from outside of that
class hierarchy. Instead it must be public and implemented in each
Prefixable class by a call to super.clone().
clone
in interface Prefixable
java.lang.CloneNotSupportedException
public void prefixTables(TablePrefixer prefixer)
Prefixable
prefixTables
in interface Prefixable
prefixer
- does the actual prefixing of simple and complex types.public java.util.Map getAliases()
public TablePrefixer getTablePrefixer()
public void setTablePrefixer(TablePrefixer tablePrefixer)
public void addConditions(java.util.Set whereConditions)
whereConditions
- a set of Stringspublic java.util.Set getConditions()
public void setURIMatchPolicy(URIMatchPolicy policy)
public int getEvaluationPriority()
public void setMightContainDuplicates(boolean mightContainDuplicates)
public boolean mightContainDuplicates()
public boolean couldFit(com.hp.hpl.jena.graph.Triple t, QueryContext context)
public Database getDatabase()
public NodeMaker getSubjectMaker()
public NodeMaker getPredicateMaker()
public NodeMaker getObjectMaker()
public java.util.Set getJoins()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |