Object oldGraph = sclContext.get("graph");
CompileStructuralValueRequest request = new CompileStructuralValueRequest(graph, context);
try {
- Function1<Variable,Object> exp = graph.syncRequest(request, TransientCacheListener.<Function1<Variable,Object>>instance());
+ Function1<Object,Object> exp = graph.syncRequest(request, TransientCacheListener.instance());
sclContext.put("graph", graph);
return exp.apply(context);
} catch (Throwable t) {
}
}
+ public static Function1<Object, Object> compile(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException {
+ return graph.syncRequest(new CompileStructuralValueRequest(s, o, p), TransientCacheListener.instance());
+ }
+
@Override
protected String getExpressionText(ReadGraph graph)
throws DatabaseException {
public int hashCode() {
final int prime = 31;
int result = 1;
+ result = prime * result + ((relation == null) ? 0 : relation.hashCode());
result = prime * result + ((component == null) ? 0 : component.hashCode());
result = prime * result + ((literal == null) ? 0 : literal.hashCode());
return result;
if (getClass() != obj.getClass())
return false;
CompileStructuralValueRequest other = (CompileStructuralValueRequest) obj;
+ if (relation == null) {
+ if (other.relation != null)
+ return false;
+ } else if (!relation.equals(other.relation))
+ return false;
if (component == null) {
if (other.component != null)
return false;