-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to mongodb #106
Comments
The name under which the MongoDB backend registers itself is just |
Thanks! However, now when I write the testdata.nq data and perform a query, e.g.: |
Would you please post the version of cayley you are using and the complete sequence of commands you used to init and load the db. |
Also, sidenote, either the documentation should be "mongo" or the registry should be "mongodb" -- I'd vote to do the latter because that's the official name. |
Tried it against my docker-mongo with the config you posted, without a problem. Seconded for finding the relevant commands. |
Thought I was using version 0.3.1, but |
Hmm. That looks like smart quotes. Which aren't special to If you use the 0.3.1 release version for OS X (darwin_amd64, I'm guessing), what happens? If it's the same issue, then there's something weird in parsing/HTTP. If it works, there's something wrong with the Homebrew package. |
Fixes issue cayleygraph#106.
The http parser uses nquad which leaves N-Quad quotes in the quad.Quud strings. This must be left over from previously. I don't understand why memstore works correctly then though. We should make this configurable in the web UI, but I have pushed something that should fix this problem in the short term. |
For me Cayley 0.3.1 also imports nodes starting with If the nt/nq file is loaded with the Both
has this problem. (I used 0.3.0 with TTL format without problem.) |
I'm not sure what you mean by HTTP load doesn't work if you say that |
By HTTP load I mean uploading the nt file to |
Closing as fixed (esp. in the next binary) |
I have tried to configure cayley to use mongodb:
cayley http --config=cayley.cfg.test --port=64211
wherecayley.cfg.test
is:{ "database": "mongodb", "db_path": "localhost/test:27017" }
but i get an error:
F0808 12:43:02.479565 06352 cayley.go:137] triplestore: name 'mongodb' is not registered
.The text was updated successfully, but these errors were encountered: