com.bigdata.rdf.sail.sparql
Class BaseDeclProcessor

java.lang.Object
  extended by com.bigdata.rdf.sail.sparql.BaseDeclProcessor

public class BaseDeclProcessor
extends Object

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
BaseDeclProcessor()
           
 
Method Summary
static void process(ASTOperationContainer qc, String externalBaseURI)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDeclProcessor

public BaseDeclProcessor()
Method Detail

process

public static void process(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.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.