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

21 lines
1.4 KiB
Plaintext

SELECT EXPAND(ret) FROM (
MATCH
{class: CallsFor, as: callsfor0, where: ($currentMatch['@class'] INSTANCEOF 'CallsFor')}
.inV('VirtualService') { as: virtualservice00, where: ($currentMatch['@class'] INSTANCEOF 'VirtualService')}
.outE('IsIdentifiedBy') { as: isidentifiedby000, where: ($currentMatch['@class'] INSTANCEOF 'IsIdentifiedBy')}
.inV('SoftwareFacet') { as: softwarefacet0000, where: (($currentMatch['@class'] INSTANCEOF 'SoftwareFacet') AND (group = "org.gcube.data-catalogue" AND name = "catalogue-virtual-service"))}
.inE('IsIdentifiedBy') { where: ($matched.isidentifiedby000 == $currentMatch)}
.outV('VirtualService') { where: ($matched.virtualservice00 == $currentMatch)}
.inE('CallsFor') { where: ($matched.callsfor0 == $currentMatch)}
.outV('EService') { as: eservice01, where: ($currentMatch['@class'] INSTANCEOF 'EService')}
.outE('IsIdentifiedBy') { as: isidentifiedby010, where: ($currentMatch['@class'] INSTANCEOF 'IsIdentifiedBy')}
.inV('SoftwareFacet') { as: softwarefacet0100, where: (($currentMatch['@class'] INSTANCEOF 'SoftwareFacet') AND (group = "org.gcube.data-catalogue" AND name = "gcat"))}
.inE('IsIdentifiedBy') { where: ($matched.isidentifiedby010 == $currentMatch)}
.outV('EService') { where: ($matched.eservice01 == $currentMatch)}
.outE('CallsFor') { where: ($matched.callsfor0 == $currentMatch)}
RETURN
DISTINCT(callsfor0) as ret
)