Interface OntologyService

    • Method Detail

      • importOntologies

        RequestResponse<OntologyModel> importOntologies​(boolean forceUpdate,
                                                        java.util.List<OntologyModel> ontologyList)
                                                 throws VitamException,
        Import a collections of ontologies After passing the validation steps. If all the ontologies are valid, they are stored in the collection and indexed.
        The ontologies are not valid in the following situations :
        • The json is invalid
        • The json contains an already used identifier
        • One or more mandatory field is missing
        • A field has an invalid format
        ontologyList - the list of ontologies to be imported
        forceUpdate -
        RequestResponseOK if success or VitamError
        VitamException - if in error occurs while validating ontologies