/** * Initialize the assembler. * Registers the prefix "sec" with the uri http://apache.org/jena/permission/Assembler# * and registers this assembler with the uri http://apache.org/jena/permission/Assembler#Model */ static synchronized public void init() { if ( initialized ) return ; MappingRegistry.addPrefixMapping("sec", URI) ; registerWith(Assembler.general) ; initialized = true ; }
@Override public void processArgs(CmdArgModule cmdLine) { if ( cmdLine.getValues(setDecl) == null || cmdLine.getValues(setDecl).size() == 0 ) return; for ( String arg : cmdLine.getValues(setDecl) ) { String[] frags = arg.split("=", 2); if ( frags.length != 2 ) { throw new RuntimeException("Can't split '" + arg + "' -- looking for '=' to separate name and value"); } String symbolName = frags[0]; String value = frags[1]; // Make it a long name. symbolName = MappingRegistry.mapPrefixName(symbolName); Symbol symbol = Symbol.create(symbolName); context.set(symbol, value); } ARQ.getContext().putAll(context); }
EnvTDB.processGlobalSystemProperties() ; MappingRegistry.addPrefixMapping(SystemTDB.tdbSymbolPrefix, SystemTDB.symbolNamespace) ; AssemblerUtils.init() ; VocabTDB2.init() ; QueryEngineTDB.register() ; UpdateEngineTDB.register() ; MappingRegistry.addPrefixMapping(TDB2.tdbSymbolPrefix, TDB2.tdbParamNS) ;
@Override public void processArgs(CmdArgModule cmdLine) { if ( cmdLine.getValues(setDecl) == null || cmdLine.getValues(setDecl).size() == 0 ) return; for ( String arg : cmdLine.getValues(setDecl) ) { String[] frags = arg.split("=", 2); if ( frags.length != 2 ) { throw new RuntimeException("Can't split '" + arg + "' -- looking for '=' to separate name and value"); } String symbolName = frags[0]; String value = frags[1]; // Make it a long name. symbolName = MappingRegistry.mapPrefixName(symbolName); Symbol symbol = Symbol.create(symbolName); context.set(symbol, value); } ARQ.getContext().putAll(context); }
/** * Initialize an instance of the Fuseki server stack. * This is not done via Jena's initialization mechanism * but done explicitly to give more control. * Touching this class causes this to happen * (see static block at the end of this class). */ public synchronized static void init() { if ( initialized ) return ; initialized = true ; JenaSystem.init() ; SystemInfo sysInfo = new SystemInfo(FusekiIRI, PATH, VERSION, BUILD_DATE) ; SystemARQ.registerSubSystem(sysInfo) ; MappingRegistry.addPrefixMapping("fuseki", FusekiSymbolIRI) ; TDB.setOptimizerWarningFlag(false) ; // Don't set TDB batch commits. // This can be slower, but it less memory hungry and more predictable. TransactionManager.QueueBatchSize = 0 ; }
String name = soln.getLiteral("name").getLexicalForm() ; String value = soln.getLiteral("value").getLexicalForm() ; // Works for numbers as well! name = MappingRegistry.mapPrefixName(name) ; Symbol symbol = Symbol.create(name) ; if ( "undef".equalsIgnoreCase(value) )
/** * Initialize an instance of the Fuseki server stack. * This is not done via Jena's initialization mechanism * but done explicitly to give more control. * Touching this class causes this to happen * (see static block at the end of this class). */ public synchronized static void init() { if ( initialized ) return ; initialized = true ; JenaSystem.init() ; SystemInfo sysInfo = new SystemInfo(FusekiIRI, PATH, VERSION, BUILD_DATE) ; SystemARQ.registerSubSystem(sysInfo) ; MappingRegistry.addPrefixMapping("fuseki", FusekiSymbolIRI) ; TDB.setOptimizerWarningFlag(false) ; // Don't set TDB batch commits. // This can be slower, but it less memory hungry and more predictable. TransactionManager.QueueBatchSize = 0 ; }
/** * TDB System initialization - normally, this is not explicitly called * because Jena system wide initialization occurs automatically. * However, calling it repeatedly is safe and low cost. */ public static void init() { // Called at start. if ( initialized ) { return ; } synchronized(initLock) { if ( initialized ) { JenaSystem.logLifecycle("TDB.init - return") ; return ; } initialized = true ; JenaSystem.logLifecycle("TDB.init - start") ; ReaderRIOTRDFXML.RiotUniformCompatibility = true ; EnvTDB.processGlobalSystemProperties() ; MappingRegistry.addPrefixMapping(SystemTDB.tdbSymbolPrefix, SystemTDB.symbolNamespace) ; AssemblerTDB.init() ; QueryEngineTDB.register() ; UpdateEngineTDB.register() ; wireIntoExecution() ; JenaSystem.logLifecycle("TDB.init - finish") ; } }
globalContext = defaultSettings() ; MappingRegistry.addPrefixMapping(ARQ.arqSymbolPrefix, ARQ.arqParamNS) ;
public static void init() { if ( initialized ) return ; synchronized(initLock) { if ( initialized ) { JenaSystem.logLifecycle("SDB.init - skip") ; return ; } initialized = true ; JenaSystem.logLifecycle("SDB.init - start") ; MappingRegistry.addPrefixMapping(SDB.symbolPrefix, SDB.symbolSpace) ; // Default is 1000 4Kpages. DerbyUtils.setDerbyPageCacheSize(10000) ; // Wire in the SDB query engine QueryEngineSDB.register() ; // Wire in the SDB update engine UpdateEngineSDB.register() ; SDB.getContext().setIfUndef(useQuadRewrite, false) ; SDB.getContext().setIfUndef(streamGraphAPI, false) ; SDB.getContext().setIfUndef(jdbcStream, true) ; //SDB.getContext().setIfUndef(jdbcFetchSize, ???) ; SDB.getContext().setIfUndef(annotateGeneratedSQL, true) ; //SDB.getContext().setIfUndef(unionDefaultGraph, false) ; AssemblerVocab.init(); JenaSystem.logLifecycle("SDB.init - finish") ; } }