Package eu.admire.registry.pe.rdf.function

Examples of eu.admire.registry.pe.rdf.function.SimpleRDFParameter


    Map<String, Set<Parameter>> inputElementDescriptor = null;
    inputElementDescriptor = new HashMap<String, Set<Parameter>>();
    String property1 = "containsConnection";

    SimpleRDFParameter outputTypeDescriptor = new SimpleRDFParameter(
        "Test2OutputFunction");

    Map<String, Parameter> functionInputs = new HashMap<String, Parameter>();

    SimpleRDFParameter inputTypeDescriptor1 = new SimpleRDFParameter(
        descriptor);
    SimpleRDFParameter inputTypeDescriptor2 = new SimpleRDFParameter(
        "Integer");

    functionInputs.put("a", inputTypeDescriptor1);
    functionInputs.put("b", inputTypeDescriptor2);
View Full Code Here


    Map<String, Set<Parameter>> inputElementDescriptor = null;
    inputElementDescriptor = new HashMap<String, Set<Parameter>>();
    String property1 = "containsConnection";

    SimpleRDFParameter outputTypeDescriptor = new SimpleRDFParameter(
        "Test2OutputFunction");
    outputTypeDescriptor.setIndex(-1);
    outputTypeDescriptor.setName("Test2OutputFunction");

    Map<String, Parameter> functionInputs = new HashMap<String, Parameter>();

    SimpleRDFParameter inputTypeDescriptor1 = new SimpleRDFParameter(
        descriptor);
    SimpleRDFParameter inputTypeDescriptor2 = new SimpleRDFParameter(
        "Integer");

    inputTypeDescriptor1.setIndex(0);
    inputTypeDescriptor1.setName("a");
    functionInputs.put("a", inputTypeDescriptor1);
    inputTypeDescriptor2.setIndex(1);
    inputTypeDescriptor2.setName("b");
    functionInputs.put("b", inputTypeDescriptor2);

    Set<Parameter> values1;
    values1 = new HashSet<Parameter>();
    values1.add(inputTypeDescriptor1);
View Full Code Here

        String stype = resultset.getString(2);
        if (stype != null) {
          stype = stype.substring(stype.indexOf('#') + 1, stype
              .length());
        }
        Parameter inputDesc = new SimpleRDFParameter(stype.substring(
            stype.indexOf('#') + 1, stype.length()));
        inputs.put(val, inputDesc);
      }

      resultset = results.get(1);
      while (resultset.next()) {
        String val = resultset.getString(1);
        String stype = resultset.getString(2);
        if (stype != null) {
          stype = stype.substring(stype.indexOf('#') + 1, stype
              .length());
        }
        String dtype = resultset.getString(3);
        if (dtype != null) {
          dtype = dtype.substring(dtype.indexOf('#') + 1, dtype
              .length());
        }
        ProcessingElementOutputDescriptor outputDesc = new ProcessingElementOutputDescriptor(
            val.substring(val.indexOf('#') + 1, val.length()));
        outputDesc.setSType(new PrimitiveSType(stype));
        outputDesc.setDType(new SimpleDType(dtype));
        output = new SimpleRDFParameter(outputDesc);
        String location = resultset.getString(4);
        if (location != null) {
          functionLocation = new URI(location);
        }
      }
View Full Code Here

        }
    }
   
    private Parameter getDescriptor(Type type, Integer arrayDimension)
    {
        SimpleRDFParameter descriptor;
        if (type instanceof ProcessingElementType)
        {
            descriptor = new SimpleRDFParameter(type);
        }
        else
        {
            descriptor = new SimpleRDFParameter(type.toString());
        }
        descriptor.setArrayDimension(arrayDimension);
        return descriptor;
    }
View Full Code Here

    outputsPE.add(peOutDescr2);

    ProcessingElementDescriptor descriptor = new SimpleProcessingElementDescriptor(
        "PEName", inputsPE, outputsPE);
   
    Parameter output = new SimpleRDFParameter("Integer");
    Parameter input1 = new SimpleRDFParameter("Integer");
    Parameter input2 = new SimpleRDFParameter("Integer");
    Parameter input3 = new SimpleRDFParameter(descriptor);
   
    Map<String, Parameter> inputs = new HashMap<String, Parameter>();
    inputs.put("input1", input1);
    inputs.put("input2", input2);
    inputs.put("input3", input3);
View Full Code Here

TOP

Related Classes of eu.admire.registry.pe.rdf.function.SimpleRDFParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.