// The QUESTION to ask and the prescribed answers to choose from
schema.propertyKey('number').Int().ifNotExists().create()
schema.propertyKey('answer').Text().ifNotExists().create()
schema.propertyKey('nextQuestion').Int().ifNotExists().create()
schema.propertyKey('question').Text().multiple().properties('answer', 'nextQuestion').ifNotExists().create()
My idea was to try and enforce some application logic into my database.
Ask THIS question : question Number 1,
Allow ONLY these 5 possible answers... Have the answer direct you to the next appropriate question (number) based on the answer provided.
The more I thought about it - the more I thought....
APPLICATION logic..... DATA...
Am I just being a little silly, in that I am trying to enforce application logic / rules into my data storage?
What if I did something really "out there" - and had the application deal with it all - and the data - JUST be the data?
I know it was mentioned as a solution to a specific question I asked earlier...
But I've only just thought - that I could / should??? apply that rulle to the entire application?
It would make things pretty simple to conceptualise....
I wouldn't have to worry about enforcing data integrity via the data...
If you only want to show 3 address types in a HTML Select list, code the select list appropriately - in the application.
Just let the database be for data storage only.
Some things make sense of course, like single / multiple cardinality
And within DSE (possibly all gremlin-based solutions) - you can ONLY have meta properties on vertex properties...
But all of these are built into the DB platform and - there are only a few DB "rules" AND they're pretty simple / general and straight-forward.
I think I have just been trying too hard to apply RDBMS logic / recipes to graph - letting go of something that is just innate - is pretty hard....
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/8540f59d-dcc3-4ca6-8dc1-f9b8a7443cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/FibBkgLcwmY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAE0QJeoYf3NaQZcwm9ChBj%2B%2B3iwPr-OTbNZUtbwm4x%2BE_SZ-HA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAB6eXyWVg3zN_xp-mFLQdL5Nn7NwUWE7_F-E-FpDs0__2s4zbg%40mail.gmail.com.