org.weblab_project.core.helper
Interface ResourceHelperExtended

All Superinterfaces:
ResourceHelper

public interface ResourceHelperExtended
extends ResourceHelper

Extended API to manipulate Annotation objects that are present on a Resource and its potential sub-resources.

Note that if the given Resource is it self an PieceOfKnowledge, it will not load its content but the content of every Annotation on this PieceOfKnowledge (and recursively then for each Annotation loaded).

Author:
EADS WebLab Team
See Also:
PoKHelperExtended, ResourceHelper
Date:
2008-09-18

Method Summary
 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.
 
Methods inherited from interface org.weblab_project.core.helper.ResourceHelper
getResource, getResource, getSpecificResource, getType, isFullyDefinedResource, setResource
 

Method Detail

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)

getRdfXml

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

loadFromRdfXml

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

Parameters:
rdfXml - A RDF/XML content to be loaded.
Throws:
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.


Copyright © 2004-2010. All Rights Reserved.