The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How Do I Connect Get Page JSON to XML operator to Read XML Operator
Hello ,
I seem to have a fairly simple problem that I can't seem to get around ..
I am reading a JSON feed from a remote URL using the "Get Page" operator. I needed to convert this to an example set so I can score the output. The path that seemed obvious to me was to take this JSON output and convert it to XML then transform it into an example set using the Read XML Operator.
I found that to do connect the Read XML operator to the output of JSON to XML is not possible. I even tried Documents to Data and that documents with text attribute (which is my entire document)..so that did not work.
I can convert the output to a file and write it though this may not work for many requests. Should I be writing the document to the database instead .. I basically want to score the output "in situ" vs storing it in files ..
So how do I process URL's which produce XML or JSON within RapidMiner and RapidAnalytics..
Eagerly looking forward to your assistance
I seem to have a fairly simple problem that I can't seem to get around ..
I am reading a JSON feed from a remote URL using the "Get Page" operator. I needed to convert this to an example set so I can score the output. The path that seemed obvious to me was to take this JSON output and convert it to XML then transform it into an example set using the Read XML Operator.
I found that to do connect the Read XML operator to the output of JSON to XML is not possible. I even tried Documents to Data and that documents with text attribute (which is my entire document)..so that did not work.
I can convert the output to a file and write it though this may not work for many requests. Should I be writing the document to the database instead .. I basically want to score the output "in situ" vs storing it in files ..
So how do I process URL's which produce XML or JSON within RapidMiner and RapidAnalytics..
Eagerly looking forward to your assistance
0
Answers
Though it will be good to know how to convert a "doc" into an example set.
Get page => JSON to XML seems to work fine in 5.2. Open File produces "File", not "Doc", so JSON to XML don't like it and throwing error.
Could you, please, show, how you converted JSON to Excel?
My data example: Also, converting even 5.6mb of data if "eating" 1.8GB RAM and sometimes freezing RM, this is pretty weird - it is not a big amount of data, 51 000 rows, 7 columns.
What was your utilization while processing JSON?
Best regards.