1 package org.simantics.db;
3 import org.simantics.db.exception.DatabaseException;
4 import org.simantics.scl.runtime.function.Function1;
6 public interface ConverterComputationalValue extends ComputationalValue {
9 * This computes the expression function that shall be called with given context as defined in ReadGraph.getRelatedValue2
10 * Context can be Resource (literal) or Variable.
11 * With Resource context this gets called with o != null and s==null and p==null
12 * With Variable property context this gets called with (represents of parent, represents, predicate resource)
14 Function1<Object,Object> getFunction(ReadGraph graph, Resource s, Resource o, Resource p) throws DatabaseException;