cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting csv files for vocabulary import in Nuxeo Studio

Wojciech_Sulejm
Star Contributor
Star Contributor

The simple vocabulary csv import file format is: id,label,obsolete where the first two columns are strings, and the third is 0 or 1.

With the child vocabulary you can use the id,label,parent,obsolete, where the parent field entries have to match ids of another vocabulary, considered its parent.

What is the correct csv import file format for the hierarchical vocabulary?

1 ACCEPTED ANSWER

Wojciech_Sulejm
Star Contributor
Star Contributor

Since version 2.5.1, Studio provides links to sample CSV files on the download page: they can be downloaded and modified to fit the expected format.


/>

The hierarchical vocabulary has the same general structure as the child vocabulary with one notable difference: the importable file includes both the child and the parent entries.

    Notes:
  • commas have not been displayed for legibility.
  • the format is the following: id,label,parent,obsolete, the headings are however not to be included in the import file.
idlabelparentobsolete
p1Parent10
p1ch1Child 1 of Parent 1p10
p2Parent20
p2ch1Child 1 of Parent 2p20
p2ch2Child 2 of Parent 2p20

/>

As you can see the parent entries have an empty value in the parent column. This format is importable when you want to create a hierarchical vocabulary in Nuxeo Studio. The hierarchical vocabulary is currently the recommended way for working with chained vocabularies/vocabulary hierarchies.

View answer in original post

4 REPLIES 4

Wojciech_Sulejm
Star Contributor
Star Contributor

Since version 2.5.1, Studio provides links to sample CSV files on the download page: they can be downloaded and modified to fit the expected format.


/>

The hierarchical vocabulary has the same general structure as the child vocabulary with one notable difference: the importable file includes both the child and the parent entries.

    Notes:
  • commas have not been displayed for legibility.
  • the format is the following: id,label,parent,obsolete, the headings are however not to be included in the import file.
idlabelparentobsolete
p1Parent10
p1ch1Child 1 of Parent 1p10
p2Parent20
p2ch1Child 1 of Parent 2p20
p2ch2Child 2 of Parent 2p20

/>

As you can see the parent entries have an empty value in the parent column. This format is importable when you want to create a hierarchical vocabulary in Nuxeo Studio. The hierarchical vocabulary is currently the recommended way for working with chained vocabularies/vocabulary hierarchies.

If the system allows attachment, could be nice to let a sample file.

on the 4th line dont you mean

Fixed. thank you for catching it.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.