@@ -87,40 +87,63 @@ public static void main(String[] args) {
87
87
}
88
88
} */
89
89
90
- createPersonPublicationRelation ();
90
+ // createPersonPublicationRelation();
91
91
92
92
//createPersonOrganizationRelation();
93
93
94
94
// 1. load all cards
95
- //convertCards();
95
+ System .out .println ("1. load all cards" );
96
+ convertCards ();
97
+
96
98
// 2. load all organizations
97
- //convertOrganizations();
99
+ System .out .println ("2. load all organizations" );
100
+ convertOrganizations ();
101
+
98
102
// 3. connect Organizations with Cards
103
+ System .out .println ("3. connect Organizations with Cards" );
99
104
//addCardIdsToOrgas();
100
105
//addCardsToOrgas();
106
+
101
107
// 4. convert all Persons
102
- // convertPersons();
103
- //readInPersons();
108
+ System .out .println ("4. convert all Persons" );
109
+ convertPersons ();
110
+ readInPersons ();
111
+
104
112
// 5. convert all education information and link/add them directly to Persons
105
- //testEducation();
113
+ System .out .println ("5. convert all education information and link/add them directly to Persons" );
114
+ testEducation ();
115
+
106
116
// 6. relate all persons to organizations
107
- //createPersonOrganizationRelation();
117
+ System .out .println ("6. relate all persons to organizations" );
118
+ createPersonOrganizationRelation ();
119
+
108
120
// 7. convert all CRIS projects
109
- //convertProjects();
121
+ System .out .println ("7. convert all CRIS projects" );
122
+ convertProjects ();
123
+
110
124
// 8. relate all projects to persons
111
- //createProjectPersonRelation();
125
+ System .out .println ("8. relate all projects to persons" );
126
+ createProjectPersonRelation ();
127
+
112
128
// 9. convert Publications
113
- //convertPublications();
129
+ System .out .println ("9. convert Publications" );
130
+ convertPublications ();
131
+
114
132
// 10. relate persons and publications
115
- //createPersonPublicationRelation();
133
+ System .out .println ("10. relate persons and publications" );
134
+ createPersonPublicationRelation ();
135
+
116
136
// 11.
117
- //crawlAndConvertPrices();
137
+ System .out .println ("11." );
138
+ crawlAndConvertPrices ();
139
+
118
140
// 12. create all persons relations
119
- // createProjectPersonRelation();
120
- //createPersonOrganizationRelation();
121
- // createPersonAwardRelation();
122
- // createPersonPublicationRelation();
123
- //crawlAndConvertPrices();
141
+ System .out .println ("12. create all persons relations" );
142
+ createProjectPersonRelation ();
143
+ createPersonOrganizationRelation ();
144
+ createPersonAwardRelation ();
145
+ createPersonPublicationRelation ();
146
+ crawlAndConvertPrices ();
124
147
125
148
// convertOrganizations();
126
149
// createPersonFoafDepiction();
@@ -345,7 +368,7 @@ private static void convertPersons(){
345
368
346
369
// String[] files={"W_person.xml"};
347
370
348
- File folder = new File ("testxml/persons_24_05_2012 " );
371
+ File folder = new File ("testxml/2014-04-07person " );
349
372
File [] listOfFiles = folder .listFiles ();
350
373
ArrayList <String > pubs = new ArrayList <String >();
351
374
for (int i = 0 ; i < listOfFiles .length ; i ++) {
@@ -358,9 +381,9 @@ private static void convertPersons(){
358
381
for (String file :pubs ){
359
382
System .out .println ("Starting to process file:" + file );
360
383
CrisPerson crisPerson = new CrisPerson ("http://data.uni-muenster.de/context/cris/person/" );
361
- BufferedReader in = new BufferedReader (new InputStreamReader (new FileInputStream ("testxml/persons_24_05_2012 /" +file ),Charset .forName ("UTF-8" )));
384
+ BufferedReader in = new BufferedReader (new InputStreamReader (new FileInputStream ("testxml/2014-04-07person /" +file ),Charset .forName ("UTF-8" )));
362
385
crisPerson .readIntoModel ("cris_person" ,in );
363
- crisPerson .getObjectModel ().write (new FileOutputStream (new File ("conversion/persons_24_05_2012 /" +file +".ttl" )), "TURTLE" );
386
+ crisPerson .getObjectModel ().write (new FileOutputStream (new File ("conversion/2014-04-07person /" +file +".ttl" )), "TURTLE" );
364
387
//crisPerson.commitModelToStore();
365
388
System .out .println ("Finished processing file:" + file );
366
389
}
@@ -386,13 +409,13 @@ private static void convertPersons(){
386
409
387
410
private static void readInPersons (){
388
411
CrisPerson crisPerson = new CrisPerson ("http://data.uni-muenster.de/context/cris/person1/" );
389
- File folder = new File ("conversion/persons_24_05_2012 " );
412
+ File folder = new File ("conversion/2014-04-07person " );
390
413
File [] listOfFiles = folder .listFiles ();
391
414
392
415
for (int i = 0 ; i < listOfFiles .length ; i ++) {
393
416
if (listOfFiles [i ].isFile ()) {
394
417
try {
395
- crisPerson .getReposConnection ().add (new File ("conversion/persons_24_05_2012 /" +listOfFiles [i ].getName ()),"http://data.uni-muenster.de/context/" ,RDFFormat .TURTLE ) ;
418
+ crisPerson .getReposConnection ().add (new File ("conversion/2014-04-07person /" +listOfFiles [i ].getName ()),"http://data.uni-muenster.de/context/" ,RDFFormat .TURTLE ) ;
396
419
crisPerson .commitModelToStore ();
397
420
System .out .println (listOfFiles [i ].getName () +" have been commited" );
398
421
} catch (RDFParseException e ) {
0 commit comments