org.ow2.weblab.core.helper.impl
Class JenaResourceHelperExtended
java.lang.Object
org.ow2.weblab.core.helper.impl.JenaResourceHelper
org.ow2.weblab.core.helper.impl.JenaResourceHelperExtended
- All Implemented Interfaces:
- ResourceHelper, ResourceHelperExtended
- Direct Known Subclasses:
- JenaSingleResourceHelperExtended
public class JenaResourceHelperExtended
- extends JenaResourceHelper
- implements ResourceHelperExtended
This is an implementation of the ResourceHelperExtended. It
loads every Annotations that are on this object and in the
inner Resources. If the loaded Resource is an
Annotation, its content won't be loaded.
- Author:
- EADS WebLab Team
- To do:
- Prevent the direct instantiation of this class.
- Date:
- 2008-11-25
|
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 uriReif)
|
java.util.List<java.lang.String> |
getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
|
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 uriReif)
|
java.util.List<java.lang.String> |
getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getAnonRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
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 uriReif)
|
java.util.List<java.lang.String> |
getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
|
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 uriReif)
|
java.util.List<java.lang.String> |
getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getLitsOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
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 uriReif)
|
java.util.List<java.lang.String> |
getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
|
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 uriReif)
|
java.util.List<java.lang.String> |
getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
java.util.List<java.lang.String> |
getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
|
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 class org.ow2.weblab.core.helper.impl.JenaResourceHelper |
addComposedQuery, addComposedResource, addDocument, addMediaUnit, addPieceOfKnowledge, addResource, addResultSet, addSimilarityQuery, getLitsOnPredSubj, getLitsOnPredSubj, getPreds, getPredsOnSubj, getRdfXml, getResource, getResource, getRessOnPredSubj, getSpecificResource, getSubjs, getSubjsOnPred, getSubjsOnPredLit, getSubjsOnPredRes, getType, hasLitStat, hasResStat, isDefinedResource, isFullyDefinedResource, loadFromRdfXml, loadFromRdfXml, setResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JenaResourceHelperExtended
public JenaResourceHelperExtended()
getAnonReifStats
public java.util.List<java.lang.String> getAnonReifStats()
- Returns:
- The
List of internal IDs of all the anonymous reified statements.
getAnonResOfAnonReifStat
public 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.
getAnonRessOnPredAnonResStatReif
public java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getAnonRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getAnonRessOnPredAnonStatReif
public java.util.List<java.lang.String> getAnonRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
getAnonRessOnPredAnonSubj
public 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
public java.util.List<java.lang.String> getAnonRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getAnonRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getAnonRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getAnonRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getAnonRessOnPredStatReif
public java.util.List<java.lang.String> getAnonRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
getAnonRessOnPredSubj
public 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.
getAnonResOnReifStat
public 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.
getAnonSubjs
public 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.
getAnonSubjOfAnonReifStat
public 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
public 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.
getAnonSubjsOnPred
public 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
public 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
public 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
public 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.
getLitOfAnonReifStat
public 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
public 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.
getLitsOnPredAnonResStatReif
public java.util.List<java.lang.String> getLitsOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getLitsOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getLitsOnPredAnonStatReif
public java.util.List<java.lang.String> getLitsOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
getLitsOnPredAnonSubj
public 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
public java.util.List<java.lang.String> getLitsOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getLitsOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getLitsOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getLitsOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getLitsOnPredStatReif
public java.util.List<java.lang.String> getLitsOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
getNSPrefixes
public 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.
getPredOfAnonReifStat
public 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
public java.lang.String getPredOfReifStat(java.lang.String statUri)
- Parameters:
statUri - The URI of the statement resource.
- Returns:
- The URI of the predicate resource.
getPredsOnAnonResStatReif
public 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
public 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.
getPredsOnAnonStatReif
public java.util.Set<java.lang.String> getPredsOnAnonStatReif(java.lang.String statId)
getPredsOnAnonSubj
public 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
public 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
public 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
public 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
public 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.
getPredsOnStatReif
public java.util.Set<java.lang.String> getPredsOnStatReif(java.lang.String statUri)
getReifStats
public java.util.List<java.lang.String> getReifStats()
- Returns:
- The
List of URIs of all the named reified statements.
getResOfAnonReifStat
public 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
public 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.
getRessOnPredAnonResStatReif
public java.util.List<java.lang.String> getRessOnPredAnonResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getRessOnPredAnonResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String idObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getRessOnPredAnonStatReif
public java.util.List<java.lang.String> getRessOnPredAnonStatReif(java.lang.String statId,
java.lang.String uriPred)
getRessOnPredAnonSubj
public 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
public java.util.List<java.lang.String> getRessOnPredLitStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getRessOnPredLitStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String litObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getRessOnPredResStatReif(java.lang.String uriSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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
public java.util.List<java.lang.String> getRessOnPredResStatReifOnAnonSubj(java.lang.String idSubj,
java.lang.String uriPred,
java.lang.String uriObj,
java.lang.String uriReif)
- 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.uriReif - 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.
getRessOnPredStatReif
public java.util.List<java.lang.String> getRessOnPredStatReif(java.lang.String statUri,
java.lang.String uriPred)
getSubjOfAnonReifStat
public 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
public 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.
getSubjsOnPredAnonRes
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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).
getRdfXml
public java.lang.String getRdfXml()
- Returns:
- A valid RDF/XML
String of the current changed made.
loadFromRdfXml
public void loadFromRdfXml(java.lang.String rdfXml)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
- Loads an RDF/XML
String, to be queried.
- Parameters:
rdfXml - A RDF/XML content to be loaded.
- Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException - If the rdfXml is not an RDF/XML valid String.
getLitsOnPredSubj
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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.