Search in sources :

Example 1 with Resource

use of eu.esdihumboldt.hale.io.oml.internal.goml.rdf.Resource in project hale by halestudio.

the class OmlRdfReader method getTransformation.

/**
 * Converts from the FunctionType to the Transformation
 *
 * @param transf
 * @return
 */
private Transformation getTransformation(FunctionType transf) {
    Transformation trans = new Transformation();
    if (transf != null) {
        // set Service
        if (transf.getResource() != null) {
            Resource resource = new Resource(transf.getResource());
            trans.setService(resource);
            // set parameter list
            if (transf.getParam() != null) {
                trans.setParameters(getParameters(transf.getParam()));
            }
        } else {
            trans = null;
        }
    }
    return trans;
}
Also used : Transformation(eu.esdihumboldt.hale.io.oml.internal.goml.oml.ext.Transformation) Resource(eu.esdihumboldt.hale.io.oml.internal.goml.rdf.Resource)

Aggregations

Transformation (eu.esdihumboldt.hale.io.oml.internal.goml.oml.ext.Transformation)1 Resource (eu.esdihumboldt.hale.io.oml.internal.goml.rdf.Resource)1