/** * Creates an ExecutionPlan for the parsed chainName in the parsed ImmutableGraph * @param graph the graph * @param chainName the chain name * @param enhProps the map with the enhancement properties defined for the * chain or <code>null</code> if none * @return the node representing the ex:ExecutionPlan * @since 0.12.1 */ public static BlankNodeOrIRI createExecutionPlan(Graph graph,String chainName, Map<String,Object> enhProps){ if(graph == null){ throw new IllegalArgumentException("The parsed Graph MUST NOT be NULL!"); } if(chainName == null || chainName.isEmpty()){ throw new IllegalArgumentException("The parsed Chain name MUST NOT be NULL nor empty!"); } BlankNodeOrIRI node = new BlankNode(); graph.add(new TripleImpl(node, RDF_TYPE, EXECUTION_PLAN)); graph.add(new TripleImpl(node, CHAIN,new PlainLiteralImpl(chainName))); writeEnhancementProperties(graph, node, null, enhProps); return node; }
/** * Creates an ExecutionPlan for the parsed chainName in the parsed ImmutableGraph * @param graph the graph * @param chainName the chain name * @param enhProps the map with the enhancement properties defined for the * chain or <code>null</code> if none * @return the node representing the ex:ExecutionPlan * @since 0.12.1 */ public static BlankNodeOrIRI createExecutionPlan(Graph graph,String chainName, Map<String,Object> enhProps){ if(graph == null){ throw new IllegalArgumentException("The parsed Graph MUST NOT be NULL!"); } if(chainName == null || chainName.isEmpty()){ throw new IllegalArgumentException("The parsed Chain name MUST NOT be NULL nor empty!"); } BlankNodeOrIRI node = new BlankNode(); graph.add(new TripleImpl(node, RDF_TYPE, EXECUTION_PLAN)); graph.add(new TripleImpl(node, CHAIN,new PlainLiteralImpl(chainName))); writeEnhancementProperties(graph, node, null, enhProps); return node; }
writeEnhancementProperties(graph, node, engineName, enhProps); return node;
writeEnhancementProperties(graph, node, engineName, enhProps); return node;