Class SPARQLController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.SPARQLController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class SPARQLController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
evaluateQueryPublished
(String query, org.eclipse.rdf4j.query.QueryLanguage ql, boolean includeInferred, Map<String, org.eclipse.rdf4j.model.Value> bindings, int maxExecTime, org.eclipse.rdf4j.model.IRI[] defaultGraphs, org.eclipse.rdf4j.model.IRI[] namedGraphs) org.springframework.http.HttpEntity<String>
executeUpdatePublished
(String query, org.eclipse.rdf4j.query.QueryLanguage ql, boolean includeInferred, Map<String, org.eclipse.rdf4j.model.Value> bindings, int maxExecTime, org.eclipse.rdf4j.model.IRI[] defaultGraphs, org.eclipse.rdf4j.model.IRI[] namedGraphs, org.eclipse.rdf4j.model.IRI defaultInsertGraph, org.eclipse.rdf4j.model.IRI[] defaultRemoveGraphs) void
exportGraphQueryResultAsRdfPublished
(jakarta.servlet.http.HttpServletResponse oRes, String query, org.eclipse.rdf4j.query.QueryLanguage ql, boolean includeInferred, Map<String, org.eclipse.rdf4j.model.Value> bindings, int maxExecTime, org.eclipse.rdf4j.model.IRI[] defaultGraphs, org.eclipse.rdf4j.model.IRI[] namedGraphs, TransformationPipeline filteringPipeline, String outputFormat, PluginSpecification deployerSpec, PluginSpecification reformattingExporterSpec) void
exportQueryResultAsSpreadsheetPublished
(jakarta.servlet.http.HttpServletResponse oRes, String format, String query, org.eclipse.rdf4j.query.QueryLanguage ql, boolean includeInferred, Map<String, org.eclipse.rdf4j.model.Value> bindings, int maxExecTime, org.eclipse.rdf4j.model.IRI[] defaultGraphs, org.eclipse.rdf4j.model.IRI[] namedGraphs) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<Response<List<SPARQL.FederatedEndpointSuggestion>>>
-
Constructor Details
-
SPARQLController
public SPARQLController()
-
-
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
-
exportQueryResultAsSpreadsheetPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SPARQL/exportQueryResultAsSpreadsheet", method=POST, produces="application/json;charset=UTF-8") public void exportQueryResultAsSpreadsheetPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("format") String format, @RequestParam("query") String query, @RequestParam(value="ql",required=false,defaultValue="SPARQL") org.eclipse.rdf4j.query.QueryLanguage ql, @RequestParam(value="includeInferred",required=false,defaultValue="true") boolean includeInferred, @RequestParam(value="bindings",required=false,defaultValue="{}") Map<String, org.eclipse.rdf4j.model.Value> bindings, @RequestParam(value="maxExecTime",required=false,defaultValue="0") int maxExecTime, @RequestParam(value="defaultGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] defaultGraphs, @RequestParam(value="namedGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] namedGraphs) throws IOException- Throws:
IOException
-
evaluateQueryPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SPARQL/evaluateQuery", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> evaluateQueryPublished(@RequestParam("query") String query, @RequestParam(value="ql",required=false,defaultValue="SPARQL") org.eclipse.rdf4j.query.QueryLanguage ql, @RequestParam(value="includeInferred",required=false,defaultValue="true") boolean includeInferred, @RequestParam(value="bindings",required=false,defaultValue="{}") Map<String, org.eclipse.rdf4j.model.Value> bindings, @RequestParam(value="maxExecTime",required=false,defaultValue="0") int maxExecTime, @RequestParam(value="defaultGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] defaultGraphs, @RequestParam(value="namedGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] namedGraphs) throws IOException- Throws:
IOException
-
suggestEndpointsForFederationPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SPARQL/suggestEndpointsForFederation", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<SPARQL.FederatedEndpointSuggestion>>> suggestEndpointsForFederationPublished(@RequestParam("query") String query) throws ProjectAccessException, PropertyNotFoundException, InvalidProjectNameException, IOException -
executeUpdatePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SPARQL/executeUpdate", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> executeUpdatePublished(@RequestParam("query") String query, @RequestParam(value="ql",required=false,defaultValue="SPARQL") org.eclipse.rdf4j.query.QueryLanguage ql, @RequestParam(value="includeInferred",required=false,defaultValue="true") boolean includeInferred, @RequestParam(value="bindings",required=false,defaultValue="{}") Map<String, org.eclipse.rdf4j.model.Value> bindings, @RequestParam(value="maxExecTime",required=false,defaultValue="0") int maxExecTime, @RequestParam(value="defaultGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] defaultGraphs, @RequestParam(value="namedGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] namedGraphs, @RequestParam(value="defaultInsertGraph",required=false) org.eclipse.rdf4j.model.IRI defaultInsertGraph, @RequestParam(value="defaultRemoveGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] defaultRemoveGraphs) -
exportGraphQueryResultAsRdfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/SPARQL/exportGraphQueryResultAsRdf", method=POST, produces="application/json;charset=UTF-8") public void exportGraphQueryResultAsRdfPublished(jakarta.servlet.http.HttpServletResponse oRes, @RequestParam("query") String query, @RequestParam(value="ql",required=false,defaultValue="SPARQL") org.eclipse.rdf4j.query.QueryLanguage ql, @RequestParam(value="includeInferred",required=false,defaultValue="true") boolean includeInferred, @RequestParam(value="bindings",required=false,defaultValue="{}") Map<String, org.eclipse.rdf4j.model.Value> bindings, @RequestParam(value="maxExecTime",required=false,defaultValue="0") int maxExecTime, @RequestParam(value="defaultGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] defaultGraphs, @RequestParam(value="namedGraphs",required=false,defaultValue="") org.eclipse.rdf4j.model.IRI[] namedGraphs, @RequestParam(value="filteringPipeline",required=false,defaultValue="[]") TransformationPipeline filteringPipeline, @RequestParam(value="outputFormat",required=false) String outputFormat, @RequestParam(value="deployerSpec",required=false) PluginSpecification deployerSpec, @RequestParam(value="reformattingExporterSpec",required=false) PluginSpecification reformattingExporterSpec) throws IOException, WrongPropertiesException, ExportPreconditionViolationException, IllegalArgumentException, STPropertyAccessException, InvalidConfigurationException, NoSuchExtensionException, ReformattingException
-