Created
June 30, 2017 20:24
-
-
Save robinp/b3f6057d7123ca19866b4fb28fbb50d1 to your computer and use it in GitHub Desktop.
Load Kythe data into Cayley
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/kythe/tools/triples --graphstore ~/dev/ghc-vagrant/entries/gs > entries.all | |
cayley init -db leveldb -dbpath cdb | |
cayley load -db leveldb -dbpath cdb -quads=entries.all -alsologtostderr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adapted http://kythe.io/examples/#using-cayley-to-explore-a-graphstore.
$ cat /data/ron/indexing/Spock-0.12.0.0.entries | /opt/kythe/tools/entrystream --unique | /opt/kythe/tools/triples - | gzip > /tmp/triples.nq.gz
2017/09/01 22:36:15 Skipped 0 reverse edges
2017/09/01 22:36:15 Wrote 15871 triples
$ ./cayley http --dbpath /tmp/triples.nq.gz --host 0.0.0.0
Cayley now listening on 0.0.0.0:64210