开发者

create a star schema database from an xml file

开发者 https://www.devze.com 2023-03-04 17:45 出处:网络
Is it possible to create开发者_Python百科 a Star Schema Database from data available in an XML file or a text file?

Is it possible to create开发者_Python百科 a Star Schema Database from data available in an XML file or a text file?

Your valuable inputs appreciated.

Thanks in advance.

Regards, Sam.


It's a very vague question, but you can pretty much describe anything logical with an XML file. XML is "extensible", so you can make it describe nearly any set of data in any form as long as there is consistency.


I've done both. I wrote a some JavaScripts that parse files and creates records in an Oracle database. One script processed the Tyco2 data from a formated text file. I've only done two of the 20 text files (250,000 stars) because of the size and I'm doing this on my laptop. A similar file created a table for the Hipparcos data (118,000 stars). The other I just finished processed the data from a file called "Stars - 2300+6000-2.xml." That file contained some stars with names and I created a table with the named stars that matched the Hipparcos stars. Alas only 92 of them showed up.

For xml, I used the Microsoft.XMLDOM interface and to add the data to Oracle, I used ADODB.Connection. The xml also used ADODB.Recordset because I had to run queries against the Hipparcos table to find the Hipparcos number (where there was a match) matching a star in the xml file.

If that is what your looking for, let me know and I can send the JavaScripts.

Frank Perry, MSEE

0

精彩评论

暂无评论...
验证码 换一张
取 消