Class SHACLController
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
void
exportShapesPublished
(jakarta.servlet.http.HttpServletResponse oRes, org.eclipse.rdf4j.rio.RDFFormat rdfFormat, com.fasterxml.jackson.databind.node.ObjectNode exporterConfiguration) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
extractCFfromShapeFilePublished
(org.eclipse.rdf4j.model.IRI classIri, org.springframework.web.multipart.MultipartFile shapesFile, org.eclipse.rdf4j.rio.RDFFormat fileFormat, org.eclipse.rdf4j.model.IRI targetShape) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
extractCFfromShapesGraphPublished
(org.eclipse.rdf4j.model.IRI classIri, org.eclipse.rdf4j.model.IRI targetShape) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
extractCFfromShapeURLPublished
(org.eclipse.rdf4j.model.IRI classIri, String shape, org.eclipse.rdf4j.model.IRI targetShape, org.eclipse.rdf4j.rio.RDFFormat fileFormat) org.springframework.http.HttpEntity<String>
loadShapesPublished
(org.springframework.web.multipart.MultipartFile shapesFile, org.eclipse.rdf4j.rio.RDFFormat fileFormat, boolean clearExisting) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
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
-
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 -
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 -
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
-