Skip to content

Instantly share code, notes, and snippets.

@adibenc
Created December 23, 2020 10:03
Show Gist options
  • Save adibenc/c0be1b66d7b80b828125f650364ccd04 to your computer and use it in GitHub Desktop.
Save adibenc/c0be1b66d7b80b828125f650364ccd04 to your computer and use it in GitHub Desktop.
run sinonim

Sinonim

1. Load Data

LOAD CSV WITH HEADERS FROM 'https://gist.githubusercontent.com/adib-enc/d01f3413665615232bb6ce1b8a8ed2c3/raw/ff374363111f6249e7738dc004ed61e993df0385/sino.csv' as row
MERGE (k:Kata {kata: row.wx})
MERGE (s:Sinonim {sinonim: row.wsinonim, w1: row.w1, w2: row.w2, wx: row.wx});

2. Create graph

match (k:Kata),(s:Sinonim)
where k.kata = s.wx
merge (k)-[r:SINONIM]->(s)
return type(r), r.nama, k.kata, s.wsinonim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment