Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -55,9 +55,6 @@ |
56 | 56 | $result = $subject->getExportData(); |
57 | 57 | |
58 | 58 | // first set some general parameters for export |
59 | | - global $smwgOWLFullExport; // export like individual (even if Category/Property) |
60 | | - $indexp = ( ( ( $subject->getNamespace() != SMW_NS_PROPERTY ) && |
61 | | - ( $subject->getNamespace() != NS_CATEGORY ) ) || $smwgOWLFullExport ); |
62 | 59 | $category_pe = null; |
63 | 60 | $subprop_pe = null; |
64 | 61 | switch ( $subject->getNamespace() ) { |
— | — | @@ -68,9 +65,7 @@ |
69 | 66 | $label = $subject->getText(); |
70 | 67 | break; |
71 | 68 | case SMW_NS_PROPERTY: |
72 | | - if ( $indexp ) { |
73 | | - $category_pe = SMWExporter::getSpecialElement( 'rdfs', 'subClassOf' ); |
74 | | - } |
| 69 | + $category_pe = SMWExporter::getSpecialElement( 'rdf', 'type' ); |
75 | 70 | $subprop_pe = SMWExporter::getSpecialElement( 'rdfs', 'subPropertyOf' ); |
76 | 71 | $equality_pe = SMWExporter::getSpecialElement( 'owl', 'equivalentProperty' ); |
77 | 72 | $types = $semdata->getPropertyValues( SMWPropertyValue::makeProperty( '_TYPE' ) ); |
— | — | @@ -97,6 +92,8 @@ |
98 | 93 | $ed = new SMWExpData( new SMWExpResource( SMWExporter::$m_exporturl . '/' . $subj_title->getPrefixedURL() ) ); |
99 | 94 | $result->addPropertyObjectValue( SMWExporter::getSpecialElement( 'rdfs', 'isDefinedBy' ), $ed ); |
100 | 95 | $result->addPropertyObjectValue( SMWExporter::getSpecialElement( 'rdf', 'type' ), new SMWExpData( $maintype_pe ) ); |
| 96 | + $ed = new SMWExpData( new SMWExpLiteral( $subject->getNamespace(), null, 'http://www.w3.org/2001/XMLSchema#integer' ) ); |
| 97 | + $result->addPropertyObjectValue( SMWExporter::getSpecialElement( 'swivt', 'wikiNamespace' ), $ed ); |
101 | 98 | if ( $modifier != '' ) { // make variant and possibly add meta data on base properties |
102 | 99 | if ( $subject->getNamespace() == SMW_NS_PROPERTY ) { |
103 | 100 | $ed = new SMWExpData( new SMWExpLiteral( $modifier, null, 'http://www.w3.org/2001/XMLSchema#string' ) ); |
— | — | @@ -109,7 +106,6 @@ |
110 | 107 | // export properties based on stored data |
111 | 108 | foreach ( $semdata->getProperties() as $key => $property ) { |
112 | 109 | if ( $property->isUserDefined() ) { |
113 | | - if ( !$indexp ) continue; // no properties for schema elements |
114 | 110 | $pe = SMWExporter::getResourceElement( $property ); |
115 | 111 | foreach ( $semdata->getPropertyValues( $property ) as $dv ) { |
116 | 112 | $ed = $dv->getExportData(); |
— | — | @@ -134,6 +130,9 @@ |
135 | 131 | case '_SUBP': |
136 | 132 | $pe = $subprop_pe; |
137 | 133 | break; |
| 134 | + case '_MDAT': |
| 135 | + $pe = SMWExporter::getSpecialElement( 'swivt', 'wikiPageModificationDate' ); |
| 136 | + break; |
138 | 137 | case '_REDI': /// TODO: currently no check for avoiding OWL DL illegal redirects is done |
139 | 138 | if ( $subject->getNamespace() == SMW_NS_PROPERTY ) { |
140 | 139 | $pe = null; // checking the typing here is too cumbersome, smart stores will smush the properties anyway, and the others will not handle them equivalently |