I have two (noob) questions about this page: One-hop patterns :: Docs
(Sorry, I’m still trying to wrap my head around the syntax…)
- I’m a little confused by the documentation here, but I believe that the “seed set” means set of vertex types that query is searching for. IMHO, this example isn’t particular illustrative because the set contains only one Type. Assuming I understand this (which I’m not so sure…), I suggest this improvement:
CREATE QUERY seedSet() FOR GRAPH ldbc_snb SYNTAX v1 {
Source = {Person, University}; // Seed set of vertex types
SELECT t FROM Source:s -(IS_LOCATED_IN:e)- :t;
PRINT t;
}
- [edit: indeed this was a trivial error, so it’s less important. I removed reference to this from the title of the question] It seems like the
PRINT f;
statement is incorrect.f
hasn’t been defined anywhere. Wast
meant?
CREATE QUERY seedSet() FOR GRAPH ldbc_snb SYNTAX v1 {
Source = {Person}; // Seed set
SELECT t FROM Source:s -(IS_LOCATED_IN:e)- :t;
PRINT f;
}
Maybe even add Company
to the seed set, in which case t
can return either a City
vertex type (for Person
or University
type vertices) or a Country
(for Company
type vertices).
thanks.