- public static Variable getVariableSelection(ReadGraph graph, Variable context) throws DatabaseException {
-
- Variable runtimeVariable = getRuntimeVariable(graph, context);
- if (runtimeVariable == null)
- throw new VariableException("no runtime variable for context " + context.getURI(graph));
- return runtimeVariable.getPropertyValue(graph, "variable");
-
- }
-
- public static Variable getPossibleVariableSelection(ReadGraph graph, Variable context) throws DatabaseException {
- Variable runtimeVariable = getRuntimeVariable(graph, context);
- return runtimeVariable == null ? null : (Variable) runtimeVariable.getPossiblePropertyValue(graph, "variable");
- }
-
- public static Resource getResourceSelection(ReadGraph graph, Variable context) throws DatabaseException {
+ public static Variable getVariableSelection(ReadGraph graph, Variable context) throws DatabaseException {
+ Variable runtimeVariable = getRuntimeVariable(graph, context);
+ if (runtimeVariable == null)
+ throw new InvalidVariableException("no runtime variable for context " + context.getURI(graph));
+ return runtimeVariable.getPropertyValue(graph, "variable");
+ }