krotik / eliasdb

EliasDB a graph-based database.
Mozilla Public License 2.0
994 stars 49 forks source link

tutorial demo - "Get Line fails on Term (browser) but not in Terminal CLI #33

Closed gedw99 closed 3 years ago

gedw99 commented 3 years ago

this code: https://github.com/krotik/eliasdb/tree/master/examples/tutorial

env

am on mac if it helps :) golang 1.6.3

I am running this from dist directory BTW.

Terminal

it works πŸ‘

>>>get Line
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚Line Key β”‚Line Name               β”‚
β”‚1:n:key  β”‚1:n:name                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚10       β”‚Piccadilly Line         β”‚
β”‚13       β”‚Docklands Light Railway β”‚
β”‚12       β”‚Waterloo & City Line    β”‚
β”‚11       β”‚Victoria Line           β”‚
β”‚8        β”‚Metropolitan Line       β”‚
β”‚1        β”‚Bakerloo Line           β”‚
β”‚2        β”‚Central Line            β”‚
β”‚3        β”‚Circle Line             β”‚
β”‚9        β”‚Northern Line           β”‚
β”‚5        β”‚East London Line        β”‚
β”‚7        β”‚Jubilee Line            β”‚
β”‚6        β”‚Hammersmith & City Line β”‚
β”‚4        β”‚District Line           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
>>>

find liverpool
Partition main
Kind      Station
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”
β”‚has_rail β”‚key β”‚kind    β”‚latitude β”‚longitude β”‚name             β”‚zone β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€
β”‚true     β”‚156 β”‚Station β”‚51.5178  β”‚-0.0823   β”‚Liverpool Street β”‚1    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜

Term browser

same query fails πŸ‘Ž

Screenshot 2021-05-17 at 13 07 04

krotik commented 3 years ago

I haven't done development on the web terminal for quite some time. The CLI terminal has a lot more functions. The problem here is that you switched to the partition "get line" with the statement part get line so when you try to query for Line nodes the REST API responds that the partition name is invalid. Both the error message and the terminal need some work :pensive:

gedw99 commented 3 years ago

ok fair enough.. Will stick with terminal :)

I am going to make a new issue about an idea i have for the Web Terminal...

gedw99 commented 3 years ago

here is the idea: https://github.com/krotik/eliasdb/issues/35

gedw99 commented 3 years ago

I just realised I did not read what your said properly about the ordering . Was tired .. now it all makes sense :)

will play with it some more