Examples of toBELShortForm()


Examples of org.openbel.framework.common.model.Parameter.toBELShortForm()

        } catch (InvalidArgument e) {
            //TODO change exception when paramEquivalencer is changed
            return null;
        } catch (Exception e) {
            final String fmt = "Unable to find equivalences for '%s'";
            final String msg = format(fmt, sp.toBELShortForm());
            throw new EquivalencerException(msg, e);
        }
    }

    /**
 
View Full Code Here

Examples of org.openbel.framework.common.model.Parameter.toBELShortForm()

        } catch (InvalidArgument e) {
            //TODO change when paramEquivalencer exception is changed
            return null;
        } catch (Exception e) {
            final String fmt = "Unable to find UUID for '%s'";
            final String msg = format(fmt, p.toBELShortForm());
            throw new EquivalencerException(msg, e);
        }
    }

    /**
 
View Full Code Here

Examples of org.openbel.framework.common.model.Statement.toBELShortForm()

                sps.setInt(8, stmt.getNestedObject() + 1);
            }

            // set bel statement text
            Statement s = _stmts.get(i);
            sps.setString(9, s.toBELShortForm());

            sps.addBatch();
        }

        sps.executeBatch();
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELShortForm()

            try {
                List<BelTerm> terms = kAMStore.getSupportingTerms(kamNode);
                if (!terms.isEmpty()) {
                    BelTerm bt = terms.get(0);
                    Term t = BELParser.parseTerm(bt.getLabel());
                    label = displayLongForm ? t.toBELLongForm() : t
                            .toBELShortForm();
                }
            } catch (Exception e) {
                // TODO exception
            }
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELShortForm()

                final BelTerm term = terms.get(0);
                final Term ts = BELParser.parseTerm(term.getLabel());
                final Term converted = convert(ts, param);

                cached = displayLongForm ? converted.toBELLongForm()
                        : converted.toBELShortForm();
                labelCache.put(nodeLabel, cached);
                return cached;
            }

            // if there are no supporting terms, return node label,
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELShortForm()

            // invalid BEL
            return null;
        }

        // convert to short form
        String shortForm = t.toBELShortForm();

        // 1: short circuit; try by kam node label
        PreparedStatement ps = getPreparedStatement(SELECT_KAM_NODE_BY_LABEL_SQL);
        ResultSet rset = null;
        try {
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELShortForm()

            try {
                List<BelTerm> terms = kAMStore.getSupportingTerms(kamNode);
                if (!terms.isEmpty()) {
                    BelTerm bt = terms.get(0);
                    Term t = BELParser.parseTerm(bt.getLabel());
                    label = t.toBELShortForm();
                }
            } catch (Exception e) {
                // TODO exception
            }
            labelCache.put(kamNode.getLabel(), label);
View Full Code Here

Examples of org.openbel.framework.common.model.Term.toBELShortForm()

            } catch (Exception e) {
                return null;
            }
            Term converted = convert(parsed);

            return displayLongForm ? converted.toBELLongForm() : converted
                    .toBELShortForm();
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.