Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -219,17 +219,19 @@ |
220 | 220 | /** |
221 | 221 | * Determine what kind of OWL property some SMW property should be exported as. |
222 | 222 | * The input is an SMWTypesValue object, a typeid string, or empty (use default) |
| 223 | + * @todo An improved mechanism for selecting property types here is needed. |
223 | 224 | */ |
224 | 225 | static public function getOWLPropertyType($type = '') { |
225 | | - /// TODO: improved mechanism for selecting property types is needed. |
226 | 226 | if ($type instanceof SMWTypesValue) { |
227 | | - $type = ($type->isUnary())?$type->getDBkey():'__nry'; |
| 227 | + $type = $type->getDBkey(); |
228 | 228 | } elseif ($type == false) { |
229 | 229 | $type = ''; |
230 | 230 | } // else keep $type |
231 | 231 | switch ($type) { |
232 | 232 | case '_anu': return 'AnnotationProperty'; |
233 | | - case '': case '_wpg': case '_uri': case '_ema': case '__nry': |
| 233 | + case '': case '_wpg': case '_wpp': case '_wpc': case '_wpf': |
| 234 | + case '_uri': case '_ema': case '_tel': case '_lst': case '__typ': |
| 235 | + case '__red': case '__spf': case '__spu': |
234 | 236 | return 'ObjectProperty'; |
235 | 237 | default: return 'DatatypeProperty'; |
236 | 238 | } |