|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.AnnotationTemplate
public class AnnotationTemplate
An AnnotationTemplate object represents a single possible RDF statement that may be generated as a side effect of the invocation of a processor task instance. Any processor may have zero or more of these templates associated with it.
| Field Summary | |
|---|---|
static java.lang.String |
TAVERNA_PROVENANCE_NS
|
| Constructor Summary | |
|---|---|
AnnotationTemplate()
Create a blank annotation template object |
|
AnnotationTemplate(org.jdom.Element templateElement)
Create an annotation template object from a JDOM Element, the element being the <template> tag. |
|
| Method Summary | |
|---|---|
void |
addLiteral(java.lang.String text)
Add a new text literal to the template |
void |
addPortReference(Port p)
Add a new port reference to this template |
static java.lang.String |
convert(java.lang.String input)
Take an input string and return the string with all less than characters replaced with the appropriate XML literal |
java.lang.String |
getDescription()
Return a chunk of HTML showing the unknowns in purple |
org.jdom.Element |
getElement()
The JDOM Element for this AnnotationTemplate |
java.lang.String |
getTextAnnotation(java.util.Map inputs,
java.util.Map outputs)
Given two maps of inputName->LSID and outputName->LSID create a concatenated text string from all the elements in this annotation template populated with the LSID values. |
static AnnotationTemplate |
standardTemplate(Port subject,
java.lang.String verb,
Port object)
Create a basic 'subject verb object' triple in RDF format |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAVERNA_PROVENANCE_NS
| Constructor Detail |
|---|
public AnnotationTemplate()
public AnnotationTemplate(org.jdom.Element templateElement)
| Method Detail |
|---|
public static AnnotationTemplate standardTemplate(Port subject,
java.lang.String verb,
Port object)
public void addLiteral(java.lang.String text)
public void addPortReference(Port p)
public java.lang.String getTextAnnotation(java.util.Map inputs,
java.util.Map outputs)
public org.jdom.Element getElement()
public java.lang.String getDescription()
public static java.lang.String convert(java.lang.String input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||