Getting type indication property from constant

This commit is contained in:
Luca Frosini 2023-04-26 21:44:40 +02:00
parent 3faac2a236
commit 75b5acb932
1 changed files with 7 additions and 6 deletions

View File

@ -9,6 +9,7 @@ import java.util.Map;
import java.util.UUID;
import org.gcube.informationsystem.base.reference.Direction;
import org.gcube.informationsystem.base.reference.Element;
import org.gcube.informationsystem.model.reference.entities.Resource;
import org.gcube.informationsystem.model.reference.relations.ConsistsOf;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
@ -208,23 +209,23 @@ public class ResourceRegistryClientTestWikiExamples extends ContextTest {
@Test
public void jsonQueryExample1() throws ResourceRegistryException, Exception{
String jsonQuery = "{\n"
+ " \"@class\": \"EService\",\n"
+ " \"" + Element.CLASS_PROPERTY + "\": \"EService\",\n"
+ " \"consistsOf\": [\n"
+ " {\n"
+ " \"@class\": \"IsIdentifiedBy\",\n"
+ " \"" + Element.CLASS_PROPERTY + "\": \"IsIdentifiedBy\",\n"
+ " \"target\": {\n"
+ " \"@class\": \"SoftwareFacet\",\n"
+ " \"" + Element.CLASS_PROPERTY + "\": \"SoftwareFacet\",\n"
+ " \"group\": \"DataTransfer\",\n"
+ " \"name\": \"data-transfer-service\"\n"
+ " }\n"
+ " }\n"
+ " {\n"
+ " \"@class\": \"ConsistsOf\",\n"
+ " \"" + Element.CLASS_PROPERTY + "\": \"ConsistsOf\",\n"
+ " \"target\": {\n"
+ " \"@class\": \"StateFacet\",\n"
+ " \"" + Element.CLASS_PROPERTY + "\": \"StateFacet\",\n"
+ " \"value\": \"down\"\n"
+ " }\n"
+ " },\n"
+ " }\n"
+ " \n"
+ " ]\n"
+ "}";