java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.SHACLController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class SHACLController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • SHACLController

      public SHACLController()
  • 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 SHACL getService()
      Specified by:
      getService in interface IntrospectableController
    • clearShapesPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/clearShapes", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearShapesPublished()
    • extractCFfromShapesGraphPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/extractCFfromShapesGraph", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> extractCFfromShapesGraphPublished(@RequestParam("classIri") org.eclipse.rdf4j.model.IRI classIri, @RequestParam(value="targetShape",required=false) org.eclipse.rdf4j.model.IRI targetShape) throws SHACLGenericException
      Throws:
      SHACLGenericException
    • batchValidationPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/batchValidation", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<String>> batchValidationPublished()
    • extractCFfromShapeURLPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/extractCFfromShapeURL", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> extractCFfromShapeURLPublished(@RequestParam("classIri") org.eclipse.rdf4j.model.IRI classIri, @RequestParam("shape") String shape, @RequestParam(value="targetShape",required=false) org.eclipse.rdf4j.model.IRI targetShape, @RequestParam(value="fileFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat fileFormat) throws IOException, OntologyManagerException, SHACLGenericException
      Throws:
      IOException
      OntologyManagerException
      SHACLGenericException
    • loadShapesPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/loadShapes", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> loadShapesPublished(@RequestParam("shapesFile") org.springframework.web.multipart.MultipartFile shapesFile, @RequestParam("fileFormat") org.eclipse.rdf4j.rio.RDFFormat fileFormat, @RequestParam(value="clearExisting",required=false,defaultValue="false") boolean clearExisting) throws IOException
      Throws:
      IOException
    • exportShapesPublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/exportShapes", method=GET, produces="application/json;charset=UTF-8") public void exportShapesPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam(value="rdfFormat",required=false,defaultValue="TURTLE") org.eclipse.rdf4j.rio.RDFFormat rdfFormat, @RequestParam(value="exporterConfiguration",required=false,defaultValue="{\"prettyPrint\": true, \"inlineBlankNodes\": true}") com.fasterxml.jackson.databind.node.ObjectNode exporterConfiguration) throws IllegalArgumentException, NoSuchExtensionException, WrongPropertiesException, STPropertyAccessException, InvalidConfigurationException, IOException, ReformattingException
      Throws:
      IllegalArgumentException
      NoSuchExtensionException
      WrongPropertiesException
      STPropertyAccessException
      InvalidConfigurationException
      IOException
      ReformattingException
    • extractCFfromShapeFilePublished

      @RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SHACL/extractCFfromShapeFile", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> extractCFfromShapeFilePublished(@RequestParam("classIri") org.eclipse.rdf4j.model.IRI classIri, @RequestParam("shapesFile") org.springframework.web.multipart.MultipartFile shapesFile, @RequestParam(value="fileFormat",required=false) org.eclipse.rdf4j.rio.RDFFormat fileFormat, @RequestParam(value="targetShape",required=false) org.eclipse.rdf4j.model.IRI targetShape) throws IOException, OntologyManagerException, SHACLGenericException
      Throws:
      IOException
      OntologyManagerException
      SHACLGenericException