Class OntologyResource


  • @Path("/adminmanagement/v1")
    @ApplicationPath("webresources")
    public class OntologyResource
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response findOntologies​(com.fasterxml.jackson.databind.JsonNode queryDsl)
      Find ontologies by queryDsl
      javax.ws.rs.core.Response findOntologiesForCache​(com.fasterxml.jackson.databind.JsonNode queryDsl)
      Find ontologies for cache by queryDsl
      javax.ws.rs.core.Response importOntologies​(boolean forceUpdate, java.util.List<OntologyModel> ontologyModelList, javax.ws.rs.core.UriInfo uri)
      Import a set of ontologies metadata.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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