Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | } |
75 | 75 | function getExportData() { |
76 | 76 | global $smwgNamespace; |
77 | | - return new SMWExpData( new SMWExpResource( null ) ); |
| 77 | + return new SMWExpData( new SMWExpResource( SIOExporter::getResolverURL() . $this->mSIOTitle->getPrefixedURL() ) ); |
78 | 78 | } |
79 | 79 | |
80 | 80 | function getTitle() { |
— | — | @@ -86,6 +86,16 @@ |
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
| 90 | + * Class to work around the fact that SMWExporter::$m_ent_wiki is protected. |
| 91 | + **/ |
| 92 | +class SIOExporter extends SMWExporter { |
| 93 | + |
| 94 | + static function getResolverURL() { |
| 95 | + return SMWExporter::$m_ent_wiki; |
| 96 | + } |
| 97 | +} |
| 98 | + |
| 99 | +/** |
90 | 100 | * Class for all database-related actions. |
91 | 101 | * This class exists mostly because SMWSQLStore2's functions makeSMWPageID() |
92 | 102 | * and makeSMWPropertyID(), which are needed for the DB access, are both |
— | — | @@ -169,8 +179,13 @@ |
170 | 180 | return array( $upRels2, $upAtts2, $upText2, $upCoords ); |
171 | 181 | } |
172 | 182 | |
173 | | - static function createRDF( $title, $rdfDataArray ) { |
174 | | - $pageName = $title->getText(); |
| 183 | + static function createRDF( $title, $rdfDataArray, $fullexport = true, $backlinks = false ) { |
| 184 | + // if it's not a full export, don't add internal object data |
| 185 | + if ( !$fullexport ) { |
| 186 | + return true; |
| 187 | + } |
| 188 | + |
| 189 | + $pageName = $title->getDBkey(); |
175 | 190 | $namespace = $title->getNamespace(); |
176 | 191 | |
177 | 192 | // go through all SIOs for the current page, create RDF for |