UdL-EPS-SoftArch / TextAnnot-API

Written Corpus Annotation tool
GNU General Public License v3.0
1 stars 4 forks source link

Creation of a TagHierarchies with its tags in a single shot #68

Closed jmgimeno closed 6 years ago

jmgimeno commented 6 years ago

One problem with the creation of TagHierarchies and Tags that we have until now is that is very difficult to check if the tags associated to a hierarchy form a tree (well, a forest because we can have many roots) considering the parent/child relationship between tags.

The new alternative way to create a TagHierarchy will be by making a POST to a new endpoint "/quickTagHierarchyCreation" (the name is temporary and we are open to suggestions, with a payload of JSON with this format:

{ "name" : "tagHierarchy1",
  "roots" : [
    { "name" : "tag1",
       "children" : [
            {"name" : "tag2",
              "children" : [
                  ...
               ]
            },
            ...
        ]
    }
    , ...
  ]
}

Now, in a single shot, we have enough information to: