🚫 This project is no longer maintained.
This Simple Data Pipe connector template illustrates how to
- load a static set of data sets (2016 election speeches),
- use a Bluemix service to perform tone analysis, and
- store the results in Cloudant.
Review the pre-requisites listed below.
Deploy the Simple Data Pipe in Bluemix using the Deploy to Bluemix button or manually.
This connector requires the Watson Tone Analyzer service in IBM Bluemix to be bound to the Simple Data Pipe application.
Provision and bind a Watson Tone Analyzer service instance. If you're using the Cloud Foundry command line interface, do so by running the following commands:
$ cf create-service tone_analyzer beta "tone analyzer"
$ cf bind-service simple-data-pipe "tone analyzer"
$ cf restage simple-data-pipe
Pro Tip: If you want to re-use an existing instance that is not named
tone analyzer
, create a USER-DEFINED Environment Variable in the Simple Data Pipe application named WATSON_TONE_ANALYZER and set its value to the name of the existing Tone Analyzer service. Read how.
When you follow these steps to install this connector, add the following line to the dependencies list in the package.json file: "simple-data-pipe-connector-template-with-service-dependency": "https://github.com/ibm-cds-labs/simple-data-pipe-connector-template-with-service-dependency.git"
This sample connector does not connect to a cloud data source and therefore does not require oAuth authentication checking.
To configure and run a pipe
- Open the Simple Data Pipe web console.
- Select Create A New Pipe.
- Select Another Sample Data Source for the Type when creating a new pipe
- In the Connect page, enter any string as consumer key and consumer secret.
- Select the data set (or data sets) to be loaded.
- Schedule or run the data pipe now.
Copyright [2016] IBM Cloud Data Services
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.