Permalink
Browse files

linksets for eunis & geospecies

Uli
  • Loading branch information...
2 parents d92a90f + 05bc73e commit 818c787171b430ca0b4202a8ab2e1171f98dd8a7 ulrichsson committed Mar 25, 2011
Showing with 23,391 additions and 0 deletions.
  1. +7,996 −0 datasets/business/cordis/clean_organization_result.txt
  2. +67 −0 datasets/business/cordis/importfromcd/organization_clean.php
  3. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png
  4. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png
  5. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png
  6. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png
  7. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png
  8. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png
  9. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png
  10. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png
  11. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-bg_loop_25_000000_21x21.png
  12. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-icons_222222_256x240.png
  13. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-icons_4b8e0b_256x240.png
  14. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-icons_a83300_256x240.png
  15. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-icons_cccccc_256x240.png
  16. BIN latc-platform/dashboard/js/jquery/css/dark-hive/images/ui-icons_ffffff_256x240.png
  17. 0 latc-platform/dashboard/js/jquery/css/dark-hive/jquery-ui-1.8.5.custom.css
  18. 0 latc-platform/dashboard/js/jquery/css/jcarousel/ie7/credits.txt
  19. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/loading-small.gif
  20. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/loading.gif
  21. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/loading_small.gif
  22. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/next-horizontal.gif
  23. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/next-vertical.gif
  24. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/prev-horizontal.gif
  25. BIN latc-platform/dashboard/js/jquery/css/jcarousel/ie7/prev-vertical.gif
  26. 0 latc-platform/dashboard/js/jquery/css/jcarousel/ie7/skin.css
  27. 0 latc-platform/dashboard/js/jquery/css/jcarousel/tango/credits.txt
  28. BIN latc-platform/dashboard/js/jquery/css/jcarousel/tango/next-horizontal.png
  29. BIN latc-platform/dashboard/js/jquery/css/jcarousel/tango/next-vertical.png
  30. BIN latc-platform/dashboard/js/jquery/css/jcarousel/tango/prev-horizontal.png
  31. BIN latc-platform/dashboard/js/jquery/css/jcarousel/tango/prev-vertical.png
  32. 0 latc-platform/dashboard/js/jquery/css/jcarousel/tango/skin.css
  33. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png
  34. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png
  35. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png
  36. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png
  37. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png
  38. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png
  39. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png
  40. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
  41. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_217bc0_256x240.png
  42. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_2e83ff_256x240.png
  43. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_469bdd_256x240.png
  44. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_6da8d5_256x240.png
  45. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_cd0a0a_256x240.png
  46. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_d8e7f3_256x240.png
  47. BIN latc-platform/dashboard/js/jquery/css/redmond/images/ui-icons_f9bd01_256x240.png
  48. 0 latc-platform/dashboard/js/jquery/css/redmond/jquery-ui-1.8.custom.css
  49. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  50. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  51. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  52. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  53. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  54. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  55. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  56. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  57. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-icons_222222_256x240.png
  58. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png
  59. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-icons_454545_256x240.png
  60. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-icons_888888_256x240.png
  61. BIN latc-platform/dashboard/js/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png
  62. 0 latc-platform/dashboard/js/jquery/css/smoothness/jquery-ui-1.8.5.custom.css
  63. 0 latc-platform/dashboard/js/jquery/index.html
  64. 0 latc-platform/dashboard/js/jquery/js/jquery-1.4.2.min.js
  65. 0 latc-platform/dashboard/js/jquery/js/jquery-ui-1.8.custom.min.js
  66. 0 latc-platform/dashboard/js/jquery/js/jquery.jcarousel.min.js
  67. +3,621 −0 linksets/dbpedia_eunis_species/links.nt
  68. +30 −0 linksets/dbpedia_eunis_species/negative.nt
  69. +100 −0 linksets/dbpedia_eunis_species/positive.nt
  70. +11,411 −0 linksets/dbpedia_geospecies_binomial/links.nt
  71. +3 −0 linksets/dbpedia_geospecies_binomial/negative.nt
  72. +100 −0 linksets/dbpedia_geospecies_binomial/positive.nt
  73. +63 −0 linksets/dbpedia_geospecies_binomial/spec.xml

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,67 @@
+<?php
+// was: 248,581
+
+$count = 0;
+$username = "root";
+$password = "Traxdata1";
+$database = "cordis";
+$tabelle = "organization";
+mysql_connect(localhost,$username,$password) or die("Unable to connect to database");
+mysql_select_db($database) or die("Unable to select database");
+$sql = "SELECT name, address, city, department, postcode, region, country, organizationID, COUNT( * ) AS counter
+ FROM $tabelle
+ GROUP BY LOWER(CONVERT(name USING latin1)), LOWER(CONVERT(address USING latin1)), LOWER(CONVERT(city USING latin1)), LOWER(CONVERT(department USING latin1)), LOWER(CONVERT(postcode USING latin1)), LOWER(CONVERT(region USING latin1)), LOWER(CONVERT(country USING latin1))
+ HAVING COUNT( * ) >1";
+$result = mysql_query($sql);
+if(!$result) {
+ echo mysql_error();
+ die();
+}
+
+while($row = mysql_fetch_array($result)) {
+ $get_all = "SELECT organizationID FROM $tabelle
+ WHERE
+ LOWER(CONVERT(name USING latin1)) = LOWER('".str_replace("'","\'",$row[name])."')
+ AND LOWER(CONVERT(address USING latin1)) = LOWER('".str_replace("'","\'",$row[address])."')
+ AND LOWER(CONVERT(city USING latin1)) = LOWER('".str_replace("'","\'",$row[city])."')
+ AND LOWER(CONVERT(department USING latin1)) = LOWER('".str_replace("'","\'",$row[department])."')
+ AND LOWER(CONVERT(postcode USING latin1)) = LOWER('".str_replace("'","\'",$row[postcode])."')
+ AND LOWER(CONVERT(region USING latin1)) = LOWER('".str_replace("'","\'",$row[region])."')
+ AND LOWER(CONVERT(country USING latin1)) = LOWER('".str_replace("'","\'",$row[country])."')";
+ //echo $get_all;
+ $organizationIDs = mysql_query($get_all);
+ if (!$organizationIDs) {
+ echo mysql_error();
+ die();
+ }
+ //echo mysql_num_rows($organizationIDs);
+ $organizations = array();
+ while($row1 = mysql_fetch_array($organizationIDs)) {
+ $organizations[] = $row1[organizationID];
+ }
+ $minOrganizationId = min($organizations);
+ echo "kept: ".$minOrganizationId.", deleted: ";
+ foreach ($organizations as $organization) {
+ $update = "UPDATE person
+ SET organizationID = '".$minOrganizationId."'
+ WHERE organizationID = $organization
+ ";
+ if (!mysql_query($update)) {
+ echo mysql_error();
+ die();
+ }
+ if ($organization != $minOrganizationId) {
+ $del = "DELETE FROM $tabelle
+ WHERE organizationID = $organization";
+ if (!mysql_query($del)) {
+ echo mysql_error();
+ die();
+ }
+ $count++;
+ echo $organization." ";
+ }
+ }
+ echo "\n";
+}
+echo "Anzahl der gelöschten Reihen: $count";
+?>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
No changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
No changes.
No changes.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
No changes.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
View
No changes.
No changes.
No changes.
No changes.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,30 @@
+<http://dbpedia.org/resource/African_Wildcat> <http://www.w3.org/2002/07/owl#sameAs> <http://dbpedia.org/resource/Garfish> .
+<http://dbpedia.org/resource/Death_watch_beetle> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/300084> .
+<http://dbpedia.org/resource/Marsh_Frog> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/100635> .
+<http://dbpedia.org/resource/Greater_Flamingo> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/168064> .
+<http://dbpedia.org/resource/Agile_Frog> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/175542> .
+<http://dbpedia.org/resource/Siberian_Rubythroat> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/166115> .
+<http://dbpedia.org/resource/Ulex_europaeus> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/186112> .
+<http://dbpedia.org/resource/Adonis_Blue> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/905> .
+<http://dbpedia.org/resource/Bienkotetrix_transsylvanicus> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/110171> .
+<http://dbpedia.org/resource/Summer_Tanager> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/59125> .
+<http://dbpedia.org/resource/Sunflower> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/17215> .
+<http://dbpedia.org/resource/Bythinella_bavarica> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/168444> .
+<http://dbpedia.org/resource/Mouse_Moth> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/967> .
+<http://dbpedia.org/resource/Hobo_spider> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/150635> .
+<http://dbpedia.org/resource/Rosemary> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/179429> .
+<http://dbpedia.org/resource/Robinia_pseudoacacia> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/172045>
+<http://dbpedia.org/resource/Herina_schleteri> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/149282>
+<http://dbpedia.org/resource/Hieracium_canadense> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/156439>
+<http://dbpedia.org/resource/Ophioblennius_trinitatus> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/126710>
+<http://dbpedia.org/resource/Andricus_fecundator> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/239801>
+<http://dbpedia.org/resource/Gymnobela_phyxanor> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/59253>
+<http://dbpedia.org/resource/Nepeta_%C3%97_faassenii> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/174785>
+<http://dbpedia.org/resource/Sesleria_heufleriana> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/192946>
+<http://dbpedia.org/resource/Mangelia_payraudeauti> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/59282>
+<http://dbpedia.org/resource/Satsukimasu_salmon> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/130962>
+<http://dbpedia.org/resource/Cernuella_hydruntina> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/291042>
+<http://dbpedia.org/resource/Centaurea_sadleriana> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/155218>
+<http://dbpedia.org/resource/Hypochaeris_glabra> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/157007>
+<http://dbpedia.org/resource/Thymallus_yaluensis> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/127183>
+<http://dbpedia.org/resource/Ulidia_salonikensis> <http://www.w3.org/2002/07/owl#sameAs> <http://eunis.eea.europa.eu/species/149245>
Oops, something went wrong.

0 comments on commit 818c787

Please sign in to comment.