Cool. This plus xml2js should make the whole process of extracting data from a bunch of 3rd-party xml files I'm currently dealing with a lot easier.
SpahQL - A query language for Javascript objects
11–20 of 37 posts
Re: SpahQL - A query language for Javascript objects
#12Re: SpahQL - A query language for Javascript objects
#13Re: SpahQL - A query language for Javascript objects
#14I wish developers would stop copying SQL. It's like making fancy new languages, and then adding libraries that help you emulate COBOL. SQL is not the first, the last, or the best query language ever created, it's just the best marketed. It's not even properly relational, it's based on a series of shell scripts on multics for crying out loud!
Re: SpahQL - A query language for Javascript objects
#15This looks interesting, I wonder whether the path syntax would work in URLs.
Re: SpahQL - A query language for Javascript objects
#16I wish developers would stop copying SQL. It's like making fancy new languages, and then adding libraries that help you emulate COBOL. SQL is not the first, the last, or the best query language ever created, it's just the best marketed. It's not even properly relational, it's based on a series of shell scripts on multics for crying out loud!
Re: SpahQL - A query language for Javascript objects
#17I wish developers would stop copying SQL. It's like making fancy new languages, and then adding libraries that help you emulate COBOL. SQL is not the first, the last, or the best query language ever created, it's just the best marketed. It's not even properly relational, it's based on a series of shell scripts on multics for crying out loud!
This really doesn't look much like SQL to me - much more like an interesting variation on XPath...
Why do you think it is a copy of SQL?
Re: SpahQL - A query language for Javascript objects
#18Re: SpahQL - A query language for Javascript objects
#19This looks interesting, I wonder whether the path syntax would work in URLs.
Can you unpack that question a little for me? As in, could you use a spahql selection as the path component of some request? I don't see why not, but the escaping will probably look a little ugly.
www.example.com/data.json,
one could append SparQL to select a subset www.example.com/data.json/user
www.example.com/data.json/categories/*
www.example.com/data.json/categories/0/products
www.example.com/data.json//avatarRe: SpahQL - A query language for Javascript objects
#20Looks far too similarly pronounced to SPARQL ( http://www.w3.org/TR/rdf-sparql-query/ ). Or is that deliberate?
I hope I don't cause too much confusion!