http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60733

Revision: 60733
Author:   mkroetzsch
Date:     2010-01-06 14:46:37 +0000 (Wed, 06 Jan 2010)

Log Message:
-----------
remove code that is specific to old n-aries; update known type ids

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php

Modified: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php 
2010-01-06 14:28:01 UTC (rev 60732)
+++ trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php 
2010-01-06 14:46:37 UTC (rev 60733)
@@ -219,17 +219,19 @@
        /**
         * Determine what kind of OWL property some SMW property should be 
exported as.
         * The input is an SMWTypesValue object, a typeid string, or empty (use 
default)
+        * @todo An improved mechanism for selecting property types here is 
needed.
         */
        static public function getOWLPropertyType($type = '') {
-               /// TODO: improved mechanism for selecting property types is 
needed.
                if ($type instanceof SMWTypesValue) {
-                       $type = ($type->isUnary())?$type->getDBkey():'__nry';
+                       $type = $type->getDBkey();
                } elseif ($type == false) {
                        $type = '';
                } // else keep $type
                switch ($type) {
                        case '_anu': return 'AnnotationProperty';
-                       case '': case '_wpg': case '_uri': case '_ema': case 
'__nry':
+                       case '': case '_wpg': case '_wpp': case '_wpc': case 
'_wpf':
+                       case '_uri': case '_ema': case '_tel': case '_lst': 
case '__typ':
+                       case '__red': case '__spf': case '__spu':
                                return 'ObjectProperty';
                        default: return 'DatatypeProperty';
                }



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to