首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Integrating Watson Explorer with Watson Developer Cloud services

Integrating Watson Explorer with Watson Developer Cloud services

作者头像
首席架构师智库
发布2018-04-09 11:05:00
8850
发布2018-04-09 11:05:00
举报
文章被收录于专栏:超级架构师超级架构师

Please note that all future sample code, including updates to these samples, will be maintained in theIBM Watson repos on GitHub. This includes the following repositories of interest from this project:

  • WEX Application Builder Samples
  • WEX Concept Insights Integration Samples
  • Application Builder Sample Proxy
  • And many other interesting Watson Explorer samples, examples, and applications

Introduction to Integrating Watson Developer Cloud with Watson Explorer

IBM Watson Explorer combines search and content analytics with unique cognitive computing capabilities offered by the Watson Developer Cloud to help users find and understand the information they need to work more efficiently and make better, more confident decisions. Watson Explorer Application Builder is the delivery tool that allows developers to quickly construct a 360-degree view combining data and analytics from many sources into a single view. These applications can be enhanced using content from external sources, external visualization libraries (such as D3.js), and external APIs. Integrating with the Watson Developer Cloud provides opportunities for further enhancing Watson Explorer applications to include cognitive-based features. Watson Developer Cloud applications can be integrated with Watson Explorer in a number of ways depending on the use cases and desired functionality.

In this set of examples, we introduce the basics for integrating a Watson Explorer application with applications deployed to the Watson Developer Cloud emphasizing some of the Watson Cognitive services. The examples provided are basic technical proofs of concept; we give you the technical foundation you need to build truly awesome cognitive applications. In each example we walk you through the process of deploying an application to the Watson Developer Cloud. We show you how to integrate that application with Watson Explorer. We then provide you with some food for thought — What should you think about when deploying this kind of integration into a production environment? What are some additional ideas for integration?

By the end of each example you should understand what each service does, how it could benefit your organization, and how to integrate it with an Application Builder application.

Before beginning the tutorials you should review the prerequisites provided below. For more information on the available Watson Developer Cloud cognitive services, please visit the services catalog.

Tutorial Listing

  1. Message Resonance Integration
  2. Machine Translation Integration
  3. Question and Answer Integration
  4. Relationship Extraction Integration
  5. Personality Insights Integration
  6. Concept Expansion Integration

Architecture

The integration between Watson Developer Cloud (WDC) and Watson Explorer follows relatively straightforward web services patterns. All of the WDC services use a basic REST API. This makes it relatively easy to use WDC services from WDC applications. The example WDC applications here also use a simple REST API to facilitate communication between the WDC application and Watson Explorer. Communication between a Watson Explorer application and a deployed WDC application is accomplished in two ways.

  1. Watson Explorer Engine can communicate with WDC applications via a parser node (parser nodes in Engine allow for advanced and basic web requests to be made).
  2. Watson Explorer Application Builder widgets communicate with WDC applications by going through a proxy deployed to the same web server as Application Builder.

The sample proxy enables two important properties. First, browsers enforce a same-origin policy for web requests made from JavaScript, thus to allow for effective asynchronous user interactions from a client browser (via Ajax) a URL from the same domain must be available. Rather than modify Application Builder core, the Proxy allows you to effectively create your own API for Ajax calls. This same proxy can also be used directly by Application Builder widgets to improve maintainability. In this capacity, the proxy creates an abstraction on top of WDC applications to buffer Application Builder widgets from WDC endpoint changes and better promote testing.

There are five basic integration patterns for combining Watson Explorer and Watson Developer Cloud. The specific integration pattern used will depend on the use cases and desired functionality.

  1. Application Builder Widget. The most common place to use a cognitive service is from within an Application Builder widget. Most examples here demonstrate this.
  2. In the client browser. Once a page is rendered in a user's browser there may be use cases in which you would want to allow a user to interact with a WDC application without refreshing the page. For example, a user might dialog with Watson Q&A from an entity page. At this time the included proxy must be used to satisfy the end-user's browser same-origin policy.
  3. At crawl time. The Relationship Extraction Integration provides an example of an Engine converter that indexes the data returned from the Relationship Extraction service.
  4. At query time. It is also possible to access WDC applications at query time from Engine.
  5. Pre- or post-process. In some cases it is useful to use a WDC application as a pre- or post-processing step and the output of this is used by the Watson Explorer application in some way.

The integrations were developed using two runtimes on Bluemix; Java Web Services running on Websphere Liberty Profile and Ruby Sinatra. The following sections detail the setup for each of these approaches.

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2015-10-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 首席架构师智库 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Introduction to Integrating Watson Developer Cloud with Watson Explorer
  • Tutorial Listing
  • Architecture
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档