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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<Response<Collection<org.eclipse.rdf4j.rio.RDFFormat>>>
getParserFormatForFileNamePublished
(String fileName) org.springframework.http.HttpEntity<Response<List<DataFormat>>>
getSupportedFormatsPublished
(String extensionID) getWriterFormatForFileNamePublished
(String fileName) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
loadRDFPublished
(org.springframework.web.multipart.MultipartFile inputFile, String baseURI, String format, TransitiveImportMethodAllowance transitiveImportAllowance, PluginSpecification loaderSpec, PluginSpecification rdfLifterSpec, TransformationPipeline transformationPipeline, boolean validateImplicitly, boolean targetGraphsFromData) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
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
-