|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface AnnotationHelper
PoKHelper instead.| Method Summary | |
|---|---|
void |
createLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
Creates a statement having uriSubj as subject, uriPred as predicate and litObj as literal value of the object. |
void |
createLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String language)
Creates a statement having uriSubj as subject, uriPred as predicate and litObj as literal value of the object. |
void |
createResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
Creates a statement having uriSubj as subject, uriPred as predicate and uriObj as URI of the object. |
org.ow2.weblab.core.model.Annotation |
getAnnotation()
Deprecated. |
java.util.List<java.lang.String> |
getLitsOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getLitsOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String language)
|
java.util.Set<java.lang.String> |
getPreds()
|
java.util.Set<java.lang.String> |
getPredsOnSubj(java.lang.String uriSubj)
|
java.lang.String |
getRdfXml()
|
java.util.List<java.lang.String> |
getRessOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
|
java.util.Set<java.lang.String> |
getSubjs()
|
java.util.Set<java.lang.String> |
getSubjsOnPred(java.lang.String uriPred)
|
java.util.Set<java.lang.String> |
getSubjsOnPredLit(java.lang.String uriPred,
java.lang.String litObj)
|
java.util.Set<java.lang.String> |
getSubjsOnPredRes(java.lang.String uriPred,
java.lang.String uriObj)
|
boolean |
hasLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
boolean |
hasResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
boolean |
isDefinedResource(java.lang.String uri)
Tests if the given URI is defined as a named resource in the PieceOfKnowledge. |
void |
loadFromRdfXml(java.lang.String rdfXml)
Loads an RDF/XML String, to be queried. |
void |
removeLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
Removes every statements having uriSubj as subject, uriPred as predicate and litObj as literal value of the
object. |
void |
removeResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
Removes every statements having uriSubj as subject, uriPred as predicate and uriObj as URI of the object. |
void |
removeStatsOnSubj(java.lang.String uriSubj)
Removes every statements having uriSubj as subject whatever are predicate and object. |
void |
removeStatsWithLit(java.lang.String litObj)
Removes every statements having litObj as object literal value whatever are subject and predicate. |
void |
removeStatsWithPred(java.lang.String uriPred)
Removes every statements having uriPred as predicate whatever are subject and object. |
void |
removeStatsWithRes(java.lang.String uriObj)
Removes every statements having uriObj as object named resource URI value whatever are subject and predicate. |
void |
setAnnotation(org.ow2.weblab.core.model.Annotation annotation)
Deprecated. |
| Methods inherited from interface org.ow2.weblab.core.helper.PoKHelper |
|---|
commit, getPoK, setAutoCommitMode, setPoK |
| Method Detail |
|---|
@Deprecated org.ow2.weblab.core.model.Annotation getAnnotation()
Annotation which is manipulated.
Please not that this will not commit any changes made into the RDF/XML if
AnnotationHelper do not works in "autoCommitMode"
and if you did not call PoKHelper.commit() method.
Annotation.@Deprecated void setAnnotation(org.ow2.weblab.core.model.Annotation annotation)
Annotation which is manipulated by the
helper. Note that using an AnnotationHelper without
Annotation will throw RuntimeException.
annotation - An existing Annotationjava.lang.String getRdfXml()
String of the current changed made.
void loadFromRdfXml(java.lang.String rdfXml)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
String, to be queried.
rdfXml - A RDF/XML content to be loaded.
org.ow2.weblab.core.extended.exception.WebLabCheckedException - If the rdfXml is not an RDF/XML valid String.
java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.
List containing values of every literal that are object of statements having uriPred as predicate and
uriSubj as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String language)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.language - The xml:lang attribute for this literal.
List containing values in language language of every literal that are object of statements having uriPred as predicate and
uriSubj as subject in the PieceOfKnowledge. For more information about language attribute, see http://www.w3.org/TR/REC-xml/#sec-lang-tag.java.util.Set<java.lang.String> getPredsOnSubj(java.lang.String uriSubj)
uriSubj - The URI of the subject resource.
Set containing URIs of every named resources that are predicate of any statement having uriSubj as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.
List containing URIs of every named resources that are object of statements having uriPred as predicate and
uriSubj as subject in the PieceOfKnowledge.java.util.Set<java.lang.String> getSubjs()
Set containing URIs of every named resources that are subject of any statement in the PieceOfKnowledge.java.util.Set<java.lang.String> getSubjsOnPred(java.lang.String uriPred)
uriPred - The URI of the predicate resource.
Set containing URIs of every named resources that are subject of statements having uriPred as predicate in the
PieceOfKnowledge.
java.util.Set<java.lang.String> getSubjsOnPredLit(java.lang.String uriPred,
java.lang.String litObj)
uriPred - The URI of the predicate resource.litObj - The literal value of the object.
Set containing URIs of every named resources that are subject of statements having uriPred as predicate and
litObj as object literal value in the PieceOfKnowledge.
java.util.Set<java.lang.String> getSubjsOnPredRes(java.lang.String uriPred,
java.lang.String uriObj)
uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.
Set containing URIs of every named resources that are subject of statements having uriPred as predicate and
uriObj as object named resource URI in the PieceOfKnowledge.
boolean hasLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.
PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as
predicate and litObj as literal value of the object.
boolean hasResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.
PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as
predicate and uriObj as URI of the object.boolean isDefinedResource(java.lang.String uri)
PieceOfKnowledge.
uri - The URI to test existence in the PieceOfKnowledge.
true if the URI is defined as a named resource URI in the PieceOfKnowledge.java.util.Set<java.lang.String> getPreds()
Set containing URIs of properties that are predicate of any statement in the PieceOfKnowledge.
void createLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String language)
uriSubj as subject, uriPred as predicate and litObj as literal value of the object.
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.language - The language of the literal value. See http://www.w3.org/TR/REC-xml/#sec-lang-tag for more information.
void createLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
uriSubj as subject, uriPred as predicate and litObj as literal value of the object.
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.
void createResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
uriSubj as subject, uriPred as predicate and uriObj as URI of the object.
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.
void removeLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
uriSubj as subject, uriPred as predicate and litObj as literal value of the
object.
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.
void removeResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
uriSubj as subject, uriPred as predicate and uriObj as URI of the object.
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.void removeStatsOnSubj(java.lang.String uriSubj)
uriSubj as subject whatever are predicate and object.
uriSubj - The URI of the subject resource.void removeStatsWithLit(java.lang.String litObj)
litObj as object literal value whatever are subject and predicate.
litObj - The literal value of the object.void removeStatsWithPred(java.lang.String uriPred)
uriPred as predicate whatever are subject and object.
uriPred - The URI of the predicate resource.void removeStatsWithRes(java.lang.String uriObj)
uriObj as object named resource URI value whatever are subject and predicate.
uriObj - The URI of the object resource. The URI of the object resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||