Class DatasetMetadataController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.DatasetMetadataController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class DatasetMetadataController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addMetadataToDatasetPublished
(PluginSpecification exporterSpecification) void
exportPublished
(jakarta.servlet.http.HttpServletResponse oRes, PluginSpecification exporterSpecification, org.eclipse.rdf4j.rio.RDFFormat outputFormat) getMetadataVocabularySettingsPublished
(String componentID, Scope scope) importMetadataVocabulariesFromMetadataRegistryPublished
(PluginSpecification exporterSpecification, Scope scope) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
storeMetadataVocabularySettingsPublished
(String componentID, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings)
-
Constructor Details
-
DatasetMetadataController
public DatasetMetadataController()
-
-
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
-
storeMetadataVocabularySettingsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetMetadata/storeMetadataVocabularySettings", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> storeMetadataVocabularySettingsPublished(@RequestParam("componentID") String componentID, @RequestParam("scope") Scope scope, @RequestParam("settings") com.fasterxml.jackson.databind.node.ObjectNode settings) throws NoSuchSettingsManager, STPropertyAccessException, IllegalStateException, STPropertyUpdateException, WrongPropertiesException -
importMetadataVocabulariesFromMetadataRegistryPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetMetadata/importMetadataVocabulariesFromMetadataRegistry", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Settings>> importMetadataVocabulariesFromMetadataRegistryPublished(@RequestParam("exporterSpecification") PluginSpecification exporterSpecification, @RequestParam("scope") Scope scope) throws WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, it.uniroma2.art.semanticturkey.mdr.core.NoSuchDatasetMetadataException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException - Throws:
WrongPropertiesException
STPropertyAccessException
InvalidConfigurationException
it.uniroma2.art.semanticturkey.mdr.core.NoSuchDatasetMetadataException
it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException
-
getMetadataVocabularySettingsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetMetadata/getMetadataVocabularySettings", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Settings>> getMetadataVocabularySettingsPublished(@RequestParam("componentID") String componentID, @RequestParam("scope") Scope scope) throws NoSuchSettingsManager, STPropertyAccessException -
addMetadataToDatasetPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetMetadata/addMetadataToDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addMetadataToDatasetPublished(@RequestParam("exporterSpecification") PluginSpecification exporterSpecification) throws ClassNotFoundException, WrongPropertiesException, IOException, STPropertyAccessException, IllegalArgumentException, NoSuchExtensionException, InvalidConfigurationException, DatasetMetadataExporterException -
exportPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/DatasetMetadata/export", method=POST, produces="application/json;charset=UTF-8") public void exportPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("exporterSpecification") PluginSpecification exporterSpecification, @RequestParam(value="outputFormat",required=false,defaultValue="TURTLE") org.eclipse.rdf4j.rio.RDFFormat outputFormat) throws ClassNotFoundException, WrongPropertiesException, IOException, STPropertyAccessException, IllegalArgumentException, NoSuchExtensionException, InvalidConfigurationException, DatasetMetadataExporterException
-