File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
src/main/java/ldbc/socialnet/dbgen Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ public void serialize(StudyAt studyAt) {
527
527
public void serialize (Organization organization ) {
528
528
Vector <String > arguments = new Vector <String >();
529
529
arguments .add (Long .toString (organization .id ));
530
- arguments .add (ScalableGenerator . OrganisationType . company .toString ());
530
+ arguments .add (organization . type .toString ());
531
531
arguments .add (organization .name );
532
532
arguments .add (DBP .getUrl (organization .name ));
533
533
arguments .add (Integer .toString (organization .location ));
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ public void serialize(StudyAt studyAt) {
600
600
public void serialize (Organization organization ) {
601
601
Vector <String > arguments = new Vector <String >();
602
602
arguments .add (Long .toString (organization .id ));
603
- arguments .add (ScalableGenerator . OrganisationType . company .toString ());
603
+ arguments .add (organization . type .toString ());
604
604
arguments .add (organization .name );
605
605
arguments .add (DBP .getUrl (organization .name ));
606
606
ToCSV (arguments , Files .ORGANISATION .ordinal ());
Original file line number Diff line number Diff line change 49
49
50
50
import ldbc .socialnet .dbgen .dictionary .*;
51
51
import ldbc .socialnet .dbgen .generator .DateGenerator ;
52
+ import ldbc .socialnet .dbgen .generator .ScalableGenerator ;
52
53
import ldbc .socialnet .dbgen .objects .*;
53
54
import ldbc .socialnet .dbgen .vocabulary .DBP ;
54
55
import ldbc .socialnet .dbgen .vocabulary .DBPOWL ;
@@ -528,7 +529,11 @@ public void serialize(StudyAt studyAt) {
528
529
public void serialize (Organization organization ) {
529
530
530
531
StringBuffer result = new StringBuffer (19000 );
531
- writeDBPData (DBP .fullPrefixed (organization .name ), RDF .type , DBPOWL .Organisation );
532
+ if ( organization .type == ScalableGenerator .OrganisationType .company ) {
533
+ writeDBPData (DBP .fullPrefixed (organization .name ), RDF .type , DBPOWL .Company );
534
+ } else {
535
+ writeDBPData (DBP .fullPrefixed (organization .name ), RDF .type , DBPOWL .University );
536
+ }
532
537
writeDBPData (DBP .fullPrefixed (organization .name ), FOAF .Name , createLiteral (organization .name ));
533
538
createTripleSPO (result , DBP .fullPrefixed (organization .name ),
534
539
SNVOC .locatedIn , DBP .fullPrefixed (locationDic .getLocationName (organization .location )));
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ public class DBPOWL {
49
49
public static final String Country = PREFIX +"Country" ;
50
50
public static final String Continent = PREFIX +"Continent" ;
51
51
public static final String Organisation = PREFIX +"Organisation" ;
52
+ public static final String University = PREFIX +"University" ;
53
+ public static final String Company = PREFIX +"Company" ;
52
54
public static final String partOf = PREFIX +"isPartOf" ;
53
55
54
56
/**
You can’t perform that action at this time.
0 commit comments