by staticassertion · 5y ago · 0 comments
I've never built a language, so maybe I'm just crazy, but what's wrong with, say,
https://gist.github.com/insanitybit/cd997e8d367889708edc3ec2...
Basically I defined the subject in a sort of 'namespace' of constraints ("parent", "children", etc), and then the edge or predicate constraint on it.
I guess it's easy to just "make up" a language, and implementing is the difficult part, and then it's like "ok well then how do you solve <some unanticipated problem because idk what I'm even talking about>" but also, graphql, as much as it isn't good for a database API, is also quite straightforward and familiar looking and I feel like taking something like rdf as a basis would be reasonable.
https://github.com/JeffreyBenjaminBrown/hode/blob/master/doc...