[英]how to connect rapidminer to mongodb
I converted a xml document to json and store it in mongodb (in java),there are ceveral Document nested in the json,then I connected rapidminer to the collection but when i visualise the content of the collection I one row and multiple columns. 我将xml文档转换为json并将其存储在mongodb中(在Java中),在json中嵌套了多个文档,然后将Rapidminer连接到该集合,但是当我可视化该集合的内容时,我一行又多列。 for example, i have this json : 例如,我有这个json:
{
' lat ' : 48.8566667,
' lng ' : 2.3509871 ,
' i ' : {
' id ' : ' id_element ' ,
' ville ' : ' Paris ',
' pays ' : ' France ',
' nbResult ' : 5
}
}
and when I visualte it with rapidminer (json to data) I get a table with one row and multiple columns, each column contains for example : lat or i.id, i.ville... i don't get the correct format. 当我使用rapidminer(将JSON转换为数据)将其可视化时,我得到一张包含一行和多列的表,每列包含例如:lat或i.id,i.ville ...我没有得到正确的格式。
I don't know rapidminer. 我不知道Rapidminer。 But if it does not support a specialized view for nested objects, this is the common way, to display a nested document in a 2-dimensional table. 但是,如果它不支持嵌套对象的专用视图,则这是在二维表中显示嵌套文档的常用方法。
The nesting level is transformed to the dot .
嵌套层将转换为点.
in the column name to show what attributes belong to the same nested document ( i.id
, i.ville
belong to i
). 在列名称中显示哪些属性属于同一嵌套文档( i.id
, i.ville
属于i
)。 It's called flatten document
, because the nested documents are reduced to first level attributes containing the information of the nesting in the attribute name. 之所以称为flatten document
,是因为嵌套的文档被简化为包含属性名称中嵌套信息的第一级属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.