question

Upvotes
Accepted
16 0 1 4

EDP Research API - Need assistance on rules applied when this API removes newline characters.

Raising on behalf of client as they don't have access to this portal.

Description:

I'm testing Research API on Elektron Data Platform.

In Research API(Base URL: api.edp.thomsonreuters.com/data/research/beta1), I find "concatLinesInBlock" parameter.
It seems that some newline characters(\n) are removed when concatLinesInBlock is true.

Please teach me the rule applied when this API removes newline characters.

rdp-apirefinitiv-data-platformresearch
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

Contacted Nawapoom for the follow-up question.

@Bernadette Mayormita.Miralles, please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

Upvotes
Accepted

The parameter "concatLinesinBlock" can be used to remove the new lines "\n" inside the block of text (in "text" field inside "pages" of JSON message)

This would help remove unnecessary new lines and easier to see in paragraph. This will not completely remove all new lines, but only the new line within each block.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 0 1 4

@Nawapoom Lohajarernvanich

Please see clients follow up email below:

>> As confirmed, the parameter "concatLinesinBlock" can be used to remove the new lines "\n" inside the block of text (in "text" field inside "pages" of JSON message)

What is the “block” and how do you decide the boundaries between each block?

(Do you have some rules or algorithms to remove the newline symbol "\n"? And these rules or algorithms are secret?)

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes

@Bernadette Mayormita.Miralles

A block of text is basically a paragraph of text in PDF document file. Therefore the new line characters were left, so each paragraph still separate from each other.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.