kortschak
0e0e382d2b
Use error returns and interface type for parsing
...
Fixes issue #72
This change simplifies interactions with parsing N-Quads and makes
reading datasets more robust. Changes made while here also improve
performance:
benchmark old ns/op new ns/op delta
BenchmarkParser 1058 667 -36.96%
We still use string concatenation which I'm not wildly happy about, but
I think this can be left for a later change.
Initial changes towards idiomatic error handling have been made. More
significant changes are needed, but these have subtle design implication
and need to be thought about more.
30kmoviesdata.nt.gz has been altered to properly escape double quotes.
This was done mechanically and with manual curation to pick up
straglers.
2014-07-22 20:34:37 +09:30
kortschak
7f99318f0d
Add tests for decompressor
2014-07-22 10:58:59 +09:30
kortschak
9bf09a5db5
Add transparent input decompression
...
This supports gzip and bzip2 by magic number determination.
Trailing whitespace differences in documentation due to opinionated
editor.
2014-07-19 12:49:55 +09:30
abdd649c82
Merge pull request #69 from pbnjay/triplestore_registry
...
Triplestore registry
2014-07-18 15:01:04 -04:00
Jeremy Jay
923679b36c
comment tweaks
2014-07-18 14:54:29 -04:00
Jeremy Jay
fb3e181a62
fix failing build
2014-07-18 14:29:23 -04:00
Jeremy Jay
5731ca7b42
6 of one, half-dozen of the other
2014-07-18 14:19:02 -04:00
Jeremy Jay
a6dc5c9532
fix tests for new method names
2014-07-18 14:09:57 -04:00
Jeremy Jay
0641309a8f
adding to A+C
2014-07-18 11:46:36 -04:00
Jeremy Jay
f9c60a5f30
update names per discussion at google/cayley#38
2014-07-18 11:17:57 -04:00
Jeremy Jay
d808d9347c
move to registry interface for backends
2014-07-16 16:49:55 -04:00
Jeremy Jay
e780c1ceb9
Register should be RegisterIterator
2014-07-16 13:49:39 -04:00
995b38fb5b
Update the README with news
2014-07-12 15:24:39 -04:00
c1471ee09e
Merge pull request #59 from alpe/minor_updates
...
Minor cleanup
2014-07-10 10:59:32 -04:00
Alex Peters
4d34ea50cc
Fix typos and minor cleanup
2014-07-10 13:19:30 +02:00
56962c7e18
Merge pull request #55 from kortschak/travis
...
Re-add go1.2 to .travis.yaml
2014-07-09 13:37:09 -04:00
9ca38d1f10
Merge pull request #56 from kortschak/testing
...
Tabulate value comparison tests
2014-07-07 14:08:03 -04:00
kortschak
e39063e3ec
Rename some methods and funcs since we are here
...
Very probably some of these can be made private.
2014-07-07 12:23:32 +09:30
kortschak
d1fdba1cbb
Fix build
...
leveldb did s/GetApproximateSizes/SizeOf/
2014-07-07 12:14:47 +09:30
kortschak
5bc1c438ef
Tabulate value comparison tests
2014-07-07 12:01:16 +09:30
kortschak
db3597ed2d
Re-add go1.2 to .travis.yaml
...
Fixes issue #54 .
2014-07-06 15:53:47 +09:30
c88a24467e
Merge pull request #52 from kortschak/testing
...
Simplify testing code
2014-07-05 21:55:46 -04:00
kortschak
fbb66ddc52
Fix build
...
goleveldb is broken against go1.2 since de350e, so we cannot support
go1.2. This will change when the goleveldb is changed to again support
go1.2.
2014-07-06 09:23:47 +09:30
kortschak
d489e3da07
Drop testing dependencies
2014-07-05 22:12:56 +09:30
kortschak
1c181429da
Purge goconvey and mock
...
These packages really impact on test readability with crazy action at a
distance. In addition to this removal of goconvey reduced the test run
time for leveldb on average by about 40-50%.
2014-07-05 22:00:46 +09:30
59eca7eb47
Update A+C to match Github (for documentation bits too)
2014-07-03 21:27:24 -04:00
kortschak
3f6cfc98d5
Clean up testing code
...
Ugh on the error comparison.
2014-07-04 10:29:14 +09:30
kortschak
eb3fd17e1d
More consistent formatting
...
(If only I could point gofmt at everything.)
2014-07-04 10:04:59 +09:30
kortschak
02eb9d051f
Simplify test code
2014-07-04 09:52:20 +09:30
e4df9488e7
merge rename_fix
2014-07-03 16:02:54 -04:00
468d943039
dbIt to iter
2014-07-03 15:59:50 -04:00
70f622aefe
Merge pull request #51 from barakmich/prefix_string
...
Prefix vs String for graph.Direction
2014-07-03 15:54:29 -04:00
62d8ebec8a
Update test in light of graph iterator types
2014-07-03 15:52:00 -04:00
f6fb8d8f67
Merge pull request #48 from kortschak/enumerate
...
Enumerate iterator types
2014-07-03 14:40:37 -04:00
50bd7d04ef
convert to prefix byte
2014-07-03 13:32:58 -04:00
kortschak
859164d714
Remove goconvey dependency
2014-07-03 20:25:59 +09:30
kortschak
03fb6e367a
Remove dependency on goconvey
2014-07-03 19:00:21 +09:30
kortschak
102402a13b
Clean tests
...
Remove goconvey dependency and improve clarity of intention.
2014-07-03 17:57:04 +09:30
kortschak
c2fd33f9d0
Fix missed test messages
2014-07-03 17:55:22 +09:30
kortschak
c8e5ac1916
Add documentation around Type registration
2014-07-03 15:25:21 +09:30
kortschak
cd46452b63
Enumerate iterator types
2014-07-03 09:57:31 +09:30
7b87e08e89
Convert to Prefix/String in graph.Triple
2014-07-02 19:56:16 -04:00
1f67913ed9
fix test
2014-07-02 14:05:34 -04:00
1e2ff472ed
Merge remote branch 'kortschak/tables' for #47
...
Conflicts:
query/gremlin/functional_test.go
2014-07-02 13:51:13 -04:00
5b207947ce
Merge pull request #46 from kortschak/reduction
...
Reduce the complexity of names and types in graph.{Iterator,TripleStore}
2014-07-02 13:34:28 -04:00
kortschak
ef7c793510
Use table driven test
...
This simplifies reasoning about the tests by not hiding logic behind a
DSL.
2014-07-02 21:57:31 +09:30
kortschak
447a835b93
Rename AddValue
2014-07-02 12:17:33 +09:30
kortschak
d87e227ff3
Rename TSVal
2014-07-02 12:13:15 +09:30
kortschak
a1453da84e
Don't indirect map values
...
We already have reference behaviour, so this is not necessary.
This change highlighted fairly baroque architecture in mql that deserves
some attention; the use of channels is somewhat confusing.
Also rename LastResult to Result.
2014-07-02 12:08:49 +09:30
kortschak
b89d4f392c
Reduce TripleStore interface names
2014-07-02 11:40:33 +09:30