Package org.aksw.jenax.stmt.core
Interface SparqlStmt
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SparqlStmtBase,SparqlStmtQuery,SparqlStmtUnknown,SparqlStmtUpdate
SparqlStmt is a unified interface for query and update statements.
For cases where a stmt does not fall into these two categories,
a special
SparqlStmtUnknown exists.
SparqlStmt's are default serializable: Only the string form is serialized
and upon deserialization an attempt with the default parser is made to restore the statement.
Note, that exceptions are thus not actually serialized - instead an attempt is made to recreate them.
While typically this yields the same exception type, the orginal stack trace will be lost.- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionclone()org.apache.jena.query.QueryParseExceptionorg.apache.jena.shared.PrefixMappingReturn the prefix mapping of the query or update request.default org.apache.jena.query.QuerygetQuery()default org.apache.jena.update.UpdateRequestbooleanisParsed()booleanisQuery()booleanboolean
-
Method Details
-
isQuery
boolean isQuery() -
isUpdateRequest
boolean isUpdateRequest() -
isUnknown
boolean isUnknown() -
isParsed
boolean isParsed() -
getAsUpdateStmt
SparqlStmtUpdate getAsUpdateStmt() -
getAsQueryStmt
SparqlStmtQuery getAsQueryStmt() -
getParseException
org.apache.jena.query.QueryParseException getParseException() -
getOriginalString
String getOriginalString() -
clone
SparqlStmt clone() -
getPrefixMapping
org.apache.jena.shared.PrefixMapping getPrefixMapping()Return the prefix mapping of the query or update request. Only valid if isParsed() is true.- Returns:
- the prefix mapping
-
getQuery
default org.apache.jena.query.Query getQuery() -
getUpdateRequest
default org.apache.jena.update.UpdateRequest getUpdateRequest()
-