@Override public Context getContext() { return dsg.getContext() ; } @Override
public Context getContext() { return dsg.getContext() ; }
@Override public Context getContext() { return get().getContext() ; }
@Override public Context getContext() { return get().getContext() ; }
private static Context setupContext(Context context, DatasetGraph dataset) { // To many copies? if ( context == null ) // Copy of global context to protect against chnage. context = ARQ.getContext() ; context = context.copy() ; if ( dataset.getContext() != null ) context.putAll(dataset.getContext()) ; context.set(ARQConstants.sysCurrentTime, NodeFactory.nowAsDateTime()) ; return context ; } }
private static Context setupContext(Context context, DatasetGraph dataset) { // To many copies? if ( context == null ) // Copy of global context to protect against chnage. context = ARQ.getContext() ; context = context.copy() ; if ( dataset.getContext() != null ) context.putAll(dataset.getContext()) ; context.set(ARQConstants.sysCurrentTime, NodeFactoryExtra.nowAsDateTime()) ; return context ; } }
private static Context setupContext(Context context, DatasetGraph dataset) { if ( context == null ) context = ARQ.getContext() ; // Already copied? context = context.copy() ; if ( dataset.getContext() != null ) // Copy per-dataset settings. context.putAll(dataset.getContext()) ; context.set(ARQConstants.sysCurrentTime, NodeFactory.nowAsDateTime()) ; // Allocators. // context.set(ARQConstants.sysVarAllocNamed, new VarAlloc(ARQConstants.allocVarMarkerExec)) ; // context.set(ARQConstants.sysVarAllocAnon, new VarAlloc(ARQConstants.allocVarAnonMarkerExec)) ; // Add VarAlloc for variables and bNodes (this is not the parse name). // More added later e.g. query (if there is a query), algebra form (in setOp) return context ; }
public static Context setupContext(Context context, DatasetGraph dataset) { if ( context == null ) context = ARQ.getContext() ; // Already copied? context = context.copy() ; if ( dataset != null && dataset.getContext() != null ) // Copy per-dataset settings. context.putAll(dataset.getContext()) ; context.set(ARQConstants.sysCurrentTime, NodeFactoryExtra.nowAsDateTime()) ; // Allocators. // context.set(ARQConstants.sysVarAllocNamed, new VarAlloc(ARQConstants.allocVarMarkerExec)) ; // context.set(ARQConstants.sysVarAllocAnon, new VarAlloc(ARQConstants.allocVarAnonMarkerExec)) ; // Add VarAlloc for variables and bNodes (this is not the parse name). // More added later e.g. query (if there is a query), algebra form (in setOp) return context ; }
if ( dsg.getContext() != null ) dsg2.getContext().putAll(dsg.getContext()) ; dsg2.getContext().set(ARQConstants.symDatasetDefaultGraphs, defaultGraphs) ; dsg2.getContext().set(ARQConstants.symDatasetNamedGraphs, namedGraphs) ; return dsg2 ;
public Dataset createDataset(Assembler a, Resource root, Mode mode) { AssemblerUtils.setContext(root, dsg.getContext()) ;