This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Home
Luca Garulli edited this page Jul 2, 2014
·
26 revisions
Welcome to the OrientDB-ETL module. By using this module you can easily move data from and to OrientDB.
Example to import any of DBPedia file:
{
config: {
verbose: true,
fileDirectory: "/temp/databases/dbpedia_csv/",
fileName: "Person.csv.gz"
},
begin: [
{ let: { name: "$filePath", value: "$fileDirectory.append( $fileName )"} },
{ let: { name: "$className", value: "$fileName.substring( 0, $fileName.indexOf('.') )"} }
],
extractor : {
line: { path: "$filePath", lock : true }
},
transformers : [
{ csv: { separator: ",", nullValue: "NULL", skipFrom: 1, skipTo: 3 } },
{ merge: { joinFieldName:"URI", lookup:"V.URI" } },
{ vertex: { class: "$className"} }
],
loader : {
orientdb: {
dbURL: "plocal:/temp/databases/dbpedia",
dbUser: "admin",
dbPassword: "admin",
dbAutoCreate: true,
tx: false,
batchCommit: 1000,
dbType: "graph",
indexes: [{class:"V", fields:["URI:string"], type:"UNIQUE" }]
}
}
}
Home - OrientDB Engine - Professional Support - Courses - Team
Copyright (C) Orient Technologies LTD - All rights reserved.
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-28543690-2', 'orientechnologies.com'); ga('send', 'pageview'); </script>