Class OntologyResource


  • @Path("/adminmanagement/v1")
    @ApplicationPath("webresources")
    public class OntologyResource
    extends java.lang.Object
    This resource manage Ontologies CRUD operations
    • Method Detail

      • importOntologies

        @Path("/ontologies")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response importOntologies​(@HeaderParam("Force-Update")
                                                          boolean forceUpdate,
                                                          java.util.List<OntologyModel> ontologyModelList,
                                                          @Context
                                                          javax.ws.rs.core.UriInfo uri)
        Import a set of ontologies metadata.
        If all the ontologies are valid, they will be stored in the ontology collection and indexed. The input is invalid 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
        Parameters:
        ontologyModelList - as InputStream
        uri - the uri info
        Returns:
        Response
      • findOntologies

        @GET
        @Path("/ontologies")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response findOntologies​(com.fasterxml.jackson.databind.JsonNode queryDsl)
        Find ontologies by queryDsl
        Parameters:
        queryDsl -
        Returns:
        Response
      • findOntologiesForCache

        @GET
        @Path("/ontologies/cache")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response findOntologiesForCache​(com.fasterxml.jackson.databind.JsonNode queryDsl)
        Find ontologies for cache by queryDsl
        Parameters:
        queryDsl -
        Returns:
        Response