• Save
Data Applied: Developer Quicklook
Upcoming SlideShare
Loading in...5
×
 

Data Applied: Developer Quicklook

on

  • 428 views

Data Applied: Developer Quicklook

Data Applied: Developer Quicklook

Statistics

Views

Total Views
428
Views on SlideShare
424
Embed Views
4

Actions

Likes
0
Downloads
0
Comments
0

2 Embeds 4

http://www.dataminingtools.net 3
http://dataminingtools.net 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Data Applied: Developer Quicklook Data Applied: Developer Quicklook Presentation Transcript

  • 5
    Data-Applied.com: Quick Look For Developers
  • Getting started
    To get the login username and password, register at:
    http://www.data-applied.com/App/
    This will work in only those browsers which support Microsoft Silverlight
    Confirm the registration from your email account
    The username and password set will be used to login before one can use there XML based API
    One can also use there XML based API to do the registration (to be covered later)
  • XML based API
    One can communicate with data-applied using there XML based API
    Requests and Replies from data-applied are sent in XML format
    Request XML should be in UTF-8 format
    Requests needs to be submitted at http://www.data-applied.com/app/Execute/default.aspx
  • A quick example
    Now we will demonstrate how to do:
    Quick login
    Obtain a ticket in response which is a must to validate further queried
    We have the login XML in file login.xml:
    <LogonMessage>
    <Instance>
    <UserInfo>
    <Password>passwor</Password>
    <Name>xyz</Name>
    </UserInfo>
    </Instance>
    </LogonMessage>
  • A quick example
    We read this file, login.xml, in a string:
    login _string = open(‘login.xml’,’r’).read()
    Convert the string to UTF-8
    login_string_utf = unicode(login_string,’utf-8’)
    Now we are ready to send our request. Sending this request using HTTP (in a quick but inefficient way, just for demonstration):
    reply = urllib.urlopen(“http://www.data-applied.com/app/Execute/default.aspx”, login_string_utf)
    If the credentials provided were correct, then the reply will give us the XML in reply to our request
    reply_xml = reply.read()
  • A quick example
    Reply XML looks like:
    <LogonMessage>
    <Instance>
    <UserInfo>
    <Id>id</Id>
    <Name>username</Name>
    <FirstName>fname</FirstName>
    <LastName>lname</LastName>
    <EmailAddress>xyz@zyz.com</EmailAddress>
    <DateCreated>01/12/2010 02:25:35</DateCreated>
    <LicenseKey>Organization=*;Workspaces=1;Tables=1;Rows=500;Fields=6;FileSize=102400;Tasks=1;Priority=0;;UserName=username;:*</LicenseKey>
    </UserInfo>
    </Instance>
    <Version>1.1</Version>
    <Ticket>ticket</Ticket>
    </LogonMessage>
    And by parsing this XML all the relevant information can be extracted
  • Brief overview of the API
    Important components of the API are:
    Entities
    Messages
    Entities are transmitted as a part of messages
    Messages represent actions
    • More details regarding submission of requests, Serializing, Versioning Messages can be viewed at http://data-applied.com/Web/Developers/Recipies.aspx
  • Brief overview of the API
    Entities
    Represent objects such as workspaces, tables, fields, tasks, or task results
    Entities are transmitted through messages
    Entities should be serialized to XML
    Each entity has some properties, and these properties can be of the three types:
    Calculated: Calculated properties are automatically set by the system, and cannot be changed using update request
    Set Once: Set once properties can be set by the user upon entity creation, but cannot subsequently be changed (only read)
    Filtered: Filtered properties are removed or filtered because they contain confidential information (searches referencing them are also blocked)
    • The whole message specification can be viewed at http://data-applied.com/Web/Developers/Entities.aspx
  • Brief overview of the API
    Messages
    Represent actions such as create, retrieve, update, or delete
    Messages can transmit entities
    Messages should be serialized to XML and are sent as HTTP request/response
    Each message has some properties, and these properties can be of the three types:
    Entity: Indicates that the property contains a wrapped entity. Depending on the type of message, only some properties of the entity may need to be set
    Object: Indicates that the property contains a wrapped object which is not an entity. For example, this could be a condition restriction object.
    Array: Indicates that the property is in fact an array containing multiple simple values, multiple wrapped entities, etc.
    • The whole message specification can be viewed at http://data-applied.com/Web/Developers/Messages.aspx
  • An Example
    We want upload chunks of data from a local CSV file to one of our workspace on data-applied
    For this we will use:
    Entity: ChunkInfo
    Message: CreateMessage
  • An Example
    ChunkInfoentity has the following properties:
  • An Example
    So using the properties of ChunkInfo , our message will look like:
    <CreateMessage>
    <Instance><ChunkInfo>   <WorkspaceInfoId>4f5ad0e3-8ef5-...</WorkspaceInfoId>   <TableInfoId>ddb37ed0-cc91-...</TableInfoId>   <FileName>data.csv</FileName>   <Content>...[base64 data]...</Content>   <HasFieldHeader>True</HasFieldHeader> </ChunkInfo>
    </Instance>
    <Ticket>...</Ticket>
    </CreateMessage>
  • Current status of API
    As of now data –applied has a functional C# library over its XML based API
    • http://data-applied.com/Web/Downloads/csharp_v1.0.zip
    For user wanting to use some other language, one has to create there own XML messages and send them using HTTP
    As communicated by Data-applied, we ‘might’ have XML templates available later
  • Visit more self help tutorials
    • Pick a tutorial of your choice and browse through it at your own pace.
    • The tutorials section is free, self-guiding and will not involve any additional support.
    • Visit us at www.dataminingtools.net