Class BaseDeclProcessor
java.lang.Object
org.eclipse.rdf4j.query.parser.sparql.BaseDeclProcessor
Resolves relative URIs in a query model using either an external base URI or using the base URI specified in the
query model itself. The former takes precedence over the latter.
- Author:
- Arjohn Kampman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Resolves relative URIs in the supplied query model using either the specified externalBaseURI or, if this parameter is null, the base URI specified in the query model itself.
-
Constructor Details
-
BaseDeclProcessor
public BaseDeclProcessor()
-
-
Method Details
-
process
public static void process(org.eclipse.rdf4j.query.parser.sparql.ast.ASTOperationContainer qc, String externalBaseURI) throws MalformedQueryException Resolves relative URIs in the supplied query model using either the specified externalBaseURI or, if this parameter is null, the base URI specified in the query model itself.- Parameters:
qc
- The query model to resolve relative URIs in.externalBaseURI
- The external base URI to use for resolving relative URIs, or null if the base URI that is specified in the query model should be used.- Throws:
IllegalArgumentException
- If an external base URI is specified that is not an absolute URI.MalformedQueryException
- If the base URI specified in the query model is not an absolute URI.
-