resource-registry/src/test/resources/queries/query10.match.oquery

13 lines
554 B
Plaintext

SELECT EXPAND(ret) FROM (
MATCH
{class: HostingNode, as: hostingnode0, where: ($currentMatch['@class'] INSTANCEOF 'HostingNode')}
.outE('ConsistsOf') { as: consistsof00, where: ($currentMatch['@class'] INSTANCEOF 'ConsistsOf')}
.inV('StateFacet') { as: statefacet000, where: (($currentMatch['@class'] INSTANCEOF 'StateFacet') AND (value = "certified"))}
.inE('ConsistsOf') { where: ($matched.consistsof00 == $currentMatch)}
.outV('HostingNode') { where: ($matched.hostingnode0 == $currentMatch)}
RETURN
DISTINCT(hostingnode0) as ret
)