File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
src/main/java/ldbc/snb/datagen/serializer/snb/csv/staticserializer Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,16 @@ protected void serialize(final Organisation organisation) {
104
104
}
105
105
106
106
protected void serialize (final TagClass tagClass ) {
107
- ArrayList <String > arguments = new ArrayList <String >();
108
- arguments .add (Integer .toString (tagClass .id ));
109
- arguments .add (tagClass .name );
110
- if ("Thing" .equals (tagClass .name )) {
111
- arguments .add ("http://www.w3.org/2002/07/owl#Thing" );
112
- } else {
113
- arguments .add (DBPOWL .getUrl (tagClass .name ));
114
- }
115
- writers .get (TAGCLASS ).writeEntry (ImmutableList .of ());
107
+ writers .get (TAGCLASS ).writeEntry (ImmutableList .of (
108
+ Integer .toString (tagClass .id ),
109
+ tagClass .name ,
110
+ "Thing" .equals (tagClass .name ) ? "http://www.w3.org/2002/07/owl#Thing" : DBPOWL .getUrl (tagClass .name )
111
+ ));
116
112
if (tagClass .parent != -1 ) {
117
- arguments . clear ();
118
- arguments . add ( Integer .toString (tagClass .id ));
119
- arguments . add ( Integer .toString (tagClass .parent ));
120
- writers . get ( TAGCLASS_IS_SUBCLASS_OF_TAGCLASS ). writeEntry ( ImmutableList . of ( ));
113
+ writers . get ( TAGCLASS_IS_SUBCLASS_OF_TAGCLASS ). writeEntry ( ImmutableList . of (
114
+ Integer .toString (tagClass .id ),
115
+ Integer .toString (tagClass .parent )
116
+ ));
121
117
}
122
118
}
123
119
You can’t perform that action at this time.
0 commit comments