SELECT EXPAND(ret) FROM ( MATCH {class: SimpleFacet, as: simplefacet0, where: ($currentMatch['@class'] INSTANCEOF 'SimpleFacet')} DOVREBBE ESSERE consistsof00 e tutto di conseguenza .outE('ConsistsOf') { as: consistsof0, where: ($currentMatch['@class'] INSTANCEOF 'ConsistsOf')} .outV('Configuration') { as: configuration00, where: ($currentMatch['@class'] INSTANCEOF 'Configuration')} .inE('IsCustomizedBy') { as: iscustomizedby000, where: ($currentMatch['@class'] INSTANCEOF 'IsCustomizedBy')} .outV('VirtualService') { as: virtualservice0000, where: ($currentMatch['@class'] INSTANCEOF 'VirtualService')} .outE('IsIdentifiedBy') { as: isidentifiedby00000, where: ($currentMatch['@class'] INSTANCEOF 'IsIdentifiedBy')} .inV('SoftwareFacet') { as: softwarefacet000000, where: (($currentMatch['@class'] INSTANCEOF 'SoftwareFacet') AND (softwarefacet000000.group = "org.gcube.data-catalogue" AND softwarefacet000000.name = "catalogue-virtual-service"))} .inE('IsIdentifiedBy') { where: ($matched.isidentifiedby00000 == $currentMatch)} .outV('VirtualService') { where: ($matched.virtualservice0000 == $currentMatch)} .outE('IsCustomizedBy') { where: ($matched.iscustomizedby000 == $currentMatch)} .inV('Configuration') { where: ($matched.configuration00 == $currentMatch)} MANCA -> .outE('ConsistsOf') { where: ($matched.consistsof0 == $currentMatch)} MANCA -> .inV('SimpleFacet') { where: ($matched.simplefacet0 == $currentMatch)} .outE('IsIdentifiedBy') { as: isidentifiedby001, where: ($currentMatch['@class'] INSTANCEOF 'IsIdentifiedBy')} .inV('IdentifierFacet') { as: identifierfacet0010, where: (($currentMatch['@class'] INSTANCEOF 'IdentifierFacet') AND (identifierfacet0010.value = "gcat-configuration"))} .inE('IsIdentifiedBy') { where: ($matched.isidentifiedby001 == $currentMatch)} .outV('Configuration') { where: ($matched.configuration00 == $currentMatch)} MANCA -> .outE('ConsistsOf') { where: ($matched.consistsof0 == $currentMatch)} MANCA -> .inV('SimpleFacet') { where: ($matched.simplefacet0 == $currentMatch)} RETURN DISTINCT(simplefacet0) as ret )