| java.lang.Object org.ontoware.rdfreactor.runtime.RDFReactorRuntime
RDFReactorRuntime | public class RDFReactorRuntime (Code) | | |
Field Summary | |
static Logger | log |
genericResource2RDF2Goresource | public static Resource genericResource2RDF2Goresource(Model model, Resource o)(Code) | | Work around a nasty issue in RepositoryModel: One cannot add a Resource to anything
It must either be a BlankNode OR a URI.
Parameters: model - Parameters: o - |
java2node | public static Node java2node(Model model, Object reactorValue)(Code) | | Parameters: model - Parameters: reactorValue - a single RDF2Go Node from a Java object |
node2javatype | public static Object node2javatype(Model model, Node n, java.lang.Class> returnType) throws ModelRuntimeException(Code) | | Convert RDF entities to ReactorBaseNamed and primitive java values. This
is the main method for calling other converter methods.
Parameters: model - -the underlying RDF2Go model Parameters: n - -convert this object. type may be: URI, BlankNode,LanguageTagLiteral, DatatypeLiteral, String Parameters: returnType - -n is converted to this type, if it implements the neededconstructor a single object of returnType converted from n throws: ModelRuntimeException - |
resource2reactorbase | public static Object resource2reactorbase(Model model, Node node, Class> targetType)(Code) | | Convert an RDF2Go resource to the target type, which must be a subclass
of ReactorBase.
Parameters: model - -the underlying RDF2Go model Parameters: node - -convert this object, can be a URI or a BlankNode Parameters: targetType - -used to find constructor for creating the returned object. hasto implement the following constructor c: o is URI: c(Model, URI, boolean) or c(Model, Object, boolean) o is BlankNode: c(Model, BlankNode) or c(Model, BlankNode) object of the given target type with contents of given object |
|
|