From 43b8fbbacd44edbfc67b14788047aa8cc96624b6 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 15 May 2023 14:34:49 +0200 Subject: [PATCH] Fixed query template --- .../01-get-calls-for-query-template.json | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/resources/query-template/01-get-calls-for-query-template.json b/src/main/resources/query-template/01-get-calls-for-query-template.json index 8399f84..1ac7907 100644 --- a/src/main/resources/query-template/01-get-calls-for-query-template.json +++ b/src/main/resources/query-template/01-get-calls-for-query-template.json @@ -1,29 +1,27 @@ { - "@class" : "QueryTemplate", + "type" : "QueryTemplate", "name" : "GCat-Get-CallsFor-to-VirtualService", "description" : "The following query return all CallsFor relation from the EService of gcat identified by the UUID provided as parameter to the Virtual Service with name 'catalogue-virtual-service'. The content of the request to run this query template will be something like {\"$uuid\": \"335580b6-c164-4506-980a-21e5bcf8dbcf\"}", "template" : { - "@class" : "CallsFor", + "type" : "CallsFor", "source" : { - "@class" : "EService", - "header" : { - "uuid" : "$uuid" - }, + "type" : "EService", + "id" : "$uuid", "consistsOf" : [ { - "@class" : "IsIdentifiedBy", + "type" : "IsIdentifiedBy", "target" : { - "@class" : "SoftwareFacet", + "type" : "SoftwareFacet", "group" : "org.gcube.data-catalogue", "name" : "gcat" } } ] }, "target" : { - "@class" : "VirtualService", + "type" : "VirtualService", "consistsOf" : [ { - "@class" : "IsIdentifiedBy", + "type" : "IsIdentifiedBy", "target" : { - "@class" : "SoftwareFacet", + "type" : "SoftwareFacet", "group" : "org.gcube.data-catalogue", "name" : "catalogue-virtual-service" } @@ -32,7 +30,7 @@ }, "templateVariables" : { "$uuid" : { - "@class": "TemplateVariable", + "type": "TemplateVariable", "name": "$uuid", "description": "The uuid of the gCat EService, e.g. 335580b6-c164-4506-980a-21e5bcf8dbcf. Please note that the default value has no meaning but we need a valid value so that the query can be tested by the resource-registry service.", "defaultValue": "335580b6-c164-4506-980a-21e5bcf8dbcf"