resource-registry/src/test/resources/projection-queries/EService.match.oquery

16 lines
892 B
Plaintext

MATCH
{class: EService, as: eservice, where: ($currentMatch['@class'] INSTANCEOF 'EService')}
.outE('IsIdentifiedBy').inV('SoftwareFacet') {as: softwarefacet, where: ($currentMatch['@class'] INSTANCEOF 'SoftwareFacet')}
.inE('IsIdentifiedBy')
.outV('Eservice') {where: ($matched.eservice == $currentMatch)}
.outE('ConsistsOf').inV("StateFacet") {as: statefacet, where: (($currentMatch['@class'] INSTANCEOF 'StateFacet'))}
.inE('ConsistsOf')
.outV('Eservice') {where: ($matched.eservice == $currentMatch)}
.inE('Activates').outV('HostingNode').outE('IsIdentifiedBy').inV('NetworkingFacet') {as: networkingfacet, where: ($currentMatch['@class'] INSTANCEOF 'NetworkingFacet')}
RETURN
eservice.id AS ID,
softwarefacet.group AS Group,
softwarefacet.name AS Name,
softwarefacet.version AS Version,
statefacet.value AS Status,
networkingfacet.hostName AS Host