Seems if you're trying to mimic SQL it would be a shame if the most common construct was the least SQL like. At an abstract semantic level (ie, not digging into the code or real usage) PATTERN and WHERE seem close enough that perhaps you can unify them?
In any case, I wouldn't say xPath is just tree structures, it can do arbitrary grouping in addition to traversing up and down hierarchies. More importantly, xQuery has to deal with graphs not trees since you have multiple ways of referencing related nodes (name and id in particular can cause cycles or connections between branches). Not sure it would map directly to what you want, but I suspect you could build a syntax that was more xQuery like than you will ever be able to build a syntax that is truly SQL like? Peter Hunsberger On Fri, Nov 4, 2011 at 2:26 PM, Andres Taylor < andres.tay...@neotechnology.com> wrote: > On Fri, Nov 4, 2011 at 7:04 PM, Peter Hunsberger < > peter.hunsber...@gmail.com > > wrote: > > > One question, and I bet I won't be the only one asking it... > > > > If SQL is the target to mimic, why not "WHERE" instead of "PATTERN" ? > > > > PATTERN is a new construct, not replacing WHERE. WHERE is still in > there< > https://github.com/neo4j/community/blob/pql/pql/src/test/scala/org/neo4j/pql/PqlParserTest.scala#L124 > > > . > > > > Otherwise, wouldn't xQuery be perhaps an even more logical target? > > > Heathen! > > Seriously - it's mostly centered around XPath expressions, which are great > for tree structures, but maybe not what we need for our complex patterns. I > can't really see what's left of XQuery if you remove the XPath parts. Do > you have any concrete ideas I could ponder over? > > Thanks a lot for your feedback - it makes our lives much easier when people > are vocal about their opinions! > > Andrés > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user