public class QuadTemplate extends Object
| Constructor and Description |
|---|
QuadTemplate(TemplateSubject subject,
TemplatePredicate predicate,
TemplateObject object)
Constructor for template with no graph.
|
QuadTemplate(TemplateSubject subject,
TemplatePredicate predicate,
TemplateObject object,
TemplateGraph graph)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TemplateGraph |
getGraph() |
TemplateObject |
getObject() |
TemplatePredicate |
getPredicate() |
TemplateSubject |
getSubject() |
void |
printOut(ExtractionResult er,
Map<String,String> variableAssignment)
Prints out this quad template in the given
ExtractionResult, using
the passed variableAssignment to expand variables. |
String |
toString() |
public QuadTemplate(TemplateSubject subject, TemplatePredicate predicate, TemplateObject object, TemplateGraph graph)
subject - not null subject template.predicate - not null predicate template.object - not null object template.graph - graph template, can be null.public QuadTemplate(TemplateSubject subject, TemplatePredicate predicate, TemplateObject object)
subject - predicate - object - public TemplateSubject getSubject()
public TemplatePredicate getPredicate()
public TemplateObject getObject()
public TemplateGraph getGraph()
null.public void printOut(ExtractionResult er, Map<String,String> variableAssignment)
ExtractionResult, using
the passed variableAssignment to expand variables.er - extraction result instance on which write the quad produced by this template.variableAssignment - the assignment used to expand variables.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.