Hi,

I am trying to import below two csvs

1.Subject csv:

id,subject
10,Maths

ETL config json for Subject

{

  "source": { "file": { "path": "/temp/test/subject.csv" } },

  "extractor": { "row": {} },

  "transformers": [

    { "csv": {} },

    { "vertex": { "class": "Subject" } }

  ],

  "loader": {

    "orientdb": {

       "dbURL": "plocal:/temp/databases/test",

       "dbType": "graph",

       "dbUser":"root",

       "dbPassword":"test123"

    }

  }

}


2.Topic csv:id,postId,text

0,10,Relation
1,10,Function

ETL config json for topic:

{

  "source": { "file": { "path": "/temp/test/topic.csv" } },

  "extractor": { "row": {} },

  "transformers": [

    { "csv": {} },

    { "vertex": { "class": "Topic" } },

    { "edge": { "class": "HasTopic",

                "joinFieldName": "subjectId",

                "lookup": "Subject.id",

                "direction": "in"

            }

        }

  ],

  "loader": {

    "orientdb": {

       "dbURL": "plocal:/temp/databases/test",

       "dbType": "graph",

       "dbUser":"root",

       "dbPassword":"test123"

    }

  }
} 

I am able to import those two csv .
*Maths* should be linked to *Relation* and *Function* but *Relation* is 
only linked to *Maths* not to *Function*.

like this
*Maths* - > *Relation* two vertices are linked
but *Maths* - > *Function* are not linked.

Need help on this.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to