From fae860f08e19d348f9e127b279c227bc51f706b0 Mon Sep 17 00:00:00 2001 From: kortschak Date: Fri, 25 Jul 2014 14:56:08 +0930 Subject: [PATCH] Replace nt with nq in various places throughout Manually change testdata.nt to testdata.nq. --- .goxc.json | 2 +- README.md | 8 ++++---- cayley_appengine.cfg | 2 +- docs/Overview.md | 4 ++-- nquads/nquads_test.go | 6 +++--- testdata.nq | 9 +++++++++ testdata.nt | 9 --------- 7 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 testdata.nq delete mode 100644 testdata.nt diff --git a/.goxc.json b/.goxc.json index bf26818..2742cab 100644 --- a/.goxc.json +++ b/.goxc.json @@ -1,6 +1,6 @@ { "Arch": "amd64 386", "Os": "linux darwin windows", - "ResourcesInclude": "README.md,static,templates,LICENSE,AUTHORS,CONTRIBUTORS,docs,cayley.cfg.example,30kmoviedata.nt.gz,testdata.nt", + "ResourcesInclude": "README.md,static,templates,LICENSE,AUTHORS,CONTRIBUTORS,docs,cayley.cfg.example,30kmoviedata.nq.gz,testdata.nq", "ConfigVersion": "0.9" } diff --git a/README.md b/README.md index 840126c..628fc73 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,13 @@ cayley> graph.Vertex("dani").Out("follows").All() For somewhat more interesting data, a sample of 30k movies from Freebase comes in the checkout. ``` -./cayley repl --dbpath=30kmoviedata.nt.gz +./cayley repl --dbpath=30kmoviedata.nq.gz ``` To run the web frontend, replace the "repl" command with "http" ``` -./cayley http --dbpath=30kmoviedata.nt.gz +./cayley http --dbpath=30kmoviedata.nq.gz ``` And visit port 64210 on your machine, commonly [http://localhost:64210](http://localhost:64210) @@ -90,13 +90,13 @@ The default environment is based on [Gremlin](http://gremlindocs.com/) and is si You'll notice we have a special object, `graph` or `g`, which is how you can interact with the graph. -The simplest query is merely to return a single vertex. Using the 30kmovies.nt dataset from above, let's walk through some simple queries: +The simplest query is merely to return a single vertex. Using the 30kmoviedata.nq dataset from above, let's walk through some simple queries: ```javascript // Query all vertices in the graph, limit to the first 5 vertices found. graph.Vertex().GetLimit(5) -// Start with only one vertex, the literal name "Humphrey Bogart", and retreive all of them. +// Start with only one vertex, the literal name "Humphrey Bogart", and retrieve all of them. graph.Vertex("Humphrey Bogart").All() // `g` and `V` are synonyms for `graph` and `Vertex` respectively, as they are quite common. diff --git a/cayley_appengine.cfg b/cayley_appengine.cfg index 3bf9166..2ecd797 100644 --- a/cayley_appengine.cfg +++ b/cayley_appengine.cfg @@ -1,6 +1,6 @@ { "database": "mem", -"db_path": "30k.nt", +"db_path": "30kmoviedata.nq.gz", "read_only": true, "load_size": 10000, "gremlin_timeout": 10 diff --git a/docs/Overview.md b/docs/Overview.md index 1747109..cea43c6 100644 --- a/docs/Overview.md +++ b/docs/Overview.md @@ -28,13 +28,13 @@ You can repeat the `--db` and `--dbpath` flags from here forward instead of the First we load the data. ```bash -./cayley load --config=cayley.cfg.overview --triples=30kmoviedata.nt.gz +./cayley load --config=cayley.cfg.overview --triples=30kmoviedata.nq.gz ``` And wait. It will load. If you'd like to watch it load, you can run ```bash -./cayley load --config=cayley.cfg.overview --triples=30kmoviedata.nt.gz --alsologtostderr +./cayley load --config=cayley.cfg.overview --triples=30kmoviedata.nq.gz --alsologtostderr ``` And watch the log output go by. diff --git a/nquads/nquads_test.go b/nquads/nquads_test.go index 2f2a39c..337d918 100644 --- a/nquads/nquads_test.go +++ b/nquads/nquads_test.go @@ -430,11 +430,11 @@ func TestParse(t *testing.T) { } } -// This is a sample taken from 30kmovies.nq. +// This is a sample taken from 30kmoviedata.nq. // It has intentional defects: // The second comment is inset one psace and // the second line after that comment is blank. -var document = `# first 10 lines of 30kmovies.nq +var document = `# first 10 lines of 30kmoviedata.nq _:100000 . _:100001 . _:100002 . @@ -445,7 +445,7 @@ _:100006 . _:100007 . _:100008 . _:100009 . - #last ten lines of 30kmovies.nq + #last ten lines of 30kmoviedata.nq "Bill Fishman" . . diff --git a/testdata.nq b/testdata.nq new file mode 100644 index 0000000..c551ccb --- /dev/null +++ b/testdata.nq @@ -0,0 +1,9 @@ + . + . + . + . + . + "cool" . + "not cool" . + "cool" . + "not cool" . diff --git a/testdata.nt b/testdata.nt deleted file mode 100644 index 90821ee..0000000 --- a/testdata.nt +++ /dev/null @@ -1,9 +0,0 @@ -alice follows bob . -bob follows alice . -charlie follows bob . -dani follows charlie . -dani follows alice . -alice is cool . -bob is "not cool" . -charlie is cool . -dani is "not cool" .