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 Details

    • AlignmentController

      public AlignmentController()
  • 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 Alignment getService()
      Specified by:
      getService in interface IntrospectableController
    • 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
      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
      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,org.eclipse.rdf4j.model.IRI>>>> getMappingsPublished(@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
      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
      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
      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