r16689 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16688‎ | r16689 | r16690 >
Date:10:43, 28 September 2006
Author:karstenuil
Status:old
Tags:
Comment:
removed keyword, referenceby, included in and contained in concepts
Modified paths:
  • /trunk/extensions/Wikidata/WP/SwissProtImport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/WP/SwissProtImport.php
@@ -113,15 +113,15 @@
114114 public $organismConceptId = 0;
115115 public $functionalDomainConceptId = 0;
116116 public $proteinComponentConceptId = 0;
117 - public $referencedByConceptId = 0;
 117+// public $referencedByConceptId = 0;
118118 public $biologicalProcessConceptId = 0;
119119 public $molecularFunctionConceptId = 0;
120120 public $cellularComponentConceptId = 0;
121 - public $keywordConceptId = 0;
 121+// public $keywordConceptId = 0;
122122 public $includesConceptId = 0;
123 - public $includedInConceptId = 0;
 123+// public $includedInConceptId = 0;
124124 public $containsConceptId = 0;
125 - public $containedInConceptId = 0;
 125+// public $containedInConceptId = 0;
126126 public $textAttributeConceptId = 0;
127127 public $enzymeCommissionNumberConceptId = 0;
128128 public $activityConceptId = 0;
@@ -158,8 +158,8 @@
159159 if ($this->proteinComponentConceptId == 0)
160160 $this->proteinComponentConceptId = $this->bootstrapDefinedMeaning("protein component", "protein component");
161161
162 - if ($this->referencedByConceptId == 0)
163 - $this->referencedByConceptId = $this->bootstrapDefinedMeaning("referenced by", "referenced by");
 162+// if ($this->referencedByConceptId == 0)
 163+// $this->referencedByConceptId = $this->bootstrapDefinedMeaning("referenced by", "referenced by");
164164
165165 if ($this->biologicalProcessConceptId == 0)
166166 $this->biologicalProcessConceptId = $this->bootstrapDefinedMeaning("biological process", "biological process");
@@ -170,20 +170,20 @@
171171 if ($this->cellularComponentConceptId == 0)
172172 $this->cellularComponentConceptId = $this->bootstrapDefinedMeaning("cellular component", "cellular component");
173173
174 - if ($this->keywordConceptId == 0)
175 - $this->keywordConceptId = $this->bootstrapDefinedMeaning("keyword", "keyword");
 174+// if ($this->keywordConceptId == 0)
 175+// $this->keywordConceptId = $this->bootstrapDefinedMeaning("keyword", "keyword");
176176
177177 if ($this->includesConceptId == 0)
178178 $this->includesConceptId = $this->bootstrapDefinedMeaning("includes", "includes");
179179
180 - if ($this->includedInConceptId == 0)
181 - $this->includedInConceptId = $this->bootstrapDefinedMeaning("included in", "included in");
 180+// if ($this->includedInConceptId == 0)
 181+// $this->includedInConceptId = $this->bootstrapDefinedMeaning("included in", "included in");
182182
183183 if ($this->containsConceptId == 0)
184184 $this->containsConceptId = $this->bootstrapDefinedMeaning("contains", "contains");
185185
186 - if ($this->containedInConceptId == 0)
187 - $this->containedInConceptId = $this->bootstrapDefinedMeaning("contained in", "contained in");
 186+// if ($this->containedInConceptId == 0)
 187+// $this->containedInConceptId = $this->bootstrapDefinedMeaning("contained in", "contained in");
188188
189189 if ($this->enzymeCommissionNumberConceptId == 0)
190190 $this->enzymeCommissionNumberConceptId = $this->bootstrapDefinedMeaning("enzyme commission number", "enzyme commission number");
@@ -212,7 +212,7 @@
213213
214214 // Add concepts to relation types
215215 addDefinedMeaningToCollectionIfNotPresent($this->proteinConceptId, $this->relationTypeCollectionId, "protein");
216 - addDefinedMeaningToCollectionIfNotPresent($this->referencedByConceptId, $this->relationTypeCollectionId, "referenced by");
 216+// addDefinedMeaningToCollectionIfNotPresent($this->referencedByConceptId, $this->relationTypeCollectionId, "referenced by");
217217 addDefinedMeaningToCollectionIfNotPresent($this->geneConceptId, $this->relationTypeCollectionId, "gene");
218218 addDefinedMeaningToCollectionIfNotPresent($this->organismSpecificGeneConceptId, $this->relationTypeCollectionId, "organism specific gene");
219219 addDefinedMeaningToCollectionIfNotPresent($this->organismConceptId, $this->relationTypeCollectionId, "organism");
@@ -220,11 +220,11 @@
221221 addDefinedMeaningToCollectionIfNotPresent($this->biologicalProcessConceptId, $this->relationTypeCollectionId, "biological process");
222222 addDefinedMeaningToCollectionIfNotPresent($this->molecularFunctionConceptId, $this->relationTypeCollectionId, "molecular function");
223223 addDefinedMeaningToCollectionIfNotPresent($this->cellularComponentConceptId, $this->relationTypeCollectionId, "cellular component");
224 - addDefinedMeaningToCollectionIfNotPresent($this->keywordConceptId, $this->relationTypeCollectionId, "keyword");
 224+// addDefinedMeaningToCollectionIfNotPresent($this->keywordConceptId, $this->relationTypeCollectionId, "keyword");
225225 addDefinedMeaningToCollectionIfNotPresent($this->includesConceptId, $this->relationTypeCollectionId, "includes");
226 - addDefinedMeaningToCollectionIfNotPresent($this->includedInConceptId, $this->relationTypeCollectionId, "included in");
 226+// addDefinedMeaningToCollectionIfNotPresent($this->includedInConceptId, $this->relationTypeCollectionId, "included in");
227227 addDefinedMeaningToCollectionIfNotPresent($this->containsConceptId, $this->relationTypeCollectionId, "contains");
228 - addDefinedMeaningToCollectionIfNotPresent($this->containedInConceptId, $this->relationTypeCollectionId, "contained in");
 228+// addDefinedMeaningToCollectionIfNotPresent($this->containedInConceptId, $this->relationTypeCollectionId, "contained in");
229229 }
230230
231231 public function startElement($parser, $name, $attributes) {
@@ -473,7 +473,7 @@
474474 addSynonymOrTranslation($synonym, $this->languageId, $domainMeaningId, true);
475475
476476 addRelation($definedMeaningId, $this->includesConceptId, $domainMeaningId);
477 - addRelation($domainMeaningId, $this->includedInConceptId, $definedMeaningId);
 477+// addRelation($domainMeaningId, $this->includedInConceptId, $definedMeaningId);
478478 }
479479
480480 // Add 'contained' proteins:
@@ -484,7 +484,7 @@
485485 addSynonymOrTranslation($synonym, $this->languageId, $componentMeaningId, true);
486486
487487 addRelation($definedMeaningId, $this->containsConceptId, $componentMeaningId);
488 - addRelation($componentMeaningId, $this->containedInConceptId, $definedMeaningId);
 488+// addRelation($componentMeaningId, $this->containedInConceptId, $definedMeaningId);
489489 }
490490
491491 return $definedMeaningId;

Status & tagging log