fr.inria.acacia.corese.api
Interface IResult
public interface IResult
This interface provides methods to handle results
- Author:
- Virginie Bottollier
getResultValue
IResultValue getResultValue(java.lang.String variableName)
- Parameters:
variableName
- the name of the variable
- Returns:
- a IResultValue which corresponds to values of this variable in this result (note: in
case of a group, we return the first result value)
getResultValues
IResultValue[] getResultValues(java.lang.String variableName)
- Parameters:
variableName
- the name of the variable
- Returns:
- an array of IResultValue which corresponds to values of this variable in this result
(note: when results are grouped, there may be several values for one variable, that is why we
provide an array)
getStringValues
java.lang.String[] getStringValues(java.lang.String variableName)
- Parameters:
variableName
- the name of the variable
- Returns:
- an array of String which corresponds to labels of values of this variable in this result
(note: when results are grouped, there may be several values for one variable, that is why we
provide an array)
getStringValue
java.lang.String getStringValue(java.lang.String variableName)
- Parameters:
variableName
- the name of the variable
- Returns:
- a String which corresponds to the label of value of this variable in this result (note:
in case of a group, we return the first result value)
getSPARQLValues
java.lang.String[] getSPARQLValues(java.lang.String variableName)
- Parameters:
variableName
- the name of the variable
- Returns:
- an array of String which corresponds the SPARQL value of this variable
in this result (note: when results are grouped, there may be several values for one
variable, that is why we provide an array)
getSimilarity
double getSimilarity()
- Returns:
- a number between 0 and 1 to measure the similarity in approximate search mode (1 means
the perfect matches)
isBound
boolean isBound(java.lang.String var)
- Returns:
- a boolean to indicate if the given variable has a value in the result
COPYRIGHT INRIA © 2007 - Company: INRIA - Project: Acacia - ALL RIGHTS RESERVED.