Class SparqlUtils
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.ajax.SparqlUtils
-
public class SparqlUtils extends Object
Handle an AJAX request for a SPARQL query. On entry, the "query" parameter contains the query string. The result is delivered in JSON format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSparqlUtils.AjaxControllerException
-
Field Summary
Fields Modifier and Type Field Description static StringOPTION_MODEL_FULLstatic StringOPTION_MODEL_USER_ACCOUNTSstatic StringPARAMETER_MODELstatic StringRESPONSE_MIME_TYPE
-
Constructor Summary
Constructors Constructor Description SparqlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.jena.query.QuerycreateQuery(String queryParam)static voidexecuteQuery(javax.servlet.http.HttpServletResponse response, org.apache.jena.query.Query query, org.apache.jena.rdf.model.Model model)
-
-
-
Field Detail
-
RESPONSE_MIME_TYPE
public static final String RESPONSE_MIME_TYPE
- See Also:
- Constant Field Values
-
PARAMETER_MODEL
public static final String PARAMETER_MODEL
- See Also:
- Constant Field Values
-
OPTION_MODEL_FULL
public static final String OPTION_MODEL_FULL
- See Also:
- Constant Field Values
-
OPTION_MODEL_USER_ACCOUNTS
public static final String OPTION_MODEL_USER_ACCOUNTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createQuery
public static org.apache.jena.query.Query createQuery(String queryParam) throws SparqlUtils.AjaxControllerException
-
executeQuery
public static void executeQuery(javax.servlet.http.HttpServletResponse response, org.apache.jena.query.Query query, org.apache.jena.rdf.model.Model model) throws IOException- Throws:
IOException
-
-