public static String printRelation(Relation c) { StringBuilder output = new StringBuilder(); output.append( "Relation has type: " ); output.append( c.getRelationName() ); output.append( "Attributes: "); for ( String attType : c.getAttributeKeys() ) { String val = c.getAttribute( attType ); output.append( "[").append( attType ).append( ", " ).append( val ).append( "], " ); } output.append("\nFirst argument:\n"); output.append(printConstituent(c.getSource())); output.append("\n\nSecond argument:\n"); output.append(printConstituent(c.getTarget())); return output.toString(); }
public static String printRelation(Relation c) { StringBuilder output = new StringBuilder(); output.append( "Relation has type: " ); output.append( c.getRelationName() ); output.append( "Attributes: "); for ( String attType : c.getAttributeKeys() ) { String val = c.getAttribute( attType ); output.append( "[").append( attType ).append( ", " ).append( val ).append( "], " ); } output.append("\nFirst argument:\n"); output.append(printConstituent(c.getSource())); output.append("\n\nSecond argument:\n"); output.append(printConstituent(c.getTarget())); return output.toString(); }
relationBuilder.setTargetConstituent(tgtId); if (!relation.getAttributeKeys().isEmpty()) { for (String key: Sorters.sortSet(relation.getAttributeKeys())) { relationBuilder.putProperties(key, relation.getAttribute(key));
relationBuilder.setTargetConstituent(tgtId); if (!relation.getAttributeKeys().isEmpty()) { for (String key: Sorters.sortSet(relation.getAttributeKeys())) { relationBuilder.putProperties(key, relation.getAttribute(key));