01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model;
12:
13: import org.ontoware.rdf2go.exception.ModelRuntimeException;
14: import org.ontoware.rdf2go.model.node.Node;
15:
16: /**
17: * @author voelkel
18: */
19: public interface QueryRow {
20:
21: /**
22: * @param varname without leading questionmark. E.g. use "x" not "?x".
23: * @return the binding for the variable with the name varname
24: */
25: public Node getValue(String varname);
26:
27: /**
28: * Convenience for <code>
29: * getValue("x").asString()
30: * </code>
31: */
32: public String getLiteralValue(String varname)
33: throws ModelRuntimeException;
34:
35: }
|