Class AlignmentController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.AlignmentController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class AlignmentController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
acceptAlignmentPublished
(org.eclipse.rdf4j.model.IRI entity1, org.eclipse.rdf4j.model.IRI entity2, String relation, RDFResourceRole entity1Role, org.eclipse.rdf4j.model.IRI forcedProperty, boolean setAsDefault) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
acceptAllAbovePublished
(float threshold) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<String>
addAlignmentPublished
(org.eclipse.rdf4j.model.Resource sourceResource, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.IRI targetResource) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
applyValidationPublished
(boolean deleteRejected) org.springframework.http.HttpEntity<String>
applyValidationToEdoalPublished
(boolean deleteRejected) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
changeMappingPropertyPublished
(org.eclipse.rdf4j.model.IRI entity1, org.eclipse.rdf4j.model.IRI entity2, String relation, org.eclipse.rdf4j.model.IRI mappingProperty) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
changeRelationPublished
(org.eclipse.rdf4j.model.IRI entity1, org.eclipse.rdf4j.model.IRI entity2, String oldRelation, String newRelation) org.springframework.http.HttpEntity<String>
void
exportAlignmentPublished
(jakarta.servlet.http.HttpServletResponse oRes) void
exportMappingsPublished
(jakarta.servlet.http.HttpServletResponse oRes, String targetUriPrefix, List<org.eclipse.rdf4j.model.IRI> mappingProperties, org.eclipse.rdf4j.rio.RDFFormat format) getMappingCountPublished
(String targetUriPrefix, List<org.eclipse.rdf4j.model.IRI> mappingProperties, boolean expressInPages, long pageSize) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>>
getMappingPropertiesPublished
(RDFResourceRole role, boolean allMappingProps) org.springframework.http.HttpEntity<Response<Collection<org.apache.commons.lang3.tuple.Triple<org.eclipse.rdf4j.model.IRI,
org.eclipse.rdf4j.model.IRI, org.eclipse.rdf4j.model.IRI>>>> getMappingsPublished
(String targetUriPrefix, int page, int pageSize, List<org.eclipse.rdf4j.model.IRI> mappingProperties) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>>
getSuggestedPropertiesPublished
(RDFResourceRole role, String relation) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
listCellsPublished
(int pageIdx, int range) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
loadAlignmentPublished
(org.springframework.web.multipart.MultipartFile inputFile, Project leftProject, Project rightProject) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
rejectAlignmentPublished
(org.eclipse.rdf4j.model.IRI entity1, org.eclipse.rdf4j.model.IRI entity2, String relation) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
rejectAllUnderPublished
(float threshold) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
searchResourcesPublished
(org.eclipse.rdf4j.model.IRI inputRes, ResourcePosition resourcePosition, String[] rolesArray, List<SearchMode> searchModeList, Map<String, org.eclipse.rdf4j.model.IRI> langToLexModel) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
Constructor Details
-
AlignmentController
public AlignmentController()
-
-
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
-
getMappingPropertiesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/getMappingProperties", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>> getMappingPropertiesPublished(@RequestParam("role") RDFResourceRole role, @RequestParam(value="allMappingProps",required=false,defaultValue="false") boolean allMappingProps) -
changeRelationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/changeRelation", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> changeRelationPublished(@RequestParam("entity1") org.eclipse.rdf4j.model.IRI entity1, @RequestParam("entity2") org.eclipse.rdf4j.model.IRI entity2, @RequestParam("oldRelation") String oldRelation, @RequestParam("newRelation") String newRelation) -
searchResourcesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/searchResources", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> searchResourcesPublished(@RequestParam("inputRes") org.eclipse.rdf4j.model.IRI inputRes, @RequestParam("resourcePosition") ResourcePosition resourcePosition, @RequestParam("rolesArray") String[] rolesArray, @RequestParam(value="searchModeList",required=false) List<SearchMode> searchModeList, @RequestParam("langToLexModel") Map<String, org.eclipse.rdf4j.model.IRI> langToLexModel) throws IllegalStateException, DatasetMetadataException -
addAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/addAlignment", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addAlignmentPublished(@RequestParam("sourceResource") org.eclipse.rdf4j.model.Resource sourceResource, @RequestParam("predicate") org.eclipse.rdf4j.model.IRI predicate, @RequestParam("targetResource") org.eclipse.rdf4j.model.IRI targetResource) -
acceptAllAbovePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/acceptAllAbove", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> acceptAllAbovePublished(@RequestParam("threshold") float threshold) throws ProjectAccessException, ProjectInexistentException, InvalidProjectNameException -
applyValidationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/applyValidation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> applyValidationPublished(@RequestParam(value="deleteRejected",required=false,defaultValue="false") boolean deleteRejected) -
getMappingsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/getMappings", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<org.apache.commons.lang3.tuple.Triple<org.eclipse.rdf4j.model.IRI,org.eclipse.rdf4j.model.IRI, getMappingsPublishedorg.eclipse.rdf4j.model.IRI>>>> (@RequestParam("targetUriPrefix") String targetUriPrefix, @RequestParam(value="page",required=false,defaultValue="0") int page, @RequestParam(value="pageSize",required=false,defaultValue="50") int pageSize, @RequestParam(value="mappingProperties",required=false,defaultValue="") List<org.eclipse.rdf4j.model.IRI> mappingProperties) -
loadAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/loadAlignment", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> loadAlignmentPublished(@RequestParam("inputFile") org.springframework.web.multipart.MultipartFile inputFile, @RequestParam(value="leftProject",required=false) Project leftProject, @RequestParam(value="rightProject",required=false) Project rightProject) throws AlignmentInitializationException, IOException -
acceptAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/acceptAlignment", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> acceptAlignmentPublished(@RequestParam("entity1") org.eclipse.rdf4j.model.IRI entity1, @RequestParam("entity2") org.eclipse.rdf4j.model.IRI entity2, @RequestParam("relation") String relation, @RequestParam(value="entity1Role",required=false) RDFResourceRole entity1Role, @RequestParam(value="forcedProperty",required=false) org.eclipse.rdf4j.model.IRI forcedProperty, @RequestParam(value="setAsDefault",required=false,defaultValue="false") boolean setAsDefault) throws ProjectAccessException, ProjectInexistentException, InvalidProjectNameException -
listCellsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/listCells", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listCellsPublished(@RequestParam(value="pageIdx",required=false,defaultValue="0") int pageIdx, @RequestParam(value="range",required=false,defaultValue="0") int range) -
getSuggestedPropertiesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/getSuggestedProperties", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>> getSuggestedPropertiesPublished(@RequestParam("role") RDFResourceRole role, @RequestParam("relation") String relation) -
exportMappingsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/exportMappings", method=GET, produces="application/json;charset=UTF-8") public void exportMappingsPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("targetUriPrefix") String targetUriPrefix, @RequestParam(value="mappingProperties",required=false,defaultValue="") List<org.eclipse.rdf4j.model.IRI> mappingProperties, @RequestParam(value="format",required=false,defaultValue="TURTLE") org.eclipse.rdf4j.rio.RDFFormat format) throws IOException - Throws:
IOException
-
applyValidationToEdoalPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/applyValidationToEdoal", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> applyValidationToEdoalPublished(@RequestParam(value="deleteRejected",required=false,defaultValue="false") boolean deleteRejected) -
rejectAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/rejectAlignment", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> rejectAlignmentPublished(@RequestParam("entity1") org.eclipse.rdf4j.model.IRI entity1, @RequestParam("entity2") org.eclipse.rdf4j.model.IRI entity2, @RequestParam("relation") String relation) -
acceptAllAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/acceptAllAlignment", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> acceptAllAlignmentPublished() throws ProjectAccessException, ProjectInexistentException, InvalidProjectNameException -
getMappingCountPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/getMappingCount", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Long>> getMappingCountPublished(@RequestParam("targetUriPrefix") String targetUriPrefix, @RequestParam(value="mappingProperties",required=false,defaultValue="") List<org.eclipse.rdf4j.model.IRI> mappingProperties, @RequestParam(value="expressInPages",required=false,defaultValue="false") boolean expressInPages, @RequestParam(value="pageSize",required=false,defaultValue="50") long pageSize) -
rejectAllUnderPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/rejectAllUnder", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> rejectAllUnderPublished(@RequestParam("threshold") float threshold) -
rejectAllAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/rejectAllAlignment", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> rejectAllAlignmentPublished() -
changeMappingPropertyPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/changeMappingProperty", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> changeMappingPropertyPublished(@RequestParam("entity1") org.eclipse.rdf4j.model.IRI entity1, @RequestParam("entity2") org.eclipse.rdf4j.model.IRI entity2, @RequestParam("relation") String relation, @RequestParam("mappingProperty") org.eclipse.rdf4j.model.IRI mappingProperty) -
closeSessionPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/closeSession", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> closeSessionPublished() -
exportAlignmentPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Alignment/exportAlignment", method=GET, produces="application/json;charset=UTF-8") public void exportAlignmentPublished(jakarta.servlet.http.HttpServletResponse oRes) throws IOException - Throws:
IOException
-