Class StatementUtils

java.lang.Object
ubic.gemma.model.expression.experiment.StatementUtils

public class StatementUtils extends Object
Author:
poirigui
  • Constructor Details

    • StatementUtils

      public StatementUtils()
  • Method Details

    • hasSubject

      public static boolean hasSubject(Statement statement, Characteristic subject)
      Test if the given statement has the given subject.
    • describeHalfPair

      @Nullable public static String describeHalfPair(String predicateName, String objectName, @Nullable String predicate, @Nullable String predicateUri, @Nullable String object, @Nullable String objectUri)
      Name the half of a predicate/object pair that is present without the other.

      A label or a URI counts as present. A pair is written whole or not at all. Before the first pair was checked, six factor-value statements reached production with a predicate and no object (frinkbro, 2026-09-13).

      Returns:
      "<predicateName> without <objectName>", the reverse, or null when the pair is whole or empty
    • describeHalfPair

      @Nullable public static String describeHalfPair(Statement s)
      The first half-present pair on a statement, first pair before second.
      See Also:
    • describeHalfPair

      @Nullable public static String describeHalfPair(StatementValueObject s)
      The first half-present pair on a proposed statement, first pair before second.
      See Also:
    • formatStatement

      public static String formatStatement(Statement statement)
      Format a statement.
    • formatStatement

      public static String formatStatement(StatementValueObject statementVo)
    • formatStatement

      public static String formatStatement(Statement statement, String[] ignoredPredicateUris)
      Format a statement.
      Parameters:
      statement - statement to format.
      ignoredPredicateUris - list of predicate URIs that shouldn't be included in the formatted statement