Class MetadataController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.MetadataController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class MetadataController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
addFromLocalFilePublished
(String baseURI, org.springframework.web.multipart.MultipartFile localFile, String mirrorFile, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
addFromLocalProjectPublished
(String projectName, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
addFromMirrorPublished
(String baseURI, String mirrorFile, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
addFromWebPublished
(String baseURI, String altUrl, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
addFromWebToMirrorPublished
(String baseURI, String altUrl, String mirrorFile, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<String>
changeNSPrefixMappingPublished
(String prefix, String namespace) org.springframework.http.HttpEntity<String>
disconnectFromProjectPublished
(String baseURI) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
downloadFromWebPublished
(String baseURI, String altUrl, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
downloadFromWebToMirrorPublished
(String baseURI, String altUrl, String mirrorFile, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance) expandQNamePublished
(String qname) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
getFromLocalFilePublished
(String baseURI, org.springframework.web.multipart.MultipartFile localFile, String mirrorFile, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
getFromLocalProjectPublished
(String baseURI, String projectName, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
getFromMirrorPublished
(String baseURI, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
org.springframework.http.HttpEntity<Response<Collection<Metadata.PrefixMapping>>>
getNamespaceMappingsPublished
(boolean explicit) org.springframework.http.HttpEntity<String>
removeImportPublished
(String baseURI) org.springframework.http.HttpEntity<String>
removeNSPrefixMappingPublished
(String namespace, boolean checkOnlyExplicit) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
setDefaultNamespacePublished
(String namespace) org.springframework.http.HttpEntity<String>
setNSPrefixMappingPublished
(String prefix, String namespace) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
updateFromLocalFilePublished
(String baseURI, org.springframework.web.multipart.MultipartFile localFile, String mirrorFile, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
updateFromLocalProjectPublished
(String baseURI, String projectName, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
updateFromMirrorPublished
(String baseURI, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
updateFromWebPublished
(String baseURI, String altUrl, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance) org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>>
updateFromWebToMirrorPublished
(String baseURI, String altUrl, String mirrorFile, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, TransitiveImportMethodAllowance transitiveImportAllowance)
-
Constructor Details
-
MetadataController
public MetadataController()
-
-
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
-
setNSPrefixMappingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/setNSPrefixMapping", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setNSPrefixMappingPublished(@RequestParam("prefix") String prefix, @RequestParam("namespace") String namespace) throws NSPrefixMappingUpdateException, InvalidPrefixException -
updateFromLocalFilePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/updateFromLocalFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> updateFromLocalFilePublished(@RequestParam("baseURI") String baseURI, @RequestParam("localFile") org.springframework.web.multipart.MultipartFile localFile, @RequestParam(value="mirrorFile",required=false) String mirrorFile, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
addFromLocalProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/addFromLocalProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> addFromLocalProjectPublished(@RequestParam("projectName") String projectName, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, OntologyManagerException, ProjectInexistentException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
OntologyManagerException
ProjectInexistentException
-
addFromLocalFilePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/addFromLocalFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> addFromLocalFilePublished(@RequestParam(value="baseURI",required=false) String baseURI, @RequestParam("localFile") org.springframework.web.multipart.MultipartFile localFile, @RequestParam(value="mirrorFile",required=false) String mirrorFile, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, OntologyManagerException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
OntologyManagerException
IOException
-
getFromLocalProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getFromLocalProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> getFromLocalProjectPublished(@RequestParam("baseURI") String baseURI, @RequestParam("projectName") String projectName, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, OntologyManagerException, ImportManagementException, IOException, ProjectInexistentException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
OntologyManagerException
ImportManagementException
IOException
ProjectInexistentException
-
getBaseURIPublished
-
getNamespaceMappingsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getNamespaceMappings", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<Metadata.PrefixMapping>>> getNamespaceMappingsPublished(@RequestParam(value="explicit",required=false,defaultValue="false") boolean explicit) throws OntologyManagerException - Throws:
OntologyManagerException
-
updateFromLocalProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/updateFromLocalProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> updateFromLocalProjectPublished(@RequestParam("baseURI") String baseURI, @RequestParam("projectName") String projectName, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, OntologyManagerException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
OntologyManagerException
ImportManagementException
IOException
-
getDefaultNamespacePublished
-
getImportsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getImports", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> getImportsPublished() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
removeImportPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/removeImport", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeImportPublished(@RequestParam("baseURI") String baseURI) throws org.eclipse.rdf4j.common.exception.RDF4JException, OntologyManagerException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
OntologyManagerException
IOException
-
updateFromWebPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/updateFromWeb", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> updateFromWebPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
addFromWebToMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/addFromWebToMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> addFromWebToMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam("mirrorFile") String mirrorFile, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, OntologyManagerException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
OntologyManagerException
-
addFromMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/addFromMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> addFromMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam("mirrorFile") String mirrorFile, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, OntologyManagerException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
OntologyManagerException
-
setDefaultNamespacePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/setDefaultNamespace", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setDefaultNamespacePublished(@RequestParam("namespace") String namespace) throws ProjectUpdateException - Throws:
ProjectUpdateException
-
downloadFromWebToMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/downloadFromWebToMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> downloadFromWebToMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam("mirrorFile") String mirrorFile, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
getFromLocalFilePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getFromLocalFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> getFromLocalFilePublished(@RequestParam("baseURI") String baseURI, @RequestParam("localFile") org.springframework.web.multipart.MultipartFile localFile, @RequestParam(value="mirrorFile",required=false) String mirrorFile, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
expandQNamePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/expandQName", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> expandQNamePublished(@RequestParam("qname") String qname) throws IllegalArgumentException, PrefixNotDefinedException -
getFromMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getFromMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> getFromMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
ImportManagementException
IOException
-
updateFromMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/updateFromMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> updateFromMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
ImportManagementException
IOException
-
updateFromWebToMirrorPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/updateFromWebToMirror", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> updateFromWebToMirrorPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam("mirrorFile") String mirrorFile, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
addFromWebPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/addFromWeb", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> addFromWebPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, OntologyManagerException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
OntologyManagerException
-
getNamedGraphsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/getNamedGraphs", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> getNamedGraphsPublished() throws org.eclipse.rdf4j.repository.RepositoryException- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
changeNSPrefixMappingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/changeNSPrefixMapping", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> changeNSPrefixMappingPublished(@RequestParam("prefix") String prefix, @RequestParam("namespace") String namespace) throws NSPrefixMappingUpdateException, InvalidPrefixException -
downloadFromWebPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/downloadFromWeb", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<OntologyImport>>> downloadFromWebPublished(@RequestParam("baseURI") String baseURI, @RequestParam(value="altUrl",required=false) String altUrl, @RequestParam(value="rdfFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam("transitiveImportAllowance") TransitiveImportMethodAllowance transitiveImportAllowance) throws org.eclipse.rdf4j.common.exception.RDF4JException, MalformedURLException, ImportManagementException, IOException - Throws:
org.eclipse.rdf4j.common.exception.RDF4JException
MalformedURLException
ImportManagementException
IOException
-
disconnectFromProjectPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/disconnectFromProject", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> disconnectFromProjectPublished(@RequestParam("baseURI") String baseURI) throws STPropertyAccessException - Throws:
STPropertyAccessException
-
removeNSPrefixMappingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Metadata/removeNSPrefixMapping", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeNSPrefixMappingPublished(@RequestParam("namespace") String namespace, @RequestParam(value="checkOnlyExplicit",required=false,defaultValue="true") boolean checkOnlyExplicit) throws NSPrefixMappingUpdateException - Throws:
NSPrefixMappingUpdateException
-