Hi Alexander!
Could it be an option instead of reviving Sparql extension try to use
native RDF support of SMW 1.7?
Here is the manual that can help you set up RDF store on SMW:
http://semantic-mediawiki.org/wiki/Help:Using_SPARQL_and_RDF_stores
Cheers,
Yury Katkov
On Tue, May 22, 2012 at 11:49 PM, Александр Морозов <[email protected]>wrote:
> I want ot use SparqlExtension (
> http://www.mediawiki.org/wiki/Extension:SparqlExtension) in my SMW 1.7
> I have tried straight forward installation. And got some errors easily
> fixed with recomendations I'v googled.
>
> But I stuck on* /extensions/SparqlExtension/JosekiStore.php* file
> It links SMW properties to rdf and connects triplestore with SMW.
>
> Problem:
>
> Trying to import data from SMW to Joseki.
>
> And this code produces exception:
>
> 140 $newpage = SMWDataValueFactory::newTypeIDValue('_wpg');
>>
>> 141 $newpage->setValues($title->getDBkey(),
>>> $title->getNamespace(), $pageid);
>>
>> 142 $semdata = $this->getSemanticData($newpage);
>>
>> 143 $this->updateData($semdata);
>>
>>
>
> *PHP Fatal error: Call to undefined method SMWWikiPageValue::setValues()
> in /srv/www/htdocs/plasmakb/extensions/SparqlExtension/JosekiStore.php on
> line 141*
> *
> *
> Strange that I can't find this method in full class methods list in
> docs<http://semantic-mediawiki.org/doc/classSMWWikiPageValue-members.html>
> .
> *
> *
> Can anybody help me with migrating this code to SMW 1.7?
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Semediawiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel