|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weblab_project.core.helper.impl.WTriple
public class WTriple
A container class composed by a subject, a predicate and an object. The subject and the object can be either an URI or an URI and a reference to a WebLab Resource.
Constructor Summary | |
---|---|
WTriple(com.hp.hpl.jena.graph.Node s,
com.hp.hpl.jena.graph.Node p,
com.hp.hpl.jena.graph.Node o,
java.lang.String annotatedText,
org.weblab_project.core.model.Resource annotatedOn,
java.util.List<org.weblab_project.core.model.Resource> resources)
|
|
WTriple(com.hp.hpl.jena.graph.Triple triple,
java.lang.String annotatedText,
org.weblab_project.core.model.Resource annotatedOn,
java.util.List<org.weblab_project.core.model.Resource> resources)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
org.weblab_project.core.model.PieceOfKnowledge |
from()
Returns the PieceOfKnowledge in which this triplet is defined. |
org.weblab_project.core.model.Resource |
getAnnotatedOn()
Returns the Resource on which the annotation define this triple. |
org.weblab_project.core.model.PieceOfKnowledge |
getAnnotation()
|
java.lang.String |
getObject()
Returns the value of the object |
org.weblab_project.core.model.Resource |
getObjectResource()
Returns the Resource if the object is a WebLab Resource else null |
java.lang.String |
getPredicate()
Return the URI of the predicate |
protected WTriple |
getReifiedWTriple()
|
java.lang.String |
getSubject()
Return the URI of the subject |
org.weblab_project.core.model.Resource |
getSubjectResource()
Returns the Resource if the subject is a WebLab Resource else null |
java.lang.String |
getText()
Return the text corresponding to the segment on which the annotation |
com.hp.hpl.jena.graph.Triple |
getTriple()
Return the Jena Triple use to build the WTriple |
int |
hashCode()
|
void |
setAnnotation(org.weblab_project.core.model.PieceOfKnowledge annotation)
|
protected void |
setReifiedWTriple(WTriple reifiedWTriple)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WTriple(com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o, java.lang.String annotatedText, org.weblab_project.core.model.Resource annotatedOn, java.util.List<org.weblab_project.core.model.Resource> resources)
public WTriple(com.hp.hpl.jena.graph.Triple triple, java.lang.String annotatedText, org.weblab_project.core.model.Resource annotatedOn, java.util.List<org.weblab_project.core.model.Resource> resources)
Method Detail |
---|
public void setAnnotation(org.weblab_project.core.model.PieceOfKnowledge annotation)
public org.weblab_project.core.model.PieceOfKnowledge getAnnotation()
public org.weblab_project.core.model.PieceOfKnowledge from()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public org.weblab_project.core.model.Resource getAnnotatedOn()
protected void setReifiedWTriple(WTriple reifiedWTriple)
protected WTriple getReifiedWTriple()
public java.lang.String getText()
public java.lang.String getPredicate()
public com.hp.hpl.jena.graph.Triple getTriple()
public java.lang.String getSubject()
public org.weblab_project.core.model.Resource getSubjectResource()
public java.lang.String getObject()
public org.weblab_project.core.model.Resource getObjectResource()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |