|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PoKHelperExtended
API to manipulate a unique PieceOfKnowledge object, with extended functions compared with PoKHelper
In this new version of helpers, a lots of method have been added. They shall be easier to understand and use. No more boolean in parameters. But anonymous
resources are know taken into account, thus giving the code more possibility of choice.
In this class a lot of abbreviation are used to reduce the length of the methods. Those convention are commons with PoKHelper, ResourceHelper
and ResourceHelperExtended.
PoKHelper,
ResourceHelper,
ResourceHelperExtended| Method Summary | |
|---|---|
void |
createAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
Creates a statement having uriSubj as subject, uriPred as predicate and uriObj as URI of the object. |
void |
createAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
Creates a statement having idSubj as subject, uriPred as predicate and idObj as internal ID of the object. |
java.lang.String |
createAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and idObj as URI of the
object. |
java.lang.String |
createAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and idObj as URI of the
object. |
java.lang.String |
createAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and idObj as URI of the
object. |
java.lang.String |
createAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and idObj as URI of the
object. |
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 |
createLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
Creates a statement having idSubj as subject, uriPred as predicate and litObj as literal value of the object. |
java.lang.String |
createLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and litObj as URI of the
object. |
java.lang.String |
createLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and litObj as URI of the
object. |
java.lang.String |
createLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having idSubj as subject, uriPred as predicate and litObj as URI of the
object. |
java.lang.String |
createLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having idSubj as subject, uriPred as predicate and litObj as URI 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. |
void |
createResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
Creates a statement having idSubj as subject, uriPred as predicate and uriObj as URI of the object. |
java.lang.String |
createResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and uriObj as URI of the
object. |
java.lang.String |
createResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having uriSubj as subject, uriPred as predicate and uriObj as URI of the
object. |
java.lang.String |
createResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
If it does not exist, creates a statement having idSubj as subject, uriPred as predicate and uriObj as URI of the
object. |
java.lang.String |
createResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
If it does not exist, creates a statement having idSubj as subject, uriPred as predicate and uriObj as URI of the
object. |
java.util.List<java.lang.String> |
getAnonReifStats()
|
java.lang.String |
getAnonResOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getAnonResOnReifStat(java.lang.String statUri)
|
java.util.List<java.lang.String> |
getAnonRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getAnonRessOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
|
java.lang.String |
getAnonSubjOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getAnonSubjOfReifStat(java.lang.String statUri)
|
java.util.Set<java.lang.String> |
getAnonSubjs()
|
java.util.Set<java.lang.String> |
getAnonSubjsOnPred(java.lang.String uriPred)
|
java.util.Set<java.lang.String> |
getAnonSubjsOnPredAnonRes(java.lang.String uriPred,
java.lang.String idObj)
|
java.util.Set<java.lang.String> |
getAnonSubjsOnPredLit(java.lang.String uriPred,
java.lang.String litObj)
|
java.util.Set<java.lang.String> |
getAnonSubjsOnPredRes(java.lang.String uriPred,
java.lang.String uriObj)
|
java.lang.String |
getLitOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getLitOfReifStat(java.lang.String statUri)
|
java.util.List<java.lang.String> |
getLitsOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getLitsOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getLitsOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getLitsOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
|
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.Map<java.lang.String,java.lang.String> |
getNSPrefixes()
Retrieve the current map of prefixes and uris used in the PieceOfKnowledge contained by this PoKHelperExtended. |
java.lang.String |
getPredOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getPredOfReifStat(java.lang.String statUri)
|
java.util.Set<java.lang.String> |
getPreds()
|
java.util.Set<java.lang.String> |
getPredsOnAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
java.util.Set<java.lang.String> |
getPredsOnAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
java.util.Set<java.lang.String> |
getPredsOnAnonStatReif(java.lang.String statId)
|
java.util.Set<java.lang.String> |
getPredsOnAnonSubj(java.lang.String idSubj)
|
java.util.Set<java.lang.String> |
getPredsOnLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
java.util.Set<java.lang.String> |
getPredsOnLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
java.util.Set<java.lang.String> |
getPredsOnResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
java.util.Set<java.lang.String> |
getPredsOnResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
java.util.Set<java.lang.String> |
getPredsOnStatReif(java.lang.String statUri)
|
java.util.Set<java.lang.String> |
getPredsOnSubj(java.lang.String uriSubj)
|
java.lang.String |
getRdfXml()
|
java.util.List<java.lang.String> |
getReifStats()
|
java.lang.String |
getResOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getResOfReifStat(java.lang.String statUri)
|
java.util.List<java.lang.String> |
getRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getRessOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
|
java.util.List<java.lang.String> |
getRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
|
java.util.List<java.lang.String> |
getRessOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
|
java.lang.String |
getSubjOfAnonReifStat(java.lang.String statId)
|
java.lang.String |
getSubjOfReifStat(java.lang.String statUri)
|
java.util.Set<java.lang.String> |
getSubjs()
|
java.util.Set<java.lang.String> |
getSubjsOnPred(java.lang.String uriPred)
|
java.util.Set<java.lang.String> |
getSubjsOnPredAnonRes(java.lang.String uriPred,
java.lang.String idObj)
|
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 |
hasAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
boolean |
hasAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
boolean |
hasLitStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
boolean |
hasLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
boolean |
hasResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
boolean |
hasResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
boolean |
isAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
boolean |
isAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
|
boolean |
isDefinedAnonRes(java.lang.String id)
Tests if the given internal ID is defined as an anonymous resource in the PieceOfKnowledge. |
boolean |
isDefinedResource(java.lang.String uri)
Tests if the given URI is defined as a named resource in the PieceOfKnowledge. |
boolean |
isLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
boolean |
isLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
|
boolean |
isResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
boolean |
isResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
|
void |
loadFromRdfXml(java.lang.String rdfXml)
Loads an RDF/XML String, to be queried. |
void |
removeAnonReifStat(java.lang.String statId)
Removes all the statements about the reified one and removes it itself. |
void |
removeAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
Removes every statements having uriSubj as subject, uriPred as predicate and idObj as object. |
void |
removeAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
Removes every statements having idSubj as subject, uriPred as predicate and idObj as object. |
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 |
removeLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
Removes every statements having idSubj as subject, uriPred as predicate and litObj as object. |
void |
removeReifStat(java.lang.String statUri)
Removes all the statements about the reified one and removes it itself. |
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 |
removeResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
Removes every statements having idSubj as subject, uriPred as predicate and uriObj as object. |
void |
removeStatsOnAnonSubj(java.lang.String idSubj)
Removes every statements having idSubj as subject, whatever could be predicates and objects involved in statements. |
void |
removeStatsOnSubj(java.lang.String uriSubj)
Removes every statements having uriSubj as subject whatever are predicate and object. |
void |
removeStatsWithAnonRes(java.lang.String idObj)
Removes every statements having idObj as object, whatever could be predicates and subject involved in statements. |
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. |
java.util.Map<java.lang.String,java.lang.String> |
setNSPrefix(java.lang.String prefix,
java.lang.String uri)
Sets a prefix to be used to represent the given URI in the RDF/XML view of the PieceOfKnowledge data. |
| Methods inherited from interface org.ow2.weblab.core.helper.PoKHelper |
|---|
commit, getPoK, setAutoCommitMode, setPoK |
| Method Detail |
|---|
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.
java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:uriSubj, P:uriPred, O: idObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:idSubj, P:uriPred, O: idObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
idSubj - The internal Id of the subject resource.uriPred - The URI of the predicate resource.
List containing internal IDs of every anonymous resources that are object of statements having uriPred as predicate
and idSubj as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:uriSubj, P:uriPred, O: litObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:idSubj, P:uriPred, O: litObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:uriSubj, P:uriPred, O: uriObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing internal IDs of every anonymous resources that are object of statements having uriReifPred as
predicate and the reified statement (S:idSubj, P:uriPred, O: uriObj) as subject in the
PieceOfKnowledge.
java.util.List<java.lang.String> getAnonRessOnPredSubj(java.lang.String uriSubj,
java.lang.String uriPred)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.
List containing internal IDs of every anonymous resources that are object of statements having uriPred as predicate
and uriSubj as subject in the PieceOfKnowledge.java.util.Set<java.lang.String> getAnonSubjs()
Set containing internal IDs of every anonymous resources that are subject of any statement in the PieceOfKnowledge.java.util.Set<java.lang.String> getAnonSubjsOnPred(java.lang.String uriPred)
uriPred - The URI of the predicate resource.
Set containing internal IDs of every anonymous resources that are subject of statements having uriPred as predicate
in the PieceOfKnowledge.
java.util.Set<java.lang.String> getAnonSubjsOnPredAnonRes(java.lang.String uriPred,
java.lang.String idObj)
uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.
Set containing internal IDs of every anonymous resources that are subject of statements having uriPred as predicate
and idObj as object resource URI in the PieceOfKnowledge.
java.util.Set<java.lang.String> getAnonSubjsOnPredLit(java.lang.String uriPred,
java.lang.String litObj)
uriPred - The URI of the predicate resource.litObj - The literal value of the object.
Set containing internal IDs of every anonymous 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> getAnonSubjsOnPredRes(java.lang.String uriPred,
java.lang.String uriObj)
uriPred - The URI of the predicate resource.uriObj - The literal value of the object.
Set containing internal IDs of every anonymous resources that are subject of statements having uriPred as predicate
and uriObj as object resource URI in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing values of every literals that are object of statements having uriReifPred as predicate and the
reified statement (S:uriSubj, P:uriPred, O: idObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing values of every literals that are object of statements having uriReifPred as predicate and the
reified statement (S:idSubj, P:uriPred, O: idObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
idSubj - The internal Id 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
idSubj as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement.
List containing values of every literal that are object of statements having uriReifPred as predicate and the reified
statement (S:uriSubj, P:uriPred, O: litObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing values of every literal that are object of statements having uriReifPred as predicate and the reified
statement (S:idSubj, P:uriPred, O: litObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing values of every literal that are object of statements having uriReifPred as predicate and the reified
statement (S:uriSubj, P:uriPred, O: uriObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing values of every literal that are object of statements having uriReifPred as predicate and the reified
statement (S:idSubj, P:uriPred, O: uriObj) as subject in the PieceOfKnowledge.java.util.Map<java.lang.String,java.lang.String> getNSPrefixes()
PieceOfKnowledge contained by this PoKHelperExtended.
java.util.Set<java.lang.String> getPredsOnAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred as predicate and idObj as object in the PieceOfKnowledge.
java.util.Set<java.lang.String> getPredsOnAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred as predicate and idObj as object in the PieceOfKnowledge.java.util.Set<java.lang.String> getPredsOnAnonSubj(java.lang.String idSubj)
idSubj - The internal Id of the subject resource.
Set containing URIs of every named resources that are predicate of any statement having idSubj as subject in the
PieceOfKnowledge.
java.util.Set<java.lang.String> getPredsOnLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred as predicate and litObj as object in the PieceOfKnowledge.
java.util.Set<java.lang.String> getPredsOnLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred as predicate and litObj as object in the PieceOfKnowledge.
java.util.Set<java.lang.String> getPredsOnResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred as predicate and uriObj as object in the PieceOfKnowledge.
java.util.Set<java.lang.String> getPredsOnResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.
Set containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred as predicate and uriObj as object in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:uriSubj, P:uriPred, O: idObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.idObj - The internal ID of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:idSubj, P:uriPred, O: idObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredAnonSubj(java.lang.String idSubj,
java.lang.String uriPred)
idSubj - The internal Id 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
idSubj as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement.
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:uriSubj, P:uriPred, O: litObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.litObj - The value of the object literal of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:idSubj, P:uriPred, O: litObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
uriSubj - The URI of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:uriSubj, P:uriPred, O: uriObj) as subject in the PieceOfKnowledge.
java.util.List<java.lang.String> getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReifPred)
idSubj - The internal ID of the subject resource of the statement.uriPred - The URI of the predicate resource of the statement.uriObj - The URI of the object resource of the statement.uriReifPred - The URI of the predicate reifing the statement
List containing URIs of every named resources that are object of statements having uriReifPred as predicate and the
reified statement (S:idSubj, P:uriPred, O: uriObj) as subject in the PieceOfKnowledge.
java.util.Set<java.lang.String> getSubjsOnPredAnonRes(java.lang.String uriPred,
java.lang.String idObj)
uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.
Set containing URIs of every named resources that are subject of statements having uriPred as predicate and
idObj as object resource URI in the PieceOfKnowledge.
boolean hasAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal Id of the object resource.
PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as
predicate and idObj as internal ID of the object.
boolean hasAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
idSubj - The internal Id of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal Id of the object resource.
PieceOfKnowledge contains at least one statement having idSubj as subject, uriPred as
predicate and idObj as internal ID of the object.
boolean hasLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
idSubj - The internal Id 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 idSubj as subject, uriPred as
predicate and litObj as literal value of the object.
boolean hasResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
idSubj - The internal Id 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 idSubj as subject, uriPred as
predicate and uriObj as internal ID of the object.
boolean isAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.
boolean isAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.
boolean isDefinedAnonRes(java.lang.String id)
PieceOfKnowledge.
id - The internal Id to test existence in the PieceOfKnowledge.
true if the URI is defined as an anonymous resource internal ID in the PieceOfKnowledge.
boolean isLitStatReif(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 value of the object literal.
boolean isLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.litObj - The value of the object literal.
boolean isResStatReif(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.
boolean isResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.
java.lang.String getAnonSubjOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
null if the subject is not an anonymous resource.java.lang.String getAnonSubjOfReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
null if the subject is not an anonymous resource.java.lang.String getSubjOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
null if the subject is not a named resource.java.lang.String getSubjOfReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
null if the subject is not a named resource.java.lang.String getPredOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
java.lang.String getPredOfReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
java.lang.String getAnonResOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
null if the object is not an anonymous resource.java.lang.String getAnonResOnReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
null if the object is not an anonymous resource.java.lang.String getLitOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
null if the object is not a literal.java.lang.String getLitOfReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
null if the object is not a literal.java.lang.String getResOfAnonReifStat(java.lang.String statId)
statId - The internal ID of the statement resource.
null if the object is not a named resource.java.lang.String getResOfReifStat(java.lang.String statUri)
statUri - The URI of the statement resource.
null if the object is not a named resource.java.util.List<java.lang.String> getAnonReifStats()
List of internal IDs of all the anonymous reified statements.java.util.List<java.lang.String> getReifStats()
List of URIs of all the named reified statements.java.util.Set<java.lang.String> getPredsOnAnonStatReif(java.lang.String statId)
java.util.Set<java.lang.String> getPredsOnStatReif(java.lang.String statUri)
java.util.List<java.lang.String> getAnonRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
java.util.List<java.lang.String> getRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
java.util.List<java.lang.String> getLitsOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
java.util.List<java.lang.String> getAnonRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
java.util.List<java.lang.String> getRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
java.util.List<java.lang.String> getLitsOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
java.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 createAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
uriSubj as subject, uriPred as predicate and uriObj as URI of the object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.#setAutoCommitMode(boolean),
PoKHelper.commit()
void createAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
idSubj as subject, uriPred as predicate and idObj as internal ID of the object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.#setAutoCommitMode(boolean),
PoKHelper.commit()
java.lang.String createAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
uriSubj as subject, uriPred as predicate and idObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
uriSubj as subject, uriPred as predicate and idObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
java.lang.String createAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
uriSubj as subject, uriPred as predicate and idObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
uriSubj as subject, uriPred as predicate and idObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
void createLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
idSubj as subject, uriPred as predicate and litObj as literal value of the object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal Id of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.
java.lang.String createLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
uriSubj as subject, uriPred as predicate and litObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
java.lang.String createLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
uriSubj as subject, uriPred as predicate and litObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
idSubj as subject, uriPred as predicate and litObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
idSubj as subject, uriPred as predicate and litObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
void createResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
idSubj as subject, uriPred as predicate and uriObj as URI of the object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal Id of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.
java.lang.String createResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
uriSubj as subject, uriPred as predicate and uriObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
uriSubj as subject, uriPred as predicate and uriObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
java.lang.String createResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId)
idSubj as subject, uriPred as predicate and uriObj as URI of the
object.Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.
java.lang.String createResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.util.Map<java.lang.String,java.lang.String> mapPredLit,
java.util.Map<java.lang.String,java.lang.String> mapPredUri,
java.util.Map<java.lang.String,java.lang.String> mapPredId,
java.lang.String statUri)
idSubj as subject, uriPred as predicate and uriObj as URI of the
object.statUri as URI of the reified statement. Then, reified the statement using the three Maps.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.mapPredLit - Map of predicate URIs and literal values to be used to reified the statement. Might be null or empty.mapPredUri - Map of predicate URIs and named resource object URIs to be used to reified the statement. Might be null or empty.mapPredId - Map of predicate URIs and anonymous resource object internal IDs to be used to reified the statement. Might be null
or empty.statUri - The URI of the created reified statement.
statUri).
void removeAnonResStat(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj)
uriSubj as subject, uriPred as predicate and idObj as object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
uriSubj - The URI of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.
void removeAnonResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj)
idSubj as subject, uriPred as predicate and idObj as object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.idObj - The internal ID of the object resource.PoKHelper.commit(),
#setAutoCommitMode(boolean)
void removeLitStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj)
idSubj as subject, uriPred as predicate and litObj as object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.litObj - The literal value of the object.
void removeResStatOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj)
idSubj as subject, uriPred as predicate and uriObj as object.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.uriPred - The URI of the predicate resource.uriObj - The URI of the object resource.void removeStatsOnAnonSubj(java.lang.String idSubj)
idSubj as subject, whatever could be predicates and objects involved in statements.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idSubj - The internal ID of the subject resource.PoKHelper.commit(),
#setAutoCommitMode(boolean)void removeStatsWithAnonRes(java.lang.String idObj)
idObj as object, whatever could be predicates and subject involved in statements.PieceOfKnowledge depending on #setAutoCommitMode(boolean).
idObj - The internal ID of the object resource.void removeAnonReifStat(java.lang.String statId)
statId - The internal ID of the reified statement to be removed.void removeReifStat(java.lang.String statUri)
statUri - The URI of the reified statement to be removed.
java.util.Map<java.lang.String,java.lang.String> setNSPrefix(java.lang.String prefix,
java.lang.String uri)
URI in the RDF/XML view of the PieceOfKnowledge data.skos may represent
http://www.w3.org/2004/02/skos/core#. If prefix or uri are null nothing is done. If
prefix is "", uri will be the default namespace. If prefix is ""
while uri is not, nothing is done.
prefix - The String to be used as namespace prefix in the RDF/XML of the PieceOfKnowledge.uri - The String to be represented by prefix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||