Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Amazon Neptuneに入門してみる
Search
Yu Watanabe
March 17, 2018
Programming
0
14k
Amazon Neptuneに入門してみる
NDS 長岡 IT開発者 勉強会 第55回勉強会(2018/03/17)
Yu Watanabe
March 17, 2018
Tweet
Share
More Decks by Yu Watanabe
See All by Yu Watanabe
今日から使えるCSSパターン
yuw27b
1
3.1k
Other Decks in Programming
See All in Programming
【レイトレ合宿11】kagayaki_v4
runningoutrate
0
150
S3 VectorsとStrands Agentsを利用したAgentic RAGシステムの構築
tosuri13
4
220
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
1
180
TVerのWeb内製化 - 開発スピードと品質を両立させるまでの道のり
techtver
PRO
3
1.3k
AIコードレビューがチームの"文脈"を 読めるようになるまで
marutaku
0
200
モデル駆動設計をやってみよう Modeling Forum2025ワークショップ/Let’s Try Model-Driven Design
haru860
0
200
なぜ強調表示できず ** が表示されるのか — Perlで始まったMarkdownの歴史と日本語文書における課題
kwahiro
12
7.4k
スタートアップを支える技術戦略と組織づくり
pospome
8
13k
[堅牢.py #1] テストを書かない研究者に送る、最初にテストを書く実験コード入門 / Let's start your ML project by writing tests
shunk031
11
6.3k
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
700
Promise.tryで実現する新しいエラーハンドリング New error handling with Promise try
bicstone
3
1.7k
Reactive Thinking with Signals and the new Resource API
manfredsteyer
PRO
0
130
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
RailsConf 2023
tenderlove
30
1.3k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.3k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
Context Engineering - Making Every Token Count
addyosmani
9
440
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
KATA
mclloyd
PRO
32
15k
Transcript
"NB[PO/FQUVOFʹೖͯ͠ΈΔ :V8BUBOBCF !ZVXC /%4Ԭ*5։ൃऀษڧձ ୈճษڧձ
ࣗݾհ ඇৗۈΤϯδχΞʴϑϦʔϥϯε ˙ 41"ʴ"1*ʴ%#ͳ8FCαʔϏεͷ੍࡞!ΞΧσϛΞ ϑϩϯτΤϯυɿ+BWB4DSJQU3FBDU όοΫΤϯυɿ/PEFKT 3VCZ1)1 σʔλϕʔεؔɿ.Z42-/FPK3%' ͦͷଞɿαʔόͷઃఆͱ͔ػցֶशͷ͓ख͍ͱ͔ ɾɾɾͳΜͰ͞ΜͰ͢ɻ
ຊͷςʔϚ "NB[PO/FQUVOF "GVMMZNBOBHFEHSBQIEBUBCBTF "84ʹؒೖΓͨ͠άϥϑσʔλϕʔεͰ͢ɻ ݱࡏϓϨϏϡʔ൛͕͑·͢ɻ
άϥϑɾɾɾʁ γϦʔζɾ य़ͷάϥϑσʔλಛू
άϥϑߏσʔλ ˙ σʔλߏͷछྨ • ྻ <ελοΫΩϡʔ> • ࿈ྻ <ϋογϡςʔϒϧϧοΫΞοϓςʔϒϧ> •
ઢܗϦετ • ߏ • άϥϑ ˙ ۙʹ͋Δάϥϑߏ • మಓ࿏ઢ • ίϯϐϡʔλωοτϫʔΫ • Ոܥਤʢߏʣ • 4/4ͷGPMMPXGPMMPXJOHͷؔ Կ͔ͷωοτϫʔΫ ·ͨ Կ͔ͷ૬ؔؔ
άϥϑཧͷ༻ޠΛ͢͜͠ • ϊʔυʢʣͱΤοδʢลʣ • ༗άϥϑͱແάϥϑ • ΤοδʹॏΈ͚͕Ͱ͖Δ • ୯७άϥϑͱଟॏάϥϑ
"NB[PO/FQUVOF ݄ʹൃද͞Εͨ"NB[PO71$ͰՔಇ͢Δάϥϑσʔλ ϕʔεɻݱࡏݶఆϓϨϏϡʔ൛͕ެ։͞Ε͍ͯΔɻ
͓ஈ IUUQTBXTBNB[PODPNKQOFQUVOFQSJDJOH 42-4FSWFSͷ΄͏ͱಉ͘͡Β͍ͷՁ֨ઃఆ ˞ϓϨϏϡʔظؒதແྉͰ͢
ʢͪΐͬͱدΓಓʣطଘͷάϥϑσʔλϕʔε ˙ ϓϩύςΟάϥϑϞσϧɾɾɾͦΕͧΕಠࣗͷΫΤϦจ๏Λ࣋ͭ • /FPK IUUQTOFPKDPN FUDʜ ˙ 3%'Ϟσϧɾɾɾ8$ඪ४ͷ3%'Ϟσϧͱ41"32-ΫΤϦΛ͏ •
7JSUVPTP IUUQTWJSUVPTPPQFOMJOLTXDPN • 'VTFLJ IUUQTKFOBBQBDIFPSHEPDVNFOUBUJPOTFSWJOH@EBUB https://neo4j.com/developer/guide-data-modeling/ Apache TinkerPop / Gremlin
"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/
ͬͦͬͯ͘͞ΈΔ ͜͜ʹ͋Γ·ͤΜ खಈͰΞΫηεʂ IUUQTBXTBNB[PODPNKQOFQUVOF ʮϓϨϏϡʔʹαΠϯΞοϓʯ͔Βਃ͠ࠐΈ·͢ɻ ͘Β͍Ͱϝʔϧ͕ಧ͖·ͨ͠ɻ
ڥߏங ϢʔβʔΨΠυʢӳޠʣ IUUQTEPDTBXTBNB[PODPNKB@KQOFQUVOFMBUFTUVTFSHVJEFJOUSPIUNM IUUQTEPDTBXTBNB[PODPNKB@KQOFQUVOFMBUFTUVTFSHVJ EFHFUTUBSUFEQSFSFRVJTJUFTIUNM • &$Πϯελϯε͔Β/FQUVOFͷ%#ΫϥελʔʹΞΫηε • σʔλΛϑΝΠϧ͔Βϩʔυ͢ΔͳΒ4ඞཁ •
ͦΕͧΕʹඞཁͳΞΫηεݖݶΛ༩ ˞&$4ແྉͰͳ͍Ͱ͢
ڥߏஙμΠδΣετ ͱʹ͔͘શ෦ʮόʔδχΞ෦ VTFBTU ʯʹ࡞͍ͬͯͩ͘ʂ ͦ͜ʹ͔͠/FQUVOF͋Γ·ͤΜʂʂ 71$ͱ &$Πϯελϯεͷ࡞ *".ͰϢʔβʔ࡞Δ
ڥߏஙμΠδΣετ /FQUVOFͷΠϯελϯε /FQUVOFͷίϯιʔϧͰ࡞Δ
ڥߏஙμΠδΣετ
ڥߏஙμΠδΣετ /FQUVOFͷ%#Ϋϥελʔ͕Ͱ͖ͨΑʔ ϓϩϏδϣχϯάʹʙ͘Β͍͔͔Γ·ͨ͠ɻ
)FMMP/FQUVOF &$Πϯελϯεʹ44)ͰϩάΠϯɺ /FQUVOFͷΤϯυϙΠϯτʹΫΤϦΛ1045ͯ͠ΈΔɻ ۭͬΆͳͷͰɺۭͷྻ͕ฦ͖ͬͯ·ͨ͠ɻ͜ΕͰ0,ʂ
σʔλͷϩʔυ • 4ʹόέοτΛ༻ҙʢόʔδχΞ෦ʂʣ • /FQUVOF͔ΒಡΈࠐΊΔΑ͏ʹݖݶ༩ • ϑΝΠϧΛ4ʹΞοϓϩʔυ
ࣗͷσʔλͰͬͯΈͨ 3%'Ϟσϧ Q13952 P23511 Activation 2,721 nodes 43,228 edges
• ߦͷ3%'ϑΝΠϧ .# Λ4ʹΞοϓϩʔυ • &$ίϯιʔϧ͔Βɺ4্ͷσʔλΛ/FQUVOFʹϩʔυͤ͞Δ • ඵҎԼͰ/FQUVOFʹΠϯαʔτྃ
ࣗͷσʔλͰͬͯΈͨ 41"32-ΫΤϦ curl -X POST --data-binary 'query=PREFIX uniprot: <http://www.uniprot.org/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-ΫΤϦΛ͛Δ ϊʔυ͕ඵҎԼͰฦ͖ͬͯͨɻ
·ͱΊ • άϥϑߏσʔλάϥϑσʔλϕʔεʹೖΕͯΈΔ • طଘͷπʔϧಋೖͷϋʔυϧ͕ߴ͍PS҆ఆ͠ͳ͍ɻʢݸਓͷҙݟͰ͢ʣ • ͦ͜Ͱ"NB[PO/FQUVOF !όʔδχΞ෦ • ϑϧϚωʔδυ
• εέʔϧͰ͖ΔʢεϞʔϧελʔτՄೳʣ • ϓϩύςΟάϥϑͱ3%'ͷ྆Ϟσϧ͕͑Δ • े࣮༻ϨϕϧʂʢݸਓͷҙݟͰ͢ʣ