org.weblab_project.core.helper
Interface AnnotationHelperExtended

All Superinterfaces:
AnnotationHelper, PoKHelper

Deprecated.

@Deprecated
public interface AnnotationHelperExtended
extends AnnotationHelper

WARNING:
Use PoKHelperExtended instead.

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.weblab_project.core.helper.AnnotationHelper
getAnnotation, setAnnotation
 
Methods inherited from interface org.weblab_project.core.helper.PoKHelper
commit, getPoK, setAutoCommitMode, setPoK
 

Method Detail

getRdfXml

java.lang.String getRdfXml()
Returns:
A valid RDF/XML String of the current changed made.

loadFromRdfXml

void loadFromRdfXml(java.lang.String rdfXml)
                    throws org.weblab_project.core.exception.WebLabCheckedException
Loads an RDF/XML String, to be queried.

Parameters:
rdfXml - A RDF/XML content to be loaded.
Throws:
org.weblab_project.core.exception.WebLabCheckedException - If the rdfXml is not an RDF/XML valid String.

getLitsOnPredSubj

java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj,
                                                   java.lang.String uriPred)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing values of every literal that are object of statements having uriPred as predicate and uriSubj as subject in the PieceOfKnowledge.

getLitsOnPredSubj

java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj,
                                                   java.lang.String uriPred,
                                                   java.lang.String language)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
language - The xml:lang attribute for this literal.
Returns:
A 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.

getPredsOnSubj

java.util.Set<java.lang.String> getPredsOnSubj(java.lang.String uriSubj)
Parameters:
uriSubj - The URI of the subject resource.
Returns:
A Set containing URIs of every named resources that are predicate of any statement having uriSubj as subject in the PieceOfKnowledge.

getRessOnPredSubj

java.util.List<java.lang.String> getRessOnPredSubj(java.lang.String uriSubj,
                                                   java.lang.String uriPred)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing URIs of every named resources that are object of statements having uriPred as predicate and uriSubj as subject in the PieceOfKnowledge.

getSubjs

java.util.Set<java.lang.String> getSubjs()
Returns:
A Set containing URIs of every named resources that are subject of any statement in the PieceOfKnowledge.

getSubjsOnPred

java.util.Set<java.lang.String> getSubjsOnPred(java.lang.String uriPred)
Parameters:
uriPred - The URI of the predicate resource.
Returns:
A Set containing URIs of every named resources that are subject of statements having uriPred as predicate in the PieceOfKnowledge.

getSubjsOnPredLit

java.util.Set<java.lang.String> getSubjsOnPredLit(java.lang.String uriPred,
                                                  java.lang.String litObj)
Parameters:
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.
Returns:
A 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.

getSubjsOnPredRes

java.util.Set<java.lang.String> getSubjsOnPredRes(java.lang.String uriPred,
                                                  java.lang.String uriObj)
Parameters:
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.
Returns:
A 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.

hasLitStat

boolean hasLitStat(java.lang.String uriSubj,
                   java.lang.String uriPred,
                   java.lang.String litObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as predicate and litObj as literal value of the object.

hasResStat

boolean hasResStat(java.lang.String uriSubj,
                   java.lang.String uriPred,
                   java.lang.String uriObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as predicate and uriObj as URI of the object.

isDefinedResource

boolean isDefinedResource(java.lang.String uri)
Tests if the given URI is defined as a named resource in the PieceOfKnowledge.

Parameters:
uri - The URI to test existence in the PieceOfKnowledge.
Returns:
true if the URI is defined as a named resource URI in the PieceOfKnowledge.

getPreds

java.util.Set<java.lang.String> getPreds()
Returns:
A Set containing URIs of properties that are predicate of any statement in the PieceOfKnowledge.

createLitStat

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.

Parameters:
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.

createLitStat

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.

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.

createResStat

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.

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.

removeLitStat

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.

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.

removeResStat

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.

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.

removeStatsOnSubj

void removeStatsOnSubj(java.lang.String uriSubj)
Removes every statements having uriSubj as subject whatever are predicate and object.

Parameters:
uriSubj - The URI of the subject resource.

removeStatsWithLit

void removeStatsWithLit(java.lang.String litObj)
Removes every statements having litObj as object literal value whatever are subject and predicate.

Parameters:
litObj - The literal value of the object.

removeStatsWithPred

void removeStatsWithPred(java.lang.String uriPred)
Removes every statements having uriPred as predicate whatever are subject and object.

Parameters:
uriPred - The URI of the predicate resource.

removeStatsWithRes

void removeStatsWithRes(java.lang.String uriObj)
Removes every statements having uriObj as object named resource URI value whatever are subject and predicate.

Parameters:
uriObj - The URI of the object resource. The URI of the object resource.

getAnonRessOnPredAnonResStatReif

java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReif(java.lang.String uriSubj,
                                                                  java.lang.String uriPred,
                                                                  java.lang.String idObj,
                                                                  java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredAnonResStatReifOnAnonSubj

java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                            java.lang.String uriPred,
                                                                            java.lang.String idObj,
                                                                            java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredAnonSubj

java.util.List<java.lang.String> getAnonRessOnPredAnonSubj(java.lang.String idSubj,
                                                           java.lang.String uriPred)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing internal IDs of every anonymous resources that are object of statements having uriPred as predicate and idSubj as subject in the PieceOfKnowledge.

getAnonRessOnPredLitStatReif

java.util.List<java.lang.String> getAnonRessOnPredLitStatReif(java.lang.String uriSubj,
                                                              java.lang.String uriPred,
                                                              java.lang.String litObj,
                                                              java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredLitStatReifOnAnonSubj

java.util.List<java.lang.String> getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
                                                                        java.lang.String uriPred,
                                                                        java.lang.String litObj,
                                                                        java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredResStatReif

java.util.List<java.lang.String> getAnonRessOnPredResStatReif(java.lang.String uriSubj,
                                                              java.lang.String uriPred,
                                                              java.lang.String uriObj,
                                                              java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredResStatReifOnAnonSubj

java.util.List<java.lang.String> getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                        java.lang.String uriPred,
                                                                        java.lang.String uriObj,
                                                                        java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getAnonRessOnPredSubj

java.util.List<java.lang.String> getAnonRessOnPredSubj(java.lang.String uriSubj,
                                                       java.lang.String uriPred)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing internal IDs of every anonymous resources that are object of statements having uriPred as predicate and uriSubj as subject in the PieceOfKnowledge.

getAnonSubjs

java.util.Set<java.lang.String> getAnonSubjs()
Returns:
A Set containing internal IDs of every anonymous resources that are subject of any statement in the PieceOfKnowledge.

getAnonSubjsOnPred

java.util.Set<java.lang.String> getAnonSubjsOnPred(java.lang.String uriPred)
Parameters:
uriPred - The URI of the predicate resource.
Returns:
A Set containing internal IDs of every anonymous resources that are subject of statements having uriPred as predicate in the PieceOfKnowledge.

getAnonSubjsOnPredAnonRes

java.util.Set<java.lang.String> getAnonSubjsOnPredAnonRes(java.lang.String uriPred,
                                                          java.lang.String idObj)
Parameters:
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
Returns:
A 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.

getAnonSubjsOnPredLit

java.util.Set<java.lang.String> getAnonSubjsOnPredLit(java.lang.String uriPred,
                                                      java.lang.String litObj)
Parameters:
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.
Returns:
A 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.

getAnonSubjsOnPredRes

java.util.Set<java.lang.String> getAnonSubjsOnPredRes(java.lang.String uriPred,
                                                      java.lang.String uriObj)
Parameters:
uriPred - The URI of the predicate resource.
uriObj - The literal value of the object.
Returns:
A 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.

getLitsOnPredAnonResStatReif

java.util.List<java.lang.String> getLitsOnPredAnonResStatReif(java.lang.String uriSubj,
                                                              java.lang.String uriPred,
                                                              java.lang.String idObj,
                                                              java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getLitsOnPredAnonResStatReifOnAnonSubj

java.util.List<java.lang.String> getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                        java.lang.String uriPred,
                                                                        java.lang.String idObj,
                                                                        java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getLitsOnPredAnonSubj

java.util.List<java.lang.String> getLitsOnPredAnonSubj(java.lang.String idSubj,
                                                       java.lang.String uriPred)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing values of every literal that are object of statements having uriPred as predicate and idSubj as subject in the PieceOfKnowledge.

getLitsOnPredLitStatReif

java.util.List<java.lang.String> getLitsOnPredLitStatReif(java.lang.String uriSubj,
                                                          java.lang.String uriPred,
                                                          java.lang.String litObj,
                                                          java.lang.String uriReifPred)
Parameters:
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.
Returns:
A 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.

getLitsOnPredLitStatReifOnAnonSubj

java.util.List<java.lang.String> getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
                                                                    java.lang.String uriPred,
                                                                    java.lang.String litObj,
                                                                    java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getLitsOnPredResStatReif

java.util.List<java.lang.String> getLitsOnPredResStatReif(java.lang.String uriSubj,
                                                          java.lang.String uriPred,
                                                          java.lang.String uriObj,
                                                          java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getLitsOnPredResStatReifOnAnonSubj

java.util.List<java.lang.String> getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                    java.lang.String uriPred,
                                                                    java.lang.String uriObj,
                                                                    java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getNSPrefixes

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.

Returns:
The current the map of prefixes/uris used.

getPredsOnAnonResStatReif

java.util.Set<java.lang.String> getPredsOnAnonResStatReif(java.lang.String uriSubj,
                                                          java.lang.String uriPred,
                                                          java.lang.String idObj)
Parameters:
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.
Returns:
A 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.

getPredsOnAnonResStatReifOnAnonSubj

java.util.Set<java.lang.String> getPredsOnAnonResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                    java.lang.String uriPred,
                                                                    java.lang.String idObj)
Parameters:
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.
Returns:
A 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.

getPredsOnAnonSubj

java.util.Set<java.lang.String> getPredsOnAnonSubj(java.lang.String idSubj)
Parameters:
idSubj - The internal Id of the subject resource.
Returns:
A Set containing URIs of every named resources that are predicate of any statement having idSubj as subject in the PieceOfKnowledge.

getPredsOnLitStatReif

java.util.Set<java.lang.String> getPredsOnLitStatReif(java.lang.String uriSubj,
                                                      java.lang.String uriPred,
                                                      java.lang.String litObj)
Parameters:
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.
Returns:
A 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.

getPredsOnLitStatReifOnAnonSubj

java.util.Set<java.lang.String> getPredsOnLitStatReifOnAnonSubj(java.lang.String idSubj,
                                                                java.lang.String uriPred,
                                                                java.lang.String litObj)
Parameters:
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.
Returns:
A 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.

getPredsOnResStatReif

java.util.Set<java.lang.String> getPredsOnResStatReif(java.lang.String uriSubj,
                                                      java.lang.String uriPred,
                                                      java.lang.String uriObj)
Parameters:
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.
Returns:
A 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.

getPredsOnResStatReifOnAnonSubj

java.util.Set<java.lang.String> getPredsOnResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                java.lang.String uriPred,
                                                                java.lang.String uriObj)
Parameters:
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.
Returns:
A 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.

getRessOnPredAnonResStatReif

java.util.List<java.lang.String> getRessOnPredAnonResStatReif(java.lang.String uriSubj,
                                                              java.lang.String uriPred,
                                                              java.lang.String idObj,
                                                              java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getRessOnPredAnonResStatReifOnAnonSubj

java.util.List<java.lang.String> getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                        java.lang.String uriPred,
                                                                        java.lang.String idObj,
                                                                        java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getRessOnPredAnonSubj

java.util.List<java.lang.String> getRessOnPredAnonSubj(java.lang.String idSubj,
                                                       java.lang.String uriPred)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
Returns:
A List containing URIs of every named resources that are object of statements having uriPred as predicate and idSubj as subject in the PieceOfKnowledge.

getRessOnPredLitStatReif

java.util.List<java.lang.String> getRessOnPredLitStatReif(java.lang.String uriSubj,
                                                          java.lang.String uriPred,
                                                          java.lang.String litObj,
                                                          java.lang.String uriReifPred)
Parameters:
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.
Returns:
A 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.

getRessOnPredLitStatReifOnAnonSubj

java.util.List<java.lang.String> getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
                                                                    java.lang.String uriPred,
                                                                    java.lang.String litObj,
                                                                    java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getRessOnPredResStatReif

java.util.List<java.lang.String> getRessOnPredResStatReif(java.lang.String uriSubj,
                                                          java.lang.String uriPred,
                                                          java.lang.String uriObj,
                                                          java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getRessOnPredResStatReifOnAnonSubj

java.util.List<java.lang.String> getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
                                                                    java.lang.String uriPred,
                                                                    java.lang.String uriObj,
                                                                    java.lang.String uriReifPred)
Parameters:
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
Returns:
A 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.

getSubjsOnPredAnonRes

java.util.Set<java.lang.String> getSubjsOnPredAnonRes(java.lang.String uriPred,
                                                      java.lang.String idObj)
Parameters:
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
Returns:
A 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.

hasAnonResStat

boolean hasAnonResStat(java.lang.String uriSubj,
                       java.lang.String uriPred,
                       java.lang.String idObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal Id of the object resource.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having uriSubj as subject, uriPred as predicate and idObj as internal ID of the object.

hasAnonResStatOnAnonSubj

boolean hasAnonResStatOnAnonSubj(java.lang.String idSubj,
                                 java.lang.String uriPred,
                                 java.lang.String idObj)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal Id of the object resource.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having idSubj as subject, uriPred as predicate and idObj as internal ID of the object.

hasLitStatOnAnonSubj

boolean hasLitStatOnAnonSubj(java.lang.String idSubj,
                             java.lang.String uriPred,
                             java.lang.String litObj)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having idSubj as subject, uriPred as predicate and litObj as literal value of the object.

hasResStatOnAnonSubj

boolean hasResStatOnAnonSubj(java.lang.String idSubj,
                             java.lang.String uriPred,
                             java.lang.String uriObj)
Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.
Returns:
Whether or not the PieceOfKnowledge contains at least one statement having idSubj as subject, uriPred as predicate and uriObj as internal ID of the object.

isAnonResStatReif

boolean isAnonResStatReif(java.lang.String uriSubj,
                          java.lang.String uriPred,
                          java.lang.String idObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

isAnonResStatReifOnAnonSubj

boolean isAnonResStatReifOnAnonSubj(java.lang.String idSubj,
                                    java.lang.String uriPred,
                                    java.lang.String idObj)
Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

isDefinedAnonRes

boolean isDefinedAnonRes(java.lang.String id)
Tests if the given internal ID is defined as an anonymous resource in the PieceOfKnowledge.

Parameters:
id - The internal Id to test existence in the PieceOfKnowledge.
Returns:
true if the URI is defined as an anonymous resource internal ID in the PieceOfKnowledge.

isLitStatReif

boolean isLitStatReif(java.lang.String uriSubj,
                      java.lang.String uriPred,
                      java.lang.String litObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The value of the object literal.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

isLitStatReifOnAnonSubj

boolean isLitStatReifOnAnonSubj(java.lang.String idSubj,
                                java.lang.String uriPred,
                                java.lang.String litObj)
Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The value of the object literal.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

isResStatReif

boolean isResStatReif(java.lang.String uriSubj,
                      java.lang.String uriPred,
                      java.lang.String uriObj)
Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

isResStatReifOnAnonSubj

boolean isResStatReifOnAnonSubj(java.lang.String idSubj,
                                java.lang.String uriPred,
                                java.lang.String uriObj)
Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.
Returns:
Whether or not the specified statement exists and is reified (i.e. subject of other statement).

getAnonSubjOfAnonReifStat

java.lang.String getAnonSubjOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The internal ID of the subject resource or null if the subject is not an anonymous resource.

getAnonSubjOfReifStat

java.lang.String getAnonSubjOfReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The internal ID of the subject resource or null if the subject is not an anonymous resource.

getSubjOfAnonReifStat

java.lang.String getSubjOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The URI of the subject resource or null if the subject is not a named resource.

getSubjOfReifStat

java.lang.String getSubjOfReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The URI of the subject resource or null if the subject is not a named resource.

getPredOfAnonReifStat

java.lang.String getPredOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The URI of the predicate resource.

getPredOfReifStat

java.lang.String getPredOfReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The URI of the predicate resource.

getAnonResOfAnonReifStat

java.lang.String getAnonResOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The internal ID of the object resource or null if the object is not an anonymous resource.

getAnonResOnReifStat

java.lang.String getAnonResOnReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The internal ID of the object resource or null if the object is not an anonymous resource.

getLitOfAnonReifStat

java.lang.String getLitOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The literal value of the object or null if the object is not a literal.

getLitOfReifStat

java.lang.String getLitOfReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The literal value of the object or null if the object is not a literal.

getResOfAnonReifStat

java.lang.String getResOfAnonReifStat(java.lang.String statId)
Parameters:
statId - The internal ID of the statement resource.
Returns:
The URI of the object resource or null if the object is not a named resource.

getResOfReifStat

java.lang.String getResOfReifStat(java.lang.String statUri)
Parameters:
statUri - The URI of the statement resource.
Returns:
The URI of the object resource or null if the object is not a named resource.

getAnonReifStats

java.util.List<java.lang.String> getAnonReifStats()
Returns:
The List of internal IDs of all the anonymous reified statements.

getReifStats

java.util.List<java.lang.String> getReifStats()
Returns:
The List of URIs of all the named reified statements.

getPredsOnAnonStatReif

java.util.Set<java.lang.String> getPredsOnAnonStatReif(java.lang.String statId)

getPredsOnStatReif

java.util.Set<java.lang.String> getPredsOnStatReif(java.lang.String statUri)

getAnonRessOnPredAnonStatReif

java.util.List<java.lang.String> getAnonRessOnPredAnonStatReif(java.lang.String statId,
                                                               java.lang.String uriPred)

getRessOnPredAnonStatReif

java.util.List<java.lang.String> getRessOnPredAnonStatReif(java.lang.String statId,
                                                           java.lang.String uriPred)

getLitsOnPredAnonStatReif

java.util.List<java.lang.String> getLitsOnPredAnonStatReif(java.lang.String statId,
                                                           java.lang.String uriPred)

getAnonRessOnPredStatReif

java.util.List<java.lang.String> getAnonRessOnPredStatReif(java.lang.String statUri,
                                                           java.lang.String uriPred)

getRessOnPredStatReif

java.util.List<java.lang.String> getRessOnPredStatReif(java.lang.String statUri,
                                                       java.lang.String uriPred)

getLitsOnPredStatReif

java.util.List<java.lang.String> getLitsOnPredStatReif(java.lang.String statUri,
                                                       java.lang.String uriPred)

createAnonResStat

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
See Also:
#setAutoCommitMode(boolean), PoKHelper.commit()

createAnonResStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
See Also:
#setAutoCommitMode(boolean), PoKHelper.commit()

createAnonResStatReif

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createAnonResStatReif

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

createAnonResStatReifOnAnonSubj

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createAnonResStatReifOnAnonSubj

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

createLitStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.

createLitStatReif

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

createLitStatReif

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createLitStatReifOnAnonSubj

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createLitStatReifOnAnonSubj

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

createResStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal Id of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.

createResStatReif

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createResStatReif

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

createResStatReifOnAnonSubj

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.
Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The internal ID of the anonymous reified statement created.

createResStatReifOnAnonSubj

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.
Affects statUri as URI of the reified statement. Then, reified the statement using the three Maps.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
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.
Returns:
The uri of the created statement (i.e. statUri).

removeAnonResStat

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
uriSubj - The URI of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.

removeAnonResStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
idObj - The internal ID of the object resource.
See Also:
PoKHelper.commit(), #setAutoCommitMode(boolean)

removeLitStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
litObj - The literal value of the object.

removeResStatOnAnonSubj

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.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal ID of the subject resource.
uriPred - The URI of the predicate resource.
uriObj - The URI of the object resource.

removeStatsOnAnonSubj

void removeStatsOnAnonSubj(java.lang.String idSubj)
Removes every statements having idSubj as subject, whatever could be predicates and objects involved in statements.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idSubj - The internal ID of the subject resource.
See Also:
PoKHelper.commit(), #setAutoCommitMode(boolean)

removeStatsWithAnonRes

void removeStatsWithAnonRes(java.lang.String idObj)
Removes every statements having idObj as object, whatever could be predicates and subject involved in statements.
Changes are applied to the PieceOfKnowledge depending on #setAutoCommitMode(boolean).

Parameters:
idObj - The internal ID of the object resource.

removeAnonReifStat

void removeAnonReifStat(java.lang.String statId)
Removes all the statements about the reified one and removes it itself.

Parameters:
statId - The internal ID of the reified statement to be removed.

removeReifStat

void removeReifStat(java.lang.String statUri)
Removes all the statements about the reified one and removes it itself.

Parameters:
statUri - The URI of the reified statement to be removed.

setNSPrefix

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.
The prefixes are used in other RDF representations such as Turtle. For instance, 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.

Parameters:
prefix - The String to be used as namespace prefix in the RDF/XML of the PieceOfKnowledge.
uri - The String to be represented by prefix
Returns:
The current the map of prefixes/uris used.


Copyright © 2004-2009. All Rights Reserved.