Package org.openbel.framework.common.model.Statement

Examples of org.openbel.framework.common.model.Statement.Object


        if (object != null) {
            if (object.isSetStatement()) {
                XBELStatement statement = object.getStatement();
                StatementConverter sConverter = new StatementConverter();
                // Defer to StatementConverter
                dest.setObject(new Object(sConverter.convert(statement)));
            } else if (object.isSetTerm()) {
                XBELTerm term = object.getTerm();
                // Defer to TermConverter
                dest.setObject(new Object(tConverter.convert(term)));
            }
        }

        return dest;
    }
View Full Code Here


        org.openbel.framework.common.enums.RelationshipType r =
                source.getRelationshipType();
        if (r != null)
            xstmt.setRelationship(Relationship.fromValue(r.getDisplayValue()));

        Object object = source.getObject();
        if (object != null) {
            if (object.getStatement() != null) {
                XBELObject xo = new XBELObject();
                StatementConverter sConverter = new StatementConverter();
                // Defer to StatementConverter
                xo.setStatement(sConverter.convert(object.getStatement()));
                xstmt.setObject(xo);
            } else if (object.getTerm() != null) {
                XBELObject xo = new XBELObject();
                // Defer to TermConverter
                xo.setTerm(tConverter.convert(object.getTerm()));
                xstmt.setObject(xo);
            }
        }

        return xstmt;
View Full Code Here

                if (networkLiterals.contains(new TableEntry(val, rl))) {
                    continue FAMILIES;
                }
            }

            Object stmtObj = stmt.getObject();
            if (haveUUIDs && stmtObj != null && stmtObj.getTerm() != null) {
                // ... all family members
                parameters = stmtObj.getTerm().getAllParameters();
                for (final Parameter p : parameters) {
                    if (!validParameter(p)) {
                        continue;
                    }
                    Namespace ns = p.getNamespace();
View Full Code Here

                                final Term mat = new Term(f);
                                mat.addFunctionArgument(mpt);

                                // construct isA statement between member and family
                                isaStmts.add(new Statement(mat, null,
                                        null, new Object(fat), IS_A));
                                inferred++;
                            }
                        }
                    }
                }
View Full Code Here

                if (networkLiterals.contains(new TableEntry(val, rl))) {
                    continue COMPLEXES;
                }
            }

            Object stmtObj = stmt.getObject();
            if (haveUUIDs && stmtObj != null && stmtObj.getTerm() != null) {
                // ... all complex components
                parameters = stmtObj.getTerm().getAllParameters();
                for (final Parameter p : parameters) {
                    if (!validParameter(p)) {
                        continue;
                    }
                    Namespace ns = p.getNamespace();
View Full Code Here

            final List<Statement> stmts) {
        final Set<SkinnyUUID> uuids = new HashSet<SkinnyUUID>();

        for (final Statement stmt : stmts) {
            // Add all the object's parameters
            Object stmtObj = stmt.getObject();
            if (stmtObj == null || stmtObj.getTerm() == null) {
                continue;
            }
            for (final Parameter p : stmtObj.getTerm()) {
                if (!validParameter(p)) {
                    continue;
                }
                Namespace ns = p.getNamespace();
                String val = p.getValue();
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.model.Statement.Object

Copyright © 2018 www.massapicom. 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.