Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php |
— | — | @@ -150,11 +150,11 @@ |
151 | 151 | $row = $res->getNext(); // get initial row (i.e. array of SMWResultArray) |
152 | 152 | |
153 | 153 | while ( $row !== false ) { |
154 | | - $subject = $row[0]->getResultSubject(); // get Subject of the Result |
| 154 | + /* SMWDataItem */ $subject = $row[0]->getResultSubject(); // get Subject of the Result |
155 | 155 | // creates a new node if $val has type wikipage |
156 | | - if ( $subject->getTypeID() == '_wpg' ) { |
157 | | - $val = $subject->getShortWikiText(); |
158 | | - $node = $this->m_process->makeNode( $val, $val ); |
| 156 | + if ( $subject->getDIType() == SMWDataItem::TYPE_WIKIPAGE ) { |
| 157 | + /* SMWDataValue */ $dataValue = SMWDataValueFactory::newDataItemValue( $subject, SMWDIProperty::getDataItemClassNameForId( $subject->getDIType() ) ); |
| 158 | + $node = $this->m_process->makeNode( $dataValue->getShortWikiText(), $dataValue->getShortWikiText() ); |
159 | 159 | } |
160 | 160 | |
161 | 161 | // |