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 Details

    • SPARQLController

      public SPARQLController()
  • 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 SPARQL getService()
      Specified by:
      getService in interface IntrospectableController
    • 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
      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
      Throws:
      IOException
      WrongPropertiesException
      ExportPreconditionViolationException
      IllegalArgumentException
      STPropertyAccessException
      InvalidConfigurationException
      NoSuchExtensionException
      ReformattingException