Skip to content

Commit 2859678

Browse files
author
Wasin Waeosri
committed
change logs:
1. Add diagram and images to project. 2. Modify jupyter notebook to add new images
1 parent 6476314 commit 2859678

File tree

7 files changed

+18
-5
lines changed

7 files changed

+18
-5
lines changed

diagram/diagram.pptx

382 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<mxfile modified="2019-10-01T06:23:14.861Z" host="www.draw.io" agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0" etag="MEJG1ydOuIZKfy2t46BB" version="12.0.0" type="device" pages="1"><diagram id="JJcbKjZtkKezs5lO3TwN" name="Page-1">7Vtbd9o4EP41nLP7QI7vl0eSAE23SboBts2+5Di2wG6M5SObW3/9SljGtiQIAROXbF8SazySlZn55ialpV5Nl33kxP4t9EDYUiRv2VKvW4oiS6aCfxHKKqPoup4RJijwKFNBGAQ/QT6TUmeBB5IKYwphmAZxlejCKAJuWqE5CMFFlW0Mw+pXY2cCOMLAdUKe+i3wUp9SZUkqXnwCwcSnn7Z0+mLq5MyUkPiOBxclktptqVcIwjR7mi6vQEiEl8slm9fb8nazMQSidJ8J3nIcL9tP2uxr2+5/fhxFan/UVk26uXSV/8XAwwKgQ4hSH05g5ITdgnqJ4CzyAFlWwqOC5wuEMSbKmPgDpOmKatOZpRCT/HQa0rd4x2j1ncy/0PPhI11uPbheVkYrOsr2Sja4VQaUlMAZcimX/zdSJd+IosXwr5fu5ep7rxe0NWpLDpoAOvXWmI/d9j/DtjWLPt29XBm27bZlbaMqbOMATgHeEJ6IQOikwby6EYca22TDV+gDP1CViNWza5dzJ5zRLw3wjlNOZ0mK4MvGQJWqtLHhxYRvupwQjF6MQ7hwfbzMRUIWeyI8Cz9IwSB21jJbYLaNtAXCnQOUgmWJxIuHvtVzmFD051hYlKCU0/wSilT9eIEK1dmMuS+DtGTtePRYelPYOhmsyoZ/AETWo68ABVheAFVwcwhMdB4mQ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wntjqV77TegQWpaFw4jUPsakjhk3VddzVvDjzuw55sGkROitffdeDHhR2B1ex9h8VUBXWN6AZLHUcL4rM+mRM6j/3I65Ab+3jkhk6SBO4W4L4hgtQIwKxW5GVekqmoVMxpR8JPY5y+xapqb/gZzNFHbU4fD4v/ZsjYi/8JUbv/AQ==</diagram></mxfile>

diagram/mrn_flow_reconstruct.png

30.2 KB
Loading

diagram/mrn_process.png

62.1 KB
Loading
30.2 KB
Loading

notebook/images/mrn_process.png

62.1 KB
Loading

notebook/mrn_notebook_app.ipynb

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {},
67
"source": [
@@ -10,7 +11,9 @@
1011
"\n",
1112
"Refinitiv Machine Readable News (MRN) is an advanced service for automating the consumption and systematic analysis of news. It delivers deep historical news archives, ultra-low latency structured news and news analytics directly to your applications. This enables algorithms to exploit the power of news to seize opportunities, capitalize on market inefficiencies and manage event risk.\n",
1213
"\n",
13-
"### MRN Data model\n",
14+
"MRN aims for replacing the legacy News 2K (N2_UBMS and N2_STORY).\n",
15+
"\n",
16+
"### MRN Data behavior\n",
1417
"MRN is published over Elektron using an Open Message Model (OMM) envelope in News Text Analytics domain messages. The Real-time News content set is made available over MRN_STORY RIC. The content data is contained in a FRAGMENT field that has been compressed, and potentially fragmented across multiple messages, in order to reduce bandwidth and message size.\n",
1518
"\n",
1619
"A FRAGMENT field has a different data type based on a connection type:\n",
@@ -24,7 +27,17 @@
2427
"3. The compressed JSON is split into a number of fragments (BUFFER or Base64 ascii string) which each fit into a single update message\n",
2528
"4. The data fragments are added to an update message as the FRAGMENT field value in a FieldList envelope\n",
2629
"\n",
27-
"Therefore, in order to parse the core content data, the application will need to reverse this process. The WebSocket application also need to convert a received Base64 string in a FRAGMENT field to bytes data before further process this field.\n",
30+
"\n",
31+
"<img src=\"images/mrn_process.png\"/>\n",
32+
"\n",
33+
"Therefore, in order to parse the core content data, the application will need to reverse this process. The WebSocket application also need to convert a received Base64 string in a FRAGMENT field to bytes data before further process this field."
34+
]
35+
},
36+
{
37+
"cell_type": "markdown",
38+
"metadata": {},
39+
"source": [
40+
"### MRN Data model\n",
2841
"\n",
2942
"Five fields, as well as the RIC itself, are necessary to determine whether the entire item has been received in its various fragments and how to concatenate the fragments to reconstruct the item:\n",
3043
"* MRN_SRC: identifier of the scoring/processing system that published the FRAGMENT\n",
@@ -45,7 +58,7 @@
4558
"\n",
4659
"When an MRN data item is sent in multiple messages, all the messages must be received and their FRAGMENTs concatenated before being decompressed. In other words, the FRAGMENTs should not be decompressed independently of each other.\n",
4760
"\n",
48-
"The decompressed output is encoded in UTF-8 and formatted as JSON.\n"
61+
"The decompressed output is encoded in UTF-8 and formatted as JSON."
4962
]
5063
},
5164
{
@@ -168,7 +181,6 @@
168181
]
169182
},
170183
{
171-
"attachments": {},
172184
"cell_type": "markdown",
173185
"metadata": {},
174186
"source": [
@@ -218,7 +230,7 @@
218230
"#### News Fragments simple handle logic\n",
219231
"\n",
220232
"\n",
221-
"<img src=\"images/mrn_flowchart.png\"/>\n"
233+
"<img src=\"images/mrn_flow_reconstruct.png\"/>\n"
222234
]
223235
},
224236
{

0 commit comments

Comments
 (0)