Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ravenpack

RavenPack News Analytics connection

Syntax

c = ravenpack(username,password)

Description

example

c = ravenpack(username,password) connects to RavenPack® News Analytics Data Gateway using the user name username and password password.

Examples

collapse all

Start the RavenPack Data Gateway process from the RavenPack folder in the Windows® Start menu.

If you are running Linux®, start the RavenPack Data Gateway using this command. This command assumes that you installed RavenPack News Analytics in the default /opt/ravenpack folder.

/opt/ravenpack/bin/DataGateway.sh

Add the full path of the Data Gateway Client JAR file to the dynamic Java® class path. For details about static and dynamic class paths, see Java Class Path (MATLAB).

javaaddpath 'C:\Program Files (x86)\RavenPack\api\DataGatewayClient.jar'

If you are running Linux, add the full path of the Data Gateway Client JAR file using this command.

javaaddpath '/opt/ravenpack/api/DataGatewayClient.jar'

Create a RavenPack News Analytics connection c using the user name username and password pwd.

c = ravenpack('username','pwd')
c = 

  ravenpack with properties:

    Application: 'rpna-api'
         Handle: [1x1 com.ravenpack.data.DataGatewayClient]
           User: 'username'

c is the RavenPack News Analytics connection object with these properties:

  • RavenPack application

  • RavenPack Data Gateway Client object

  • User name

Close the RavenPack News Analytics connection.

close(c)

Input Arguments

collapse all

User name, specified as a character vector or string scalar to denote the name required to access RavenPack News Analytics.

Data Types: char | string

Password, specified as a character vector or string scalar to denote the password required to access RavenPack News Analytics.

Data Types: char | string

Output Arguments

collapse all

RavenPack News Analytics connection, returned as a connection object with these properties.

Property

Description

Application

RavenPack application service

Handle

RavenPack Data Gateway Client object

User

User name

Introduced in R2015b

Was this topic helpful?