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

11 lines
780 B
Plaintext
Raw Normal View History

2023-11-16 14:09:57 +01:00
SELECT EXPAND(ret) FROM (
MATCH
{class: SimpleFacet, as: simplefacet, where: ($currentMatch['@class'] INSTANCEOF 'SimpleFacet')}
.inE('ConsistsOf').outV('Configuration') {as: configuration, where: ($currentMatch['@class'] INSTANCEOF 'Configuration')}
.outE('IsIdentifiedBy').inV('IdentifierFacet') {where: (($currentMatch['@class'] INSTANCEOF 'IdentifierFacet') AND value='gcat-configuration')}
.inE('IsIdentifiedBy').outV('Configuration') {where: ($matched.configuration == $currentMatch)}
.outE('IsCustomizedBy').inV('VirtualService')
.outE('IsIdentifiedBy').inV('SoftwareFacet') {where: (($currentMatch['@class'] INSTANCEOF 'SoftwareFacet') AND name='catalogue-virtual-service' AND group='org.gcube.data-catalogue')}
RETURN
DISTINCT(simplefacet) as ret
)