|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceHelperExtended
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).
PoKHelperExtended
,
ResourceHelper
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 |
---|
java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:uriSubj
, P:uriPred
, O: idObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:idSubj
, P:uriPred
, O: idObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredAnonSubj(java.lang.String idSubj, java.lang.String uriPred)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.
List
containing internal IDs of every anonymous resources that are object of statements having uriPred
as predicate
and idSubj
as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredLitStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:uriSubj
, P:uriPred
, O: litObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:idSubj
, P:uriPred
, O: litObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:uriSubj
, P:uriPred
, O: uriObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing internal IDs of every anonymous resources that are object of statements having uriReifPred
as
predicate and the reified statement (S:idSubj
, P:uriPred
, O: uriObj
) as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getAnonRessOnPredSubj(java.lang.String uriSubj, java.lang.String uriPred)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.
List
containing internal IDs of every anonymous resources that are object of statements having uriPred
as predicate
and uriSubj
as subject in the PieceOfKnowledge
.java.util.Set<java.lang.String> getAnonSubjs()
Set
containing internal IDs of every anonymous resources that are subject of any statement in the PieceOfKnowledge
.java.util.Set<java.lang.String> getAnonSubjsOnPred(java.lang.String uriPred)
uriPred
- The URI of the predicate resource.
Set
containing internal IDs of every anonymous resources that are subject of statements having uriPred
as predicate
in the PieceOfKnowledge
.java.util.Set<java.lang.String> getAnonSubjsOnPredAnonRes(java.lang.String uriPred, java.lang.String idObj)
uriPred
- The URI of the predicate resource.idObj
- The internal ID of the object resource.
Set
containing internal IDs of every anonymous resources that are subject of statements having uriPred
as predicate
and idObj
as object resource URI in the PieceOfKnowledge
.java.util.Set<java.lang.String> getAnonSubjsOnPredLit(java.lang.String uriPred, java.lang.String litObj)
uriPred
- The URI of the predicate resource.litObj
- The literal value of the object.
Set
containing internal IDs of every anonymous resources that are subject of statements having uriPred
as predicate
and litObj
as object literal value in the PieceOfKnowledge
.java.util.Set<java.lang.String> getAnonSubjsOnPredRes(java.lang.String uriPred, java.lang.String uriObj)
uriPred
- The URI of the predicate resource.uriObj
- The literal value of the object.
Set
containing internal IDs of every anonymous resources that are subject of statements having uriPred
as predicate
and uriObj
as object resource URI in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredAnonResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing values of every literals that are object of statements having uriReifPred
as predicate and the
reified statement (S:uriSubj
, P:uriPred
, O: idObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing values of every literals that are object of statements having uriReifPred
as predicate and the
reified statement (S:idSubj
, P:uriPred
, O: idObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredAnonSubj(java.lang.String idSubj, java.lang.String uriPred)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.
List
containing values of every literal that are object of statements having uriPred
as predicate and
idSubj
as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredLitStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement.
List
containing values of every literal that are object of statements having uriReifPred
as predicate and the reified
statement (S:uriSubj
, P:uriPred
, O: litObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing values of every literal that are object of statements having uriReifPred
as predicate and the reified
statement (S:idSubj
, P:uriPred
, O: litObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing values of every literal that are object of statements having uriReifPred
as predicate and the reified
statement (S:uriSubj
, P:uriPred
, O: uriObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing values of every literal that are object of statements having uriReifPred
as predicate and the reified
statement (S:idSubj
, P:uriPred
, O: uriObj
) as subject in the PieceOfKnowledge
.java.util.Map<java.lang.String,java.lang.String> getNSPrefixes()
PieceOfKnowledge
contained by this PoKHelperExtended
.
java.util.Set<java.lang.String> getPredsOnAnonResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred
as predicate and idObj
as object in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnAnonResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred
as predicate and idObj
as object in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnAnonSubj(java.lang.String idSubj)
idSubj
- The internal Id of the subject resource.
Set
containing URIs of every named resources that are predicate of any statement having idSubj
as subject in the
PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnLitStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred
as predicate and litObj
as object in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnLitStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred
as predicate and litObj
as object in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having uriSubj
as subject, uriPred
as predicate and uriObj
as object in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPredsOnResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.
Set
containing URIs of every named resources that are predicate of any statement reifing the statement having idSubj
as subject, uriPred
as predicate and uriObj
as object in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredAnonResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:uriSubj
, P:uriPred
, O: idObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.idObj
- The internal ID of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:idSubj
, P:uriPred
, O: idObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredAnonSubj(java.lang.String idSubj, java.lang.String uriPred)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.
List
containing URIs of every named resources that are object of statements having uriPred
as predicate and
idSubj
as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredLitStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement.
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:uriSubj
, P:uriPred
, O: litObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.litObj
- The value of the object literal of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:idSubj
, P:uriPred
, O: litObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
uriSubj
- The URI of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:uriSubj
, P:uriPred
, O: uriObj
) as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj, java.lang.String uriReifPred)
idSubj
- The internal ID of the subject resource of the statement.uriPred
- The URI of the predicate resource of the statement.uriObj
- The URI of the object resource of the statement.uriReifPred
- The URI of the predicate reifing the statement
List
containing URIs of every named resources that are object of statements having uriReifPred
as predicate and the
reified statement (S:idSubj
, P:uriPred
, O: uriObj
) as subject in the PieceOfKnowledge
.java.util.Set<java.lang.String> getSubjsOnPredAnonRes(java.lang.String uriPred, java.lang.String idObj)
uriPred
- The URI of the predicate resource.idObj
- The internal ID of the object resource.
Set
containing URIs of every named resources that are subject of statements having uriPred
as predicate and
idObj
as object resource URI in the PieceOfKnowledge
.boolean hasAnonResStat(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.idObj
- The internal Id of the object resource.
PieceOfKnowledge
contains at least one statement having uriSubj
as subject, uriPred
as
predicate and idObj
as internal ID of the object.boolean hasAnonResStatOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.idObj
- The internal Id of the object resource.
PieceOfKnowledge
contains at least one statement having idSubj
as subject, uriPred
as
predicate and idObj
as internal ID of the object.boolean hasLitStatOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.litObj
- The literal value of the object.
PieceOfKnowledge
contains at least one statement having idSubj
as subject, uriPred
as
predicate and litObj
as literal value of the object.boolean hasResStatOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj)
idSubj
- The internal Id of the subject resource.uriPred
- The URI of the predicate resource.uriObj
- The URI of the object resource.
PieceOfKnowledge
contains at least one statement having idSubj
as subject, uriPred
as
predicate and uriObj
as internal ID of the object.boolean isAnonResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String idObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.idObj
- The internal ID of the object resource.
boolean isAnonResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String idObj)
idSubj
- The internal ID of the subject resource.uriPred
- The URI of the predicate resource.idObj
- The internal ID of the object resource.
boolean isDefinedAnonRes(java.lang.String id)
PieceOfKnowledge
.
id
- The internal Id to test existence in the PieceOfKnowledge
.
true
if the URI is defined as an anonymous resource internal ID in the PieceOfKnowledge
.boolean isLitStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.litObj
- The value of the object literal.
boolean isLitStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String litObj)
idSubj
- The internal ID of the subject resource.uriPred
- The URI of the predicate resource.litObj
- The value of the object literal.
boolean isResStatReif(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.uriObj
- The URI of the object resource.
boolean isResStatReifOnAnonSubj(java.lang.String idSubj, java.lang.String uriPred, java.lang.String uriObj)
idSubj
- The internal ID of the subject resource.uriPred
- The URI of the predicate resource.uriObj
- The URI of the object resource.
java.lang.String getAnonSubjOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
null
if the subject is not an anonymous resource.java.lang.String getAnonSubjOfReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
null
if the subject is not an anonymous resource.java.lang.String getSubjOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
null
if the subject is not a named resource.java.lang.String getSubjOfReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
null
if the subject is not a named resource.java.lang.String getPredOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
java.lang.String getPredOfReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
java.lang.String getAnonResOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
null
if the object is not an anonymous resource.java.lang.String getAnonResOnReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
null
if the object is not an anonymous resource.java.lang.String getLitOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
null
if the object is not a literal.java.lang.String getLitOfReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
null
if the object is not a literal.java.lang.String getResOfAnonReifStat(java.lang.String statId)
statId
- The internal ID of the statement resource.
null
if the object is not a named resource.java.lang.String getResOfReifStat(java.lang.String statUri)
statUri
- The URI of the statement resource.
null
if the object is not a named resource.java.util.List<java.lang.String> getAnonReifStats()
List
of internal IDs of all the anonymous reified statements.java.util.List<java.lang.String> getReifStats()
List
of URIs of all the named reified statements.java.util.Set<java.lang.String> getPredsOnAnonStatReif(java.lang.String statId)
java.util.Set<java.lang.String> getPredsOnStatReif(java.lang.String statUri)
java.util.List<java.lang.String> getAnonRessOnPredAnonStatReif(java.lang.String statId, java.lang.String uriPred)
java.util.List<java.lang.String> getRessOnPredAnonStatReif(java.lang.String statId, java.lang.String uriPred)
java.util.List<java.lang.String> getLitsOnPredAnonStatReif(java.lang.String statId, java.lang.String uriPred)
java.util.List<java.lang.String> getAnonRessOnPredStatReif(java.lang.String statUri, java.lang.String uriPred)
java.util.List<java.lang.String> getRessOnPredStatReif(java.lang.String statUri, java.lang.String uriPred)
java.util.List<java.lang.String> getLitsOnPredStatReif(java.lang.String statUri, java.lang.String uriPred)
java.lang.String getRdfXml()
String
of the current changed made.void loadFromRdfXml(java.lang.String rdfXml) throws WebLabCheckedException
String
, to be queried.
rdfXml
- A RDF/XML content to be loaded.
WebLabCheckedException
- If the rdfXml
is not an RDF/XML valid String
.java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj, java.lang.String uriPred)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.
List
containing values of every literal that are object of statements having uriPred
as predicate and
uriSubj
as subject in the PieceOfKnowledge
.java.util.List<java.lang.String> getLitsOnPredSubj(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String language)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.language
- The xml:lang attribute for this literal.
List
containing values in language language
of every literal that are object of statements having uriPred
as predicate and
uriSubj
as subject in the PieceOfKnowledge
. For more information about language attribute, see http://www.w3.org/TR/REC-xml/#sec-lang-tag.java.util.Set<java.lang.String> getPredsOnSubj(java.lang.String uriSubj)
uriSubj
- The URI of the subject resource.
Set
containing URIs of every named resources that are predicate of any statement having uriSubj
as subject in the
PieceOfKnowledge
.java.util.List<java.lang.String> getRessOnPredSubj(java.lang.String uriSubj, java.lang.String uriPred)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.
List
containing URIs of every named resources that are object of statements having uriPred
as predicate and
uriSubj
as subject in the PieceOfKnowledge
.java.util.Set<java.lang.String> getSubjs()
Set
containing URIs of every named resources that are subject of any statement in the PieceOfKnowledge
.java.util.Set<java.lang.String> getSubjsOnPred(java.lang.String uriPred)
uriPred
- The URI of the predicate resource.
Set
containing URIs of every named resources that are subject of statements having uriPred
as predicate in the
PieceOfKnowledge
.java.util.Set<java.lang.String> getSubjsOnPredLit(java.lang.String uriPred, java.lang.String litObj)
uriPred
- The URI of the predicate resource.litObj
- The literal value of the object.
Set
containing URIs of every named resources that are subject of statements having uriPred
as predicate and
litObj
as object literal value in the PieceOfKnowledge
.java.util.Set<java.lang.String> getSubjsOnPredRes(java.lang.String uriPred, java.lang.String uriObj)
uriPred
- The URI of the predicate resource.uriObj
- The URI of the object resource.
Set
containing URIs of every named resources that are subject of statements having uriPred
as predicate and
uriObj
as object named resource URI in the PieceOfKnowledge
.boolean hasLitStat(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String litObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.litObj
- The literal value of the object.
PieceOfKnowledge
contains at least one statement having uriSubj
as subject, uriPred
as
predicate and litObj
as literal value of the object.boolean hasResStat(java.lang.String uriSubj, java.lang.String uriPred, java.lang.String uriObj)
uriSubj
- The URI of the subject resource.uriPred
- The URI of the predicate resource.uriObj
- The URI of the object resource.
PieceOfKnowledge
contains at least one statement having uriSubj
as subject, uriPred
as
predicate and uriObj
as URI of the object.boolean isDefinedResource(java.lang.String uri)
PieceOfKnowledge
.
uri
- The URI to test existence in the PieceOfKnowledge
.
true
if the URI is defined as a named resource URI in the PieceOfKnowledge
.java.util.Set<java.lang.String> getPreds()
Set
containing URIs of properties that are predicate of any statement in the PieceOfKnowledge
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |