Class InputOutputController

java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.InputOutputController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class InputOutputController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • InputOutputController

      public InputOutputController()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getServiceSpecies

      public ServiceSpecies getServiceSpecies()
      Specified by:
      getServiceSpecies in interface IntrospectableController
    • getService

      public InputOutput getService()
      Specified by:
      getService in interface IntrospectableController
    • getSupportedFormatsPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/getSupportedFormats", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<DataFormat>>> getSupportedFormatsPublished(@RequestParam("extensionID") String extensionID)
    • getParserFormatForFileNamePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/getParserFormatForFileName", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> getParserFormatForFileNamePublished(@RequestParam("fileName") String fileName)
    • getWriterFormatForFileNamePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/getWriterFormatForFileName", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> getWriterFormatForFileNamePublished(@RequestParam("fileName") String fileName)
    • getInputRDFFormatsPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/getInputRDFFormats", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<org.eclipse.rdf4j.rio.RDFFormat>>> getInputRDFFormatsPublished()
    • loadRDFPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/loadRDF", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> loadRDFPublished(@RequestParam(value="inputFile",required=false) org.springframework.web.multipart.MultipartFile inputFile, @RequestParam("baseURI") String baseURI, @RequestParam(value="format",required=false) String format, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance, @RequestParam(value="loaderSpec",required=false) PluginSpecification loaderSpec, @RequestParam(value="rdfLifterSpec",required=false) PluginSpecification rdfLifterSpec, @RequestParam(value="transformationPipeline",required=false,defaultValue="[]") TransformationPipeline transformationPipeline, @RequestParam(value="validateImplicitly",required=false,defaultValue="false") boolean validateImplicitly, @RequestParam(value="targetGraphsFromData",required=false,defaultValue="false") boolean targetGraphsFromData) throws FileNotFoundException, IOException, org.eclipse.rdf4j.common.exception.RDF4JException, IllegalStateException, IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, LiftingException
      Throws:
      FileNotFoundException
      IOException
      org.eclipse.rdf4j.common.exception.RDF4JException
      IllegalStateException
      IllegalArgumentException
      NoSuchExtensionException
      WrongPropertiesException
      STPropertyAccessException
      InvalidConfigurationException
      LiftingException
    • clearDataPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/InputOutput/clearData", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearDataPublished() throws Exception
      Throws:
      Exception