I am trying to upload a set of customized entity types and subtypes for a WKS instance.
Here is a view of WKS interface in the section where you can define entities and sub-entities.
The upload button requests a json file.
I previously created a set by hand, and downloaded the json file.
The first rows of it are the following:
{"entityTypes":[{**"id":"78361798-b77e-4728-9b6a-f56539c12bcd"**,"label":"Calificativo","sireProp":{"mentionType":null,"subtypes":["Bueno_extremo","Bueno_moderado","Regular","Malo_moderado","Malo_extremo"],"roles":["78361798-b77e-4728-9b6a-f56539c12bcd"],"clazz":null,"color":null,"hotkey":null,"backGroundColor":null,"active":true,"roleOnly":false},"creationDate":1583241330349,"source":null,"modifiedDate":0,"typeType":null,"typeClass":null,"typeVersion":null,"typeDesc":null,"typeSuperType":null,"typeSuperTypeId":null,"typeCreateDate":null,"typeUpdateDate":null,"typeProvenance":null,"alchemyAPITypes":null,"nluAPITypes":null},{**"id":"daecb92b-0ce7-4a47-942a-68b50d0cb2fd"**,"label":"TV","sireProp":{"mentionType":null,"subtypes":["Decodificador","Servicio_de_tv"],"roles":
In general the content structure is clear, but there are IDs both for the set of entities and contents.
I wonder if there is a way to know in advance, or to generate these IDs, so I can generate the whole json with the types and subtypes I want to use, and later upload it.
I tried using "" in place of IDs, but got an error message and upload was not allowed.
WKS does not support importing the customized json files which are different from what is exported from WKS workspace according to document. However, as far as I tried, UUID could be a valid id
field value, generated by following bash command.
$ uuidgen | tr '[:upper:]' '[:lower:]'