Package uk.org.ogsadai.data

Examples of uk.org.ogsadai.data.StringData


            mConfigure.addActivity(source, ds, targetPipeline);
           
        ProcessingElement obtain =
            new ProcessingElement(ObtainFromDataSource.DEFAULT_ACTIVITY_NAME);
        obtain.createInput(ObtainFromDataSource.INPUT_MODE);
        obtain.addInput(ObtainFromDataSource.INPUT_MODE, new StringData(ModeType.BLOCK.toString()));
        obtain.createInput(ObtainFromDataSource.INPUT_NUM_OF_BLOCKS);
        obtain.addInput(ObtainFromDataSource.INPUT_NUM_OF_BLOCKS, new IntegerData(100));
        obtain.createInput(ObtainFromDataSource.INPUT_DATA_SOURCE_RESOURCE);
        obtain.connectInput(ObtainFromDataSource.INPUT_DATA_SOURCE_RESOURCE, output);
        obtain.createOutput(ObtainFromDataSource.OUTPUT_DATA);
View Full Code Here


        new ActivityName("eu.admire_project.semanticregistry.rdfactivity");

  public RDFActivity(String SPARQLquery) {
    super(DEFAULT_ACTIVITY_NAME);
    query = new SimpleActivityInput("expression");
    query.add(new StringData(SPARQLquery));
      mOutput = new SimpleActivityOutput("rdfdata");
      this.setResourceID("RDFResource");
  }
View Full Code Here

    public StringData nextOutput()
        throws DataStreamErrorException,
               UnexpectedDataValueException,
               DataSourceUsageException
    {
        return new StringData((String) mOutput.getDataValueIterator().nextAsString());
    }
View Full Code Here

     * @param name
     *     Name to add to the input.
     */
    public void addInput(String name)
    {
      query.add(new StringData(name));
    }
View Full Code Here

        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI);
        getDS.createInput(GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME);
        ExternalInputNode output = (ExternalInputNode)source;
        getDS.addInput(
                GetGatewayDataSourceResourceRESTActivity.INPUT_GATEWAY_URI,
                new StringData(output.getGatewayAddress()));
        getDS.addInput(
                GetGatewayDataSourceResourceRESTActivity.INPUT_RESULT_NAME,
                new StringData(output.getResultName()));
        pipeline.add(getDS);
        return getDS.getOutput(GetGatewayDataSourceResourceRESTActivity.OUTPUT);
    }
View Full Code Here

    {
        if ( ! hasNextResult())
        {
            throw new NoSuchElementException();
        }    
        StringData graph = (StringData)mResultOutput.getDataValueIterator().next();     
        return graph.toString();
    }  
View Full Code Here

     *            output to connect to.
     */
    public void addNominalValuesInputConnection(
            final String column, final SingleActivityOutput output)
    {
        addNominalValuesInputConnection(new StringData(column), output);
    }
View Full Code Here

     * @param values
     *            nominal values
     */
    public void addNominalValues(String name, String... values)
    {
        addNominalValues(new StringData(name), values);
    }
View Full Code Here

    {
        mColumnIndicesInput.add(column);
        mNominalValuesInput.add(mCurrentIndex, ListBegin.VALUE);
        for (String value : values)
        {
            mNominalValuesInput.add(mCurrentIndex, new StringData(value));
        }
        mNominalValuesInput.add(mCurrentIndex, ListEnd.VALUE);
        if (mCurrentIndex >= mNominalValuesInput.getNumberOfInputs())
        {
            mColumnIndicesInput.add(ListEnd.VALUE);
View Full Code Here

    {
        mColumnIndicesInput.add(new IntegerData(index));
        mNominalValuesInput.add(ListBegin.VALUE);
        for (String value : values)
        {
            mNominalValuesInput.add(new StringData(value));
        }
        mNominalValuesInput.add(ListEnd.VALUE);
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.data.StringData

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.