From e2274cff3fbb2f6ad3b71623e7e6c68a28951d1a Mon Sep 17 00:00:00 2001 From: anquetil Date: Tue, 18 Nov 2025 12:23:11 +0100 Subject: [PATCH 1/2] query.QueryProcess : commented 35 methods & 1 attribute ; removed useless imports --- .../inria/corese/core/query/QueryProcess.java | 66 +++++++++++++++---- 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/src/main/java/fr/inria/corese/core/query/QueryProcess.java b/src/main/java/fr/inria/corese/core/query/QueryProcess.java index 40306761d..7458d344a 100755 --- a/src/main/java/fr/inria/corese/core/query/QueryProcess.java +++ b/src/main/java/fr/inria/corese/core/query/QueryProcess.java @@ -3,13 +3,10 @@ import fr.inria.corese.core.Event; import fr.inria.corese.core.EventManager; import fr.inria.corese.core.Graph; -import fr.inria.corese.core.api.DataBroker; -import fr.inria.corese.core.api.DataBrokerConstruct; import fr.inria.corese.core.api.Loader; import fr.inria.corese.core.api.Log; import fr.inria.corese.core.compiler.eval.Interpreter; import fr.inria.corese.core.compiler.eval.QuerySolver; -import fr.inria.corese.core.compiler.eval.QuerySolverVisitor; import fr.inria.corese.core.compiler.federate.FederateVisitor; import fr.inria.corese.core.compiler.parser.Transformer; import fr.inria.corese.core.kgram.api.core.Node; @@ -26,7 +23,6 @@ import fr.inria.corese.core.load.Service; import fr.inria.corese.core.logic.Entailment; import fr.inria.corese.core.print.LogManager; -import fr.inria.corese.core.print.TripleFormat; import fr.inria.corese.core.producer.DataBrokerConstructExtern; import fr.inria.corese.core.query.update.GraphManager; import fr.inria.corese.core.sparql.api.IDatatype; @@ -39,13 +35,10 @@ import fr.inria.corese.core.sparql.triple.parser.*; import fr.inria.corese.core.sparql.triple.parser.Access.Feature; import fr.inria.corese.core.sparql.triple.parser.Access.Level; -import fr.inria.corese.core.sparql.triple.parser.context.ContextLog; import fr.inria.corese.core.storage.api.dataManager.DataManager; -import fr.inria.corese.core.transform.TemplateVisitor; import fr.inria.corese.core.util.Extension; import fr.inria.corese.core.util.Property; import jakarta.ws.rs.client.ResponseProcessingException; -import org.json.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -100,7 +93,9 @@ public class QueryProcess extends QuerySolver { boolean isMatch = false; private QueryProcessUpdate queryProcessUpdate; private ProducerImpl localProducer; - private DataBrokerConstruct dataBrokerUpdate; + /* --- dead code removal --- + private DataBrokerConstruct dataBrokerUpdate; */ + // true: execute start/end transaction before query // false: case where we execute a subquery (e.g. xt:sparql) // or a query within rule engine @@ -281,11 +276,13 @@ static ProducerImpl createProducer(Graph g, String factory, String db) { return ProducerImpl.create(g); } +/* --- dead code removal --- public static QueryProcess create(Graph g, Graph g2) { QueryProcess qp = QueryProcess.create(g); qp.add(g2); return qp; } + --- dead code removal --- */ /** * Create an Eval initialized with a query q that contains function @@ -316,9 +313,11 @@ public static Interpreter createInterpreter(Producer p, Matcher m) { return eval; } +/* --- dead code removal --- static boolean isOverwrite() { return isReentrant(); } + --- dead code removal --- */ public static void setOverwrite(boolean b) { setReentrant(b); @@ -347,9 +346,11 @@ public static void setVisitorName(String aSolverVisitorName) { solverVisitorName = aSolverVisitorName; } +/* --- dead code removal --- public static String getServerVisitorName() { return serverVisitorName; } + --- dead code removal --- */ public static void setServerVisitorName(String name) { serverVisitorName = name; @@ -409,6 +410,7 @@ DataManager getDataManager(Producer p) { return null; } +/* --- dead code removal --- public Loader getLoader() { return load; } @@ -416,6 +418,7 @@ public Loader getLoader() { public void setLoader(Loader ld) { load = ld; } + --- dead code removal --- */ public boolean isMatch() { return isMatch; @@ -466,15 +469,19 @@ QueryProcess focusFrom(Query q) { * *************************************************************** */ +/* --- dead code removal --- public Mappings update(String squery) throws EngineException { return doQuery(squery, null, null); } + --- dead code removal --- */ @Override public Mappings query(String squery) throws EngineException { return doQuery(squery, null, null); } + +/* --- dead code removal --- // rdf is a turtle document // parse it as sparql query graph pattern (where bnode are variable) public Mappings queryTurtle(String rdf) throws EngineException { @@ -499,6 +506,7 @@ public Mappings queryTrig(Graph g) throws EngineException { public Mappings query(Graph g) throws EngineException { return queryTrig(g); } + --- dead code removal --- */ /** * defaut and named specify a Dataset if the query has no from/using (resp. @@ -515,6 +523,7 @@ public Mappings query(String squery, Dataset ds) throws EngineException { return query(squery, null, ds); } +/* --- dead code removal --- public Mappings query(String squery, Context c) throws EngineException { return query(squery, null, Dataset.create(c)); } @@ -522,6 +531,7 @@ public Mappings query(String squery, Context c) throws EngineException { public Mappings query(String squery, AccessRight access) throws EngineException { return query(squery, new Context(access)); } + --- dead code removal --- */ @Override public Mappings query(String squery, Mapping map) throws EngineException { @@ -532,6 +542,7 @@ public Mappings query(String squery, Binding b) throws EngineException { return query(squery, Mapping.create(b), null); } +/* --- dead code removal --- public Mappings query(String squery, Context c, Binding b) throws EngineException { return query(squery, Mapping.create(b), Dataset.create(c)); } @@ -539,6 +550,7 @@ public Mappings query(String squery, Context c, Binding b) throws EngineExceptio public Mappings query(String squery, ProcessVisitor vis) throws EngineException { return query(squery, null, Dataset.create(vis)); } + --- dead code removal --- */ Mappings doQuery(String squery, Mapping map, Dataset ds) throws EngineException { Query q = compile(squery, ds); @@ -558,10 +570,12 @@ public Query compile(String squery, Dataset ds) throws EngineException { return q; } +/* --- dead code removal --- public Mappings modifier(String str, Mappings map) throws SparqlException { Query q = compile(str, new Context().setAST(map.getAST())); return modifier(q, map); } + --- dead code removal --- */ @Override public Query compile(String squery) throws EngineException { @@ -642,9 +656,11 @@ public Mappings sparql(String squery, Dataset ds) throws EngineException { return sparqlQueryUpdate(squery, ds, RDFS_ENTAILMENT); } +/* --- dead code removal --- public Mappings sparql(String squery, Dataset ds, int entail) throws EngineException { return sparqlQueryUpdate(squery, ds, entail); } + --- dead code removal --- */ public Mappings query(ASTQuery ast) throws EngineException { if (ast.isUpdate()) { @@ -686,6 +702,7 @@ public Mappings update(ASTQuery ast) throws EngineException { * ***************************************** */ +/* --- dead code removal --- public Mappings sparqlQuery(String squery) throws EngineException { Query q = compile(squery); if (q.isUpdate()) { @@ -693,6 +710,7 @@ public Mappings sparqlQuery(String squery) throws EngineException { } return query(q); } + --- dead code removal --- */ public Mappings sparqlQuery(String squery, Mapping map, Dataset ds) throws EngineException { Query q = compile(squery, ds); @@ -706,6 +724,7 @@ public Mappings sparqlQuery(Query q, Mapping map, Dataset ds) throws EngineExcep return query(null, q, map, ds); } +/* --- dead code removal --- public Mappings sparqlUpdate(String squery) throws EngineException { Query q = compile(squery); if (!q.isUpdate()) { @@ -717,6 +736,7 @@ public Mappings sparqlUpdate(String squery) throws EngineException { public Mappings sparqlQueryUpdate(String squery) throws EngineException { return query(squery); } + --- dead code removal --- */ /* * ************************************************************************* @@ -875,6 +895,7 @@ void processLog(Query q, Mappings map) { } } +/* --- dead code removal --- // translate log header into Mappings // use case: gui display log header as query results public Mappings log2Mappings(ContextLog log) throws EngineException { @@ -908,6 +929,7 @@ public Mappings log2Mappings(ContextLog log, boolean blog) throws EngineExceptio return map; } + --- dead code removal --- */ Mappings synQuery(Node gNode, Query query, Mapping m) throws EngineException { Mappings map = null; @@ -1153,9 +1175,10 @@ public void afterLoad(IDatatype dt, boolean b) { ************************************************************************ */ +/* --- dead code removal --- /** * skolemize the blank nodes of the result Mappings - */ + *_/ public Mappings skolem(Mappings map) { Graph g = getGraph(); if (map.getGraph() != null) { @@ -1174,6 +1197,7 @@ public Mappings skolem(Mappings map) { } return map; } + --- dead code removal --- */ public void logStart(Query query) { if (getGraph() != null) { @@ -1187,12 +1211,14 @@ public void logFinish(Query query, Mappings m) { } } +/* --- dead code removal --- public void close() { if (dbProducer != null) { dbProducer.close(); dbProducer = null; } } + --- dead code removal --- */ /** * Logger xt:method(us:start, us:Event, event, obj) @@ -1235,9 +1261,11 @@ public IDatatype funcall(String name, Binding b, IDatatype... param) throws Engi return funcall(name, null, b, param); } +/* --- dead code removal --- public IDatatype funcall(String name, Context c, IDatatype... param) throws EngineException { return funcall(name, c, null, param); } + --- dead code removal --- */ public IDatatype funcall(String name, Context c, Binding b, IDatatype... param) throws EngineException { Function function = getLinkedFunction(name, param); @@ -1283,19 +1311,21 @@ public void init(Query q, Mapping m) { getCurrentEval().getVisitor().setActive(false); } +/* --- dead code removal --- /** * call @public @prepare function us:prepare() {} before lock graph * to complete initialization before query processing * to be called explicitely by user * use case: GUI QueryExec call prepare() * use case: xt:entailment() - */ + *_/ public void prepare() { try { new QuerySolverVisitor(getCreateEval()).prepare(); } catch (EngineException ex) { } } + --- dead code removal --- */ // Default Visitor to execute @event functions public ProcessVisitor getDefaultVisitor() { @@ -1315,9 +1345,11 @@ public ProcessVisitor getVisitor() { return getCurrentEval().getVisitor(); } +/* --- dead code removal --- public TemplateVisitor getTemplateVisitor() { return (TemplateVisitor) getCreateBinding().getTransformerVisitor(); } + --- dead code removal --- */ @Override public ProcessVisitor createProcessVisitor(Eval eval) { @@ -1389,10 +1421,12 @@ public ASTQuery parse(String path, Level level) throws EngineException { /** * 1- Linked Function 2- owl:imports */ +/* --- dead code removal --- @Override public Query parseQuery(String path) throws EngineException { return parseQuery(path, Level.USER_DEFAULT); } + --- dead code removal --- */ @Override public Query parseQuery(String path, Level level) throws EngineException { @@ -1426,9 +1460,11 @@ public void getLinkedFunction(String label) throws EngineException { getTransformer().getLinkedFunction(label); } +/* --- dead code removal --- void getLinkedFunctionBasic(String label) throws EngineException { getTransformer().getLinkedFunctionBasic(label); } + --- dead code removal --- */ public Graph defineFederation(String path) throws IOException, EngineException, LoadException { Graph g = Graph.create(); @@ -1458,9 +1494,11 @@ public void defineFederation(String name, List list) { FederateVisitor.defineFederation(name, list); } +/* --- dead code removal --- public void defineFederation(String name, String... list) { FederateVisitor.defineFederation(name, Arrays.asList(list)); } + --- dead code removal --- */ Transformer getTransformer() { if (transformer == null) { @@ -1472,10 +1510,12 @@ Transformer getTransformer() { //*********************************************************************** +/* --- dead code removal --- public Graph getExceptionGraph(Mappings map) throws LoadException { LogManager te = getLogManager(map); return te.parse(); } + --- dead code removal --- */ /** * Manager for local and remote endpoint log @@ -1493,6 +1533,7 @@ public LogManager getLogManager(Mappings map) { return new LogManager(getLog(map)); } +/* --- dead code removal --- public JSONObject getMessage(Mappings map) { String text = getStringMessage(map); if (text == null) { @@ -1500,7 +1541,7 @@ public JSONObject getMessage(Mappings map) { } return new JSONObject(text); } - + public String getStringMessage(Mappings map) { String url = map.getLastLink(URLParam.MES); if (url == null) { @@ -1508,6 +1549,7 @@ public String getStringMessage(Mappings map) { } return new Service().getString(url); } + --- dead code removal --- */ public QueryProcessUpdate getQueryProcessUpdate() { return queryProcessUpdate; @@ -1534,6 +1576,7 @@ public boolean hasDataManager() { return getDataManager() != null; } +/* --- dead code removal --- public DataBroker getDataBroker() { return getLocalProducer().getDataBroker(); } @@ -1545,6 +1588,7 @@ public DataBrokerConstruct getDataBrokerUpdate() { public void setDataBrokerUpdate(DataBrokerConstruct dataBrokerUpdate) { this.dataBrokerUpdate = dataBrokerUpdate; } + --- dead code removal --- */ public boolean isProcessTransaction() { return processTransaction; From 6d4e38507b31634ad2c10916ad2647cc9f46d6f5 Mon Sep 17 00:00:00 2001 From: Pierre Maillot Date: Wed, 19 Nov 2025 14:52:09 +0100 Subject: [PATCH 2/2] deleting commented dead code --- .../inria/corese/core/query/QueryProcess.java | 278 ------------------ 1 file changed, 278 deletions(-) diff --git a/src/main/java/fr/inria/corese/core/query/QueryProcess.java b/src/main/java/fr/inria/corese/core/query/QueryProcess.java index 7458d344a..54bc89fb9 100755 --- a/src/main/java/fr/inria/corese/core/query/QueryProcess.java +++ b/src/main/java/fr/inria/corese/core/query/QueryProcess.java @@ -93,8 +93,6 @@ public class QueryProcess extends QuerySolver { boolean isMatch = false; private QueryProcessUpdate queryProcessUpdate; private ProducerImpl localProducer; - /* --- dead code removal --- - private DataBrokerConstruct dataBrokerUpdate; */ // true: execute start/end transaction before query // false: case where we execute a subquery (e.g. xt:sparql) @@ -276,14 +274,6 @@ static ProducerImpl createProducer(Graph g, String factory, String db) { return ProducerImpl.create(g); } -/* --- dead code removal --- - public static QueryProcess create(Graph g, Graph g2) { - QueryProcess qp = QueryProcess.create(g); - qp.add(g2); - return qp; - } - --- dead code removal --- */ - /** * Create an Eval initialized with a query q that contains function * definitions This Eval can be used to call these functions: @@ -313,12 +303,6 @@ public static Interpreter createInterpreter(Producer p, Matcher m) { return eval; } -/* --- dead code removal --- - static boolean isOverwrite() { - return isReentrant(); - } - --- dead code removal --- */ - public static void setOverwrite(boolean b) { setReentrant(b); } @@ -346,12 +330,6 @@ public static void setVisitorName(String aSolverVisitorName) { solverVisitorName = aSolverVisitorName; } -/* --- dead code removal --- - public static String getServerVisitorName() { - return serverVisitorName; - } - --- dead code removal --- */ - public static void setServerVisitorName(String name) { serverVisitorName = name; } @@ -410,16 +388,6 @@ DataManager getDataManager(Producer p) { return null; } -/* --- dead code removal --- - public Loader getLoader() { - return load; - } - - public void setLoader(Loader ld) { - load = ld; - } - --- dead code removal --- */ - public boolean isMatch() { return isMatch; } @@ -469,45 +437,12 @@ QueryProcess focusFrom(Query q) { * *************************************************************** */ -/* --- dead code removal --- - public Mappings update(String squery) throws EngineException { - return doQuery(squery, null, null); - } - --- dead code removal --- */ @Override public Mappings query(String squery) throws EngineException { return doQuery(squery, null, null); } - -/* --- dead code removal --- - // rdf is a turtle document - // parse it as sparql query graph pattern (where bnode are variable) - public Mappings queryTurtle(String rdf) throws EngineException { - return doQuery(rdf, null, Dataset.create().setLoad(true)); - } - - // translate graph g as turtle ast query graph pattern - public Mappings queryTurtle(Graph g) throws EngineException { - String rdf = TripleFormat.create(g).setGraphQuery(true).toString(); - return doQuery(rdf, null, Dataset.create().setLoad(true)); - } - - // translate graph g as trig ast query graph pattern - public Mappings queryTrig(Graph g) throws EngineException { - // trig where default graph kg:default is printed - // in turtle without embedding graph kg:default { } - String rdf = TripleFormat.create(g, true).setGraphQuery(true).toString(); - return doQuery(rdf, null, Dataset.create().setLoad(true)); - } - - // translate graph g as trig ast query graph pattern - public Mappings query(Graph g) throws EngineException { - return queryTrig(g); - } - --- dead code removal --- */ - /** * defaut and named specify a Dataset if the query has no from/using (resp. * named), kgram use defaut (resp. named) if it exist for update, defaut is @@ -523,16 +458,6 @@ public Mappings query(String squery, Dataset ds) throws EngineException { return query(squery, null, ds); } -/* --- dead code removal --- - public Mappings query(String squery, Context c) throws EngineException { - return query(squery, null, Dataset.create(c)); - } - - public Mappings query(String squery, AccessRight access) throws EngineException { - return query(squery, new Context(access)); - } - --- dead code removal --- */ - @Override public Mappings query(String squery, Mapping map) throws EngineException { return query(squery, map, null); @@ -542,16 +467,6 @@ public Mappings query(String squery, Binding b) throws EngineException { return query(squery, Mapping.create(b), null); } -/* --- dead code removal --- - public Mappings query(String squery, Context c, Binding b) throws EngineException { - return query(squery, Mapping.create(b), Dataset.create(c)); - } - - public Mappings query(String squery, ProcessVisitor vis) throws EngineException { - return query(squery, null, Dataset.create(vis)); - } - --- dead code removal --- */ - Mappings doQuery(String squery, Mapping map, Dataset ds) throws EngineException { Query q = compile(squery, ds); return query(null, q, map, ds); @@ -570,13 +485,6 @@ public Query compile(String squery, Dataset ds) throws EngineException { return q; } -/* --- dead code removal --- - public Mappings modifier(String str, Mappings map) throws SparqlException { - Query q = compile(str, new Context().setAST(map.getAST())); - return modifier(q, map); - } - --- dead code removal --- */ - @Override public Query compile(String squery) throws EngineException { return compile(squery, (Dataset) null); @@ -656,12 +564,6 @@ public Mappings sparql(String squery, Dataset ds) throws EngineException { return sparqlQueryUpdate(squery, ds, RDFS_ENTAILMENT); } -/* --- dead code removal --- - public Mappings sparql(String squery, Dataset ds, int entail) throws EngineException { - return sparqlQueryUpdate(squery, ds, entail); - } - --- dead code removal --- */ - public Mappings query(ASTQuery ast) throws EngineException { if (ast.isUpdate()) { return update(ast); @@ -702,15 +604,6 @@ public Mappings update(ASTQuery ast) throws EngineException { * ***************************************** */ -/* --- dead code removal --- - public Mappings sparqlQuery(String squery) throws EngineException { - Query q = compile(squery); - if (q.isUpdate()) { - throw new EngineException("Unauthorized Update in SPARQL Query:\n" + squery); - } - return query(q); - } - --- dead code removal --- */ public Mappings sparqlQuery(String squery, Mapping map, Dataset ds) throws EngineException { Query q = compile(squery, ds); @@ -724,20 +617,6 @@ public Mappings sparqlQuery(Query q, Mapping map, Dataset ds) throws EngineExcep return query(null, q, map, ds); } -/* --- dead code removal --- - public Mappings sparqlUpdate(String squery) throws EngineException { - Query q = compile(squery); - if (!q.isUpdate()) { - throw new EngineException("Unauthorized Query in SPARQL Update:\n" + squery); - } - return query(q); - } - - public Mappings sparqlQueryUpdate(String squery) throws EngineException { - return query(squery); - } - --- dead code removal --- */ - /* * ************************************************************************* * @@ -895,42 +774,6 @@ void processLog(Query q, Mappings map) { } } -/* --- dead code removal --- - // translate log header into Mappings - // use case: gui display log header as query results - public Mappings log2Mappings(ContextLog log) throws EngineException { - return log2Mappings(log, false); - } - - public Mappings log2Mappings(ContextLog log, boolean blog) throws EngineException { - String str = "select * where {?s ?p ?o}"; - Query q = compile(str); - Mappings map = Mappings.create(q); - map.init(q); - Collection nameList = log.getLabelList(); - - for (String url : log.getSubjectMap().getKeys()) { - if (blog) { - nameList = log.getPropertyMap(url).keySet(); - } - for (String name : nameList) { - IDatatype value = log.getLabel(url, name); - - if (value != null) { - ArrayList valueList = new ArrayList<>(); - valueList.add(DatatypeMap.newResource(url)); - valueList.add(DatatypeMap.newResource(name)); - valueList.add(value); - Mapping m = Mapping.create(q.getSelect(), valueList); - map.add(m); - } - } - } - - return map; - } - --- dead code removal --- */ - Mappings synQuery(Node gNode, Query query, Mapping m) throws EngineException { Mappings map = null; try { @@ -1175,30 +1018,6 @@ public void afterLoad(IDatatype dt, boolean b) { ************************************************************************ */ -/* --- dead code removal --- - /** - * skolemize the blank nodes of the result Mappings - *_/ - public Mappings skolem(Mappings map) { - Graph g = getGraph(); - if (map.getGraph() != null) { - // result of construct where - g = (Graph) map.getGraph(); - } - for (Mapping m : map) { - Node[] nodes = m.getNodes(); - int i = 0; - for (Node n : nodes) { - if (n.isBlank()) { - nodes[i] = g.skolem(n); - } - i++; - } - } - return map; - } - --- dead code removal --- */ - public void logStart(Query query) { if (getGraph() != null) { getGraph().logStart(query); @@ -1211,15 +1030,6 @@ public void logFinish(Query query, Mappings m) { } } -/* --- dead code removal --- - public void close() { - if (dbProducer != null) { - dbProducer.close(); - dbProducer = null; - } - } - --- dead code removal --- */ - /** * Logger xt:method(us:start, us:Event, event, obj) * Use case: event logger @@ -1261,12 +1071,6 @@ public IDatatype funcall(String name, Binding b, IDatatype... param) throws Engi return funcall(name, null, b, param); } -/* --- dead code removal --- - public IDatatype funcall(String name, Context c, IDatatype... param) throws EngineException { - return funcall(name, c, null, param); - } - --- dead code removal --- */ - public IDatatype funcall(String name, Context c, Binding b, IDatatype... param) throws EngineException { Function function = getLinkedFunction(name, param); if (function == null) { @@ -1311,22 +1115,6 @@ public void init(Query q, Mapping m) { getCurrentEval().getVisitor().setActive(false); } -/* --- dead code removal --- - /** - * call @public @prepare function us:prepare() {} before lock graph - * to complete initialization before query processing - * to be called explicitely by user - * use case: GUI QueryExec call prepare() - * use case: xt:entailment() - *_/ - public void prepare() { - try { - new QuerySolverVisitor(getCreateEval()).prepare(); - } catch (EngineException ex) { - } - } - --- dead code removal --- */ - // Default Visitor to execute @event functions public ProcessVisitor getDefaultVisitor() { try { @@ -1345,12 +1133,6 @@ public ProcessVisitor getVisitor() { return getCurrentEval().getVisitor(); } -/* --- dead code removal --- - public TemplateVisitor getTemplateVisitor() { - return (TemplateVisitor) getCreateBinding().getTransformerVisitor(); - } - --- dead code removal --- */ - @Override public ProcessVisitor createProcessVisitor(Eval eval) { if (getVisitorName() == null) { @@ -1418,16 +1200,6 @@ public ASTQuery parse(String path, Level level) throws EngineException { return t.parse(str); } - /** - * 1- Linked Function 2- owl:imports - */ -/* --- dead code removal --- - @Override - public Query parseQuery(String path) throws EngineException { - return parseQuery(path, Level.USER_DEFAULT); - } - --- dead code removal --- */ - @Override public Query parseQuery(String path, Level level) throws EngineException { String str = QueryLoad.create().basicParse(path); @@ -1460,12 +1232,6 @@ public void getLinkedFunction(String label) throws EngineException { getTransformer().getLinkedFunction(label); } -/* --- dead code removal --- - void getLinkedFunctionBasic(String label) throws EngineException { - getTransformer().getLinkedFunctionBasic(label); - } - --- dead code removal --- */ - public Graph defineFederation(String path) throws IOException, EngineException, LoadException { Graph g = Graph.create(); Load ld = Load.create(g); @@ -1494,12 +1260,6 @@ public void defineFederation(String name, List list) { FederateVisitor.defineFederation(name, list); } -/* --- dead code removal --- - public void defineFederation(String name, String... list) { - FederateVisitor.defineFederation(name, Arrays.asList(list)); - } - --- dead code removal --- */ - Transformer getTransformer() { if (transformer == null) { transformer = Transformer.create(); @@ -1510,12 +1270,6 @@ Transformer getTransformer() { //*********************************************************************** -/* --- dead code removal --- - public Graph getExceptionGraph(Mappings map) throws LoadException { - LogManager te = getLogManager(map); - return te.parse(); - } - --- dead code removal --- */ /** * Manager for local and remote endpoint log @@ -1533,24 +1287,6 @@ public LogManager getLogManager(Mappings map) { return new LogManager(getLog(map)); } -/* --- dead code removal --- - public JSONObject getMessage(Mappings map) { - String text = getStringMessage(map); - if (text == null) { - return null; - } - return new JSONObject(text); - } - - public String getStringMessage(Mappings map) { - String url = map.getLastLink(URLParam.MES); - if (url == null) { - return null; - } - return new Service().getString(url); - } - --- dead code removal --- */ - public QueryProcessUpdate getQueryProcessUpdate() { return queryProcessUpdate; } @@ -1576,20 +1312,6 @@ public boolean hasDataManager() { return getDataManager() != null; } -/* --- dead code removal --- - public DataBroker getDataBroker() { - return getLocalProducer().getDataBroker(); - } - - public DataBrokerConstruct getDataBrokerUpdate() { - return dataBrokerUpdate; - } - - public void setDataBrokerUpdate(DataBrokerConstruct dataBrokerUpdate) { - this.dataBrokerUpdate = dataBrokerUpdate; - } - --- dead code removal --- */ - public boolean isProcessTransaction() { return processTransaction; }