Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_NAry.php |
— | — | @@ -165,8 +165,8 @@ |
166 | 166 | switch ($type) { |
167 | 167 | case 0: return $this->m_values[$index]->getShortWikiText($linker); |
168 | 168 | case 1: return $this->m_values[$index]->getShortHTMLText($linker); |
169 | | - case 2: return $this->m_values[$index]->getLongWikiText($linker); |
170 | | - case 3: return $this->m_values[$index]->getLongHTMLText($linker); |
| 169 | + case 2: return $this->m_values[$index]->getShortWikiText($linker); |
| 170 | + case 3: return $this->m_values[$index]->getShortHTMLText($linker); |
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
— | — | @@ -326,39 +326,6 @@ |
327 | 327 | return implode(';', $this->m_outputmodifiers); |
328 | 328 | } |
329 | 329 | |
330 | | - /** |
331 | | - * Exports this n-ary relation to an appropriate RDF-structure. |
332 | | - * The lines within the subject element. |
333 | | - * |
334 | | - * @param string $QName The element name of this datavalue |
335 | | - * @param ExportRDF $exporter the exporter calling this function |
336 | | - * @return string the lines to be exported |
337 | | - */ |
338 | | -// public function exportToRDF( $QName, ExportRDF $exporter ) { |
339 | | -// $rdf = "\t\t<$QName>\n"; |
340 | | -// $rdf.= "\t\t\t<swivt:Container>\n"; |
341 | | -// $count = 0; |
342 | | -// foreach ($this->m_values as $value) { |
343 | | -// $count++; |
344 | | -// if ($value === NULL) { |
345 | | -// continue; |
346 | | -// } |
347 | | -// if (($value->getTypeID() == '_wpg') || ($value->getTypeID() == '_uri') || ($value->getTypeID() == '_ema')) { |
348 | | -// $element = "object" . $count; |
349 | | -// $rdf .= "\t\t" . $value->exportToRDF( "swivt:$element", $exporter ); |
350 | | -// $exporter->addSchemaRef( $element, "owl:ObjectProperty" ); |
351 | | -// } else { |
352 | | -// $element = "value" . $count; |
353 | | -// $rdf .= "\t\t" . $value->exportToRDF( "swivt:$element", $exporter ); |
354 | | -// $exporter->addSchemaRef( $element, "owl:DatatypeProperty" ); |
355 | | -// } |
356 | | -// } |
357 | | -// $rdf .= "\t\t\t</swivt:Container>\n"; |
358 | | -// $exporter->addSchemaRef( "Container", "owl:Class" ); |
359 | | -// $rdf .= "\t\t</$QName>\n"; |
360 | | -// return $rdf; |
361 | | -// } |
362 | | - |
363 | 330 | public function getExportData() { |
364 | 331 | if (!$this->isValid()) return NULL; |
365 | 332 | |