java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.OntManager
All Implemented Interfaces:
NewerNewStyleService, STService

@STService public class OntManager extends STServiceAdapter
This class provides services for manipulating the ontology mirror.
Author:
Armando Stellato, Manuel Fiorelli
  • Constructor Details

    • OntManager

      public OntManager()
  • Method Details

    • getOntologyMirror

      Returns the mirrored ontologies.
      Returns:
    • deleteOntologyMirrorEntry

      @STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'sys(ontologyMirror)\', \'D\')") public void deleteOntologyMirrorEntry(String baseURI, String cacheFileName)
      Deletes an entry (and its associated physical file) from the Ontology Mirror
      Parameters:
      baseURI -
      cacheFileName -
    • updateOntologyMirrorEntry

      @STServiceOperation(method=POST) @PreAuthorize("@auth.isAuthorized(\'sys(ontologyMirror)\', \'CU\')") public void updateOntologyMirrorEntry(OntManager.UpdateType updateType, String baseURI, String mirrorFileName, @Optional String alternativeURL, @Optional org.springframework.web.multipart.MultipartFile inputFile) throws IOException
      Updates an entry (and its associated physical file) from the Ontology Mirror. The entry can be updated in three different ways (determined by the parameter updateType, differentiating in the source of the updated ontology:
      • updateFromBaseURI: the source is retrieved from the supplied baseURI
      • updateFromAlternativeURL: the source is retrieved from the address hold by the parameter alternativeURL
      • updateFromFile: the source has been supplied in the request body (and mapped to the parameter inputFile)
      Parameters:
      baseURI -
      cacheFileName -
      Throws:
      IOException