Amazon Neptuneに入門してみる
by
Yu Watanabe
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
"NB[PO/FQUVOFʹೖͯ͠ΈΔ :V8BUBOBCF !ZVXC /%4Ԭ*5։ൃऀษڧձ ୈճษڧձ
Slide 2
Slide 2 text
ࣗݾհ ඇৗۈΤϯδχΞʴϑϦʔϥϯε ˙ 41"ʴ"1*ʴ%#ͳ8FCαʔϏεͷ੍࡞!ΞΧσϛΞ ϑϩϯτΤϯυɿ+BWB4DSJQU3FBDU όοΫΤϯυɿ/PEFKT 3VCZ1)1 σʔλϕʔεؔɿ.Z42-/FPK3%' ͦͷଞɿαʔόͷઃఆͱ͔ػցֶशͷ͓ख͍ͱ͔ ɾɾɾͳΜͰ͞ΜͰ͢ɻ
Slide 3
Slide 3 text
ຊͷςʔϚ "NB[PO/FQUVOF "GVMMZNBOBHFEHSBQIEBUBCBTF "84ʹؒೖΓͨ͠άϥϑσʔλϕʔεͰ͢ɻ ݱࡏϓϨϏϡʔ൛͕͑·͢ɻ
Slide 4
Slide 4 text
άϥϑɾɾɾʁ γϦʔζɾ य़ͷάϥϑσʔλಛू
Slide 5
Slide 5 text
άϥϑߏσʔλ ˙ σʔλߏͷछྨ • ྻ <ελοΫΩϡʔ> • ࿈ྻ <ϋογϡςʔϒϧϧοΫΞοϓςʔϒϧ> • ઢܗϦετ • ߏ • άϥϑ ˙ ۙʹ͋Δάϥϑߏ • మಓ࿏ઢ • ίϯϐϡʔλωοτϫʔΫ • Ոܥਤʢߏʣ • 4/4ͷGPMMPXGPMMPXJOHͷؔ Կ͔ͷωοτϫʔΫ ·ͨ Կ͔ͷ૬ؔؔ
Slide 6
Slide 6 text
άϥϑཧͷ༻ޠΛ͢͜͠ • ϊʔυʢʣͱΤοδʢลʣ • ༗άϥϑͱແάϥϑ • ΤοδʹॏΈ͚͕Ͱ͖Δ • ୯७άϥϑͱଟॏάϥϑ
Slide 7
Slide 7 text
"NB[PO/FQUVOF ݄ʹൃද͞Εͨ"NB[PO71$ͰՔಇ͢Δάϥϑσʔλ ϕʔεɻݱࡏݶఆϓϨϏϡʔ൛͕ެ։͞Ε͍ͯΔɻ
Slide 8
Slide 8 text
͓ஈ IUUQTBXTBNB[PODPNKQOFQUVOFQSJDJOH 42-4FSWFSͷ΄͏ͱಉ͘͡Β͍ͷՁ֨ઃఆ ˞ϓϨϏϡʔظؒதແྉͰ͢
Slide 9
Slide 9 text
ʢͪΐͬͱدΓಓʣطଘͷάϥϑσʔλϕʔε ˙ ϓϩύςΟάϥϑϞσϧɾɾɾͦΕͧΕಠࣗͷΫΤϦจ๏Λ࣋ͭ • /FPK IUUQTOFPKDPN FUDʜ ˙ 3%'Ϟσϧɾɾɾ8$ඪ४ͷ3%'Ϟσϧͱ41"32-ΫΤϦΛ͏ • 7JSUVPTP IUUQTWJSUVPTPPQFOMJOLTXDPN • 'VTFLJ IUUQTKFOBBQBDIFPSHEPDVNFOUBUJPOTFSWJOH@EBUB https://neo4j.com/developer/guide-data-modeling/ Apache TinkerPop / Gremlin
Slide 10
Slide 10 text
"NB[PO/FQUVOFͷಛ ˙ ϓϩύςΟάϥϑɾ3%'ͷ྆ํ͕͑Δ άϥϑͷදݱͱ͍߹ΘͤͷͨΊʹɺͭͷΦʔϓϯͳۀքඪ४Λαϙʔτ͠·͢ɻ (SFNMJOʹΑͬͯ߹ͤՄೳͳ"QBDIF5JOLFS1PQޓͷϓϩύςΟάϥϑɻ (SFNMJOϊʔυ ʹͭͳ͕ΔΤοδ ล ΛݸผʹͨͲΔ୳ࡧΛ࣮ݱ͢Δάϥ ϑ୳ࡧݴޠͰ͢ɻ41"32-ʹΑͬͯ߹ͤՄೳͳ 3%' 3FTPVSDF%FTDSJQUJPO 'SBNFXPSL ɻ ˙ ఆ͍ͯ͠Δ༻్ 4/4ɺϨίϝϯσʔγϣϯΤϯδϯɺܦ࿏Ҋɺྲྀ࠷దԽɺࣗಈஅɺ৵ೖݕ ήϊϜྻܾఆͳͲͷΞϓϦέʔγϣϯ͕ྫʹڍ͛ΒΕ·͢ɻ https://aws.amazon.com/jp/blogs/news/amazon-neptune-a-fully-managed-graph-database-service/
Slide 11
Slide 11 text
ͬͦͬͯ͘͞ΈΔ ͜͜ʹ͋Γ·ͤΜ खಈͰΞΫηεʂ IUUQTBXTBNB[PODPNKQOFQUVOF ʮϓϨϏϡʔʹαΠϯΞοϓʯ͔Βਃ͠ࠐΈ·͢ɻ ͘Β͍Ͱϝʔϧ͕ಧ͖·ͨ͠ɻ
Slide 12
Slide 12 text
ڥߏங ϢʔβʔΨΠυʢӳޠʣ IUUQTEPDTBXTBNB[PODPNKB@KQOFQUVOFMBUFTUVTFSHVJEFJOUSPIUNM IUUQTEPDTBXTBNB[PODPNKB@KQOFQUVOFMBUFTUVTFSHVJ EFHFUTUBSUFEQSFSFRVJTJUFTIUNM • &$Πϯελϯε͔Β/FQUVOFͷ%#ΫϥελʔʹΞΫηε • σʔλΛϑΝΠϧ͔Βϩʔυ͢ΔͳΒ4ඞཁ • ͦΕͧΕʹඞཁͳΞΫηεݖݶΛ༩ ˞&$4ແྉͰͳ͍Ͱ͢
Slide 13
Slide 13 text
ڥߏஙμΠδΣετ ͱʹ͔͘શ෦ʮόʔδχΞ෦ VTFBTU ʯʹ࡞͍ͬͯͩ͘ʂ ͦ͜ʹ͔͠/FQUVOF͋Γ·ͤΜʂʂ 71$ͱ &$Πϯελϯεͷ࡞ *".ͰϢʔβʔ࡞Δ
Slide 14
Slide 14 text
ڥߏஙμΠδΣετ /FQUVOFͷΠϯελϯε /FQUVOFͷίϯιʔϧͰ࡞Δ
Slide 15
Slide 15 text
ڥߏஙμΠδΣετ
Slide 16
Slide 16 text
ڥߏஙμΠδΣετ /FQUVOFͷ%#Ϋϥελʔ͕Ͱ͖ͨΑʔ ϓϩϏδϣχϯάʹʙ͘Β͍͔͔Γ·ͨ͠ɻ
Slide 17
Slide 17 text
)FMMP/FQUVOF &$Πϯελϯεʹ44)ͰϩάΠϯɺ /FQUVOFͷΤϯυϙΠϯτʹΫΤϦΛ1045ͯ͠ΈΔɻ ۭͬΆͳͷͰɺۭͷྻ͕ฦ͖ͬͯ·ͨ͠ɻ͜ΕͰ0,ʂ
Slide 18
Slide 18 text
σʔλͷϩʔυ • 4ʹόέοτΛ༻ҙʢόʔδχΞ෦ʂʣ • /FQUVOF͔ΒಡΈࠐΊΔΑ͏ʹݖݶ༩ • ϑΝΠϧΛ4ʹΞοϓϩʔυ
Slide 19
Slide 19 text
ࣗͷσʔλͰͬͯΈͨ 3%'Ϟσϧ Q13952 P23511 Activation 2,721 nodes 43,228 edges • ߦͷ3%'ϑΝΠϧ .# Λ4ʹΞοϓϩʔυ • &$ίϯιʔϧ͔Βɺ4্ͷσʔλΛ/FQUVOFʹϩʔυͤ͞Δ • ඵҎԼͰ/FQUVOFʹΠϯαʔτྃ
Slide 20
Slide 20 text
ࣗͷσʔλͰͬͯΈͨ 41"32-ΫΤϦ curl -X POST --data-binary 'query=PREFIX uniprot: SELECT (COUNT(DISTINCT ?prot2) as ?count) WHERE {uniprot:P00533 uniprot:activate ?prot1. ?prot1 uniprot:activate ?prot2 .}' http://neptuneinstance-cluster.cluster-cumqwp3crwyp.us-east-1- beta.rds.amazonaws.com:8182/sparql ˙ ͋Δϊʔυ *%1 ͷ࣍ͷ࣍ͷϊʔυΛશͯऔಘʢͯ͠Χϯτʣ ΤϯυϙΠϯτʹ41"32-ΫΤϦΛ͛Δ ϊʔυ͕ඵҎԼͰฦ͖ͬͯͨɻ
Slide 21
Slide 21 text
·ͱΊ • άϥϑߏσʔλάϥϑσʔλϕʔεʹೖΕͯΈΔ • طଘͷπʔϧಋೖͷϋʔυϧ͕ߴ͍PS҆ఆ͠ͳ͍ɻʢݸਓͷҙݟͰ͢ʣ • ͦ͜Ͱ"NB[PO/FQUVOF !όʔδχΞ෦ • ϑϧϚωʔδυ • εέʔϧͰ͖ΔʢεϞʔϧελʔτՄೳʣ • ϓϩύςΟάϥϑͱ3%'ͷ྆Ϟσϧ͕͑Δ • े࣮༻ϨϕϧʂʢݸਓͷҙݟͰ͢ʣ