org.d2rq.server
Class ConfigLoader

java.lang.Object
  extended by org.d2rq.server.ConfigLoader

public class ConfigLoader
extends Object


Field Summary
static int DEFAULT_LIMIT_PER_CLASS_MAP
           
static int DEFAULT_LIMIT_PER_PROPERTY_BRIDGE
           
 
Constructor Summary
ConfigLoader(String configURL)
           
 
Method Summary
 void addDocumentMetadata(Model document, Resource documentResource)
           
 String baseURI()
           
protected  Resource findDatabaseResource()
           
protected  Resource findServerResource()
           
 boolean getAutoReloadMapping()
           
protected  Model getDatasetMetadataTemplate(D2RServer server, javax.servlet.ServletContext context)
           
 int getLimitPerClassMap()
           
 int getLimitPerPropertyBridge()
           
 String getLocalMappingFilename()
           
 double getPageTimeout()
           
protected  Model getResourceMetadataTemplate(D2RServer server, javax.servlet.ServletContext context)
           
 double getSPARQLTimeout()
           
 boolean getVocabularyIncludeInstances()
           
 boolean isLocalMappingFile()
           
 void load()
           
 int port()
           
protected  boolean serveMetadata()
           
 String serverName()
           
static String toAbsoluteURI(String fileName)
          Accepts an absolute URI, relative file: URI, or plain file name (including names with spaces, Windows backslashes etc) and returns an equivalent full absolute URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIMIT_PER_CLASS_MAP

public static final int DEFAULT_LIMIT_PER_CLASS_MAP
See Also:
Constant Field Values

DEFAULT_LIMIT_PER_PROPERTY_BRIDGE

public static final int DEFAULT_LIMIT_PER_PROPERTY_BRIDGE
See Also:
Constant Field Values
Constructor Detail

ConfigLoader

public ConfigLoader(String configURL)
Parameters:
configURL - Config file URL, or null for an empty config
Method Detail

toAbsoluteURI

public static String toAbsoluteURI(String fileName)
Accepts an absolute URI, relative file: URI, or plain file name (including names with spaces, Windows backslashes etc) and returns an equivalent full absolute URI.


load

public void load()

isLocalMappingFile

public boolean isLocalMappingFile()

getLocalMappingFilename

public String getLocalMappingFilename()

port

public int port()

baseURI

public String baseURI()

serverName

public String serverName()

getVocabularyIncludeInstances

public boolean getVocabularyIncludeInstances()

getLimitPerClassMap

public int getLimitPerClassMap()

getLimitPerPropertyBridge

public int getLimitPerPropertyBridge()

getAutoReloadMapping

public boolean getAutoReloadMapping()

getPageTimeout

public double getPageTimeout()

getSPARQLTimeout

public double getSPARQLTimeout()

addDocumentMetadata

public void addDocumentMetadata(Model document,
                                Resource documentResource)

findServerResource

protected Resource findServerResource()

findDatabaseResource

protected Resource findDatabaseResource()

getResourceMetadataTemplate

protected Model getResourceMetadataTemplate(D2RServer server,
                                            javax.servlet.ServletContext context)

getDatasetMetadataTemplate

protected Model getDatasetMetadataTemplate(D2RServer server,
                                           javax.servlet.ServletContext context)

serveMetadata

protected boolean serveMetadata()