ec-jrc / re3gistry

Re3gistry is a reusable open source solution for managing and sharing ‘reference codes’, ensuring semantic interoperability across organisations.
European Union Public License 1.2
29 stars 21 forks source link

Question on field type "definition" set to "longtext" #90

Open heidivanparys opened 2 years ago

heidivanparys commented 2 years ago

What is the reason behind setting the field type of the field definition to `longtext´?

https://github.com/ec-jrc/re3gistry/blob/012ad3bddde9d35c9beef4137cb4202e76c8da67/sources/Re3gistry2JavaAPI/src/main/java/eu/europa/ec/re3gistry2/javaapi/handler/RegInstallationStepCleanInstallationProcessHandler.java#L112

When adding an item via the GUI, for an item class using the field definition, this gives the following (note the <p> tags):

    "definition" : {
      "text" : "<p>item 1</p>",
      "lang" : "da"
    },
    "id" : {
      "text" : "1",
      "lang" : "da"
    },
heidivanparys commented 2 years ago

See also the RDF export:

image