I cannot get linked wiki to work

63 views
Skip to first unread message

Braided Life System Admin

unread,
Mar 3, 2012, 11:08:34 AM3/3/12
to LinkedWiki
I've been having lots of trouble.

Here is the current error messages I'm getting:

[Sat Mar 03 09:54:28 2012] [error] [client 66.249.71.179] PHP Fatal
error: Class 'SMW_LinkedWikiStore' not found in /var/www/bb/w/
extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
279

[Sat Mar 03 09:58:47 2012] [error] [client 75.138.238.169] PHP Fatal
error: Class 'SMW_LinkedWikiStore' not found in /var/www/bb/w/
extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
279, referer: http://.....

[Sat Mar 03 09:59:29 2012] [error] [client 66.249.71.226] PHP Fatal
error: Class 'SMW_LinkedWikiStore' not found in /var/www/bb/w/
extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
279

[Sat Mar 03 10:04:29 2012] [error] [client 66.249.71.226] PHP Fatal
error: Class 'SMW_LinkedWikiStore' not found in /var/www/bb/w/
extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php on line
279

Karima

unread,
Mar 3, 2012, 11:11:55 AM3/3/12
to LinkedWiki
Hi

You have insert this line in your localsettings.php ?

require_once( "{$IP}/extensions/LinkedWiki/LinkedWiki.php" );

Karima

On 3 mar, 17:08, Braided Life System Admin <ad...@braidedlife.org>
wrote:

BL Administrator

unread,
Mar 3, 2012, 11:15:29 AM3/3/12
to linke...@googlegroups.com
Hi, Thanks for the quick reply!

This is all the lines I have that relate to 4store or linkedwiki:

### LinkedWiki ###

# require_once(  $IP."/extensions/LinkedWiki/lib/4store/SparqlTools.php");
require_once( "{$IP}/extensions/LinkedWiki/LinkedWiki.php" );
$smwgDefaultStore = "SMW_LinkedWikiStore";

//put the address of your 4store endpoint or SPARQL 1.1-compatible endpoint
//WARNING! this address has to be accessible only by the wiki!
$wgLinkedWikiEndPoint = "http://localhost:8080/sparql";
//put the graph name where the data of your wiki will be recorded
$wgLinkedWikiGraphWiki = "http://localhost:8080/";
//put the address of your endpoint where the user can perform an Http
Get request without the right to Write in your endpoint.
$wgLinkedWikiLocalEndPoint = "http://localhost:8080/";

### / LinkedWiki ###
$smwgSparqlQueryEndpoint = 'http://localhost:8080/sparql/';  #
location of query service
$smwgSparqlUpdateEndpoint = 'http://localhost:8080/update/'; #
location of update service
$smwgSparqlDataEndpoint = 'http://localhost:8080/data/';     #
optional location of SPARQL over HTTP service

$smwgSparqlDatabase = 'SMWSparqlDatabase4Store';

Karima

unread,
Mar 3, 2012, 11:22:24 AM3/3/12
to LinkedWiki
Can you give me the version of Linkedwiki, SMW and Mediawiki ?
thanks
Karima

BL Administrator

unread,
Mar 3, 2012, 11:31:18 AM3/3/12
to linke...@googlegroups.com
MW: 1.18.1
SMW: 1.7.0.2
Linkedwiki: 2.0 Alpha 1

I was getting the same errors with the older version of linkedwiki.

Karima

unread,
Mar 3, 2012, 11:39:03 AM3/3/12
to LinkedWiki
OK
the version 2 of linkedwiki have only one line in the localsettings
(you wrote the config of the version 1) :
require_once( "{$IP}/extensions/LinkedWiki/LinkedWiki.php" );

And in your wiki, you will write :
{{#sparql:select * where { ?x ?y ?z . } LIMIT 5 |endpoint=http://
localhost:8080/sparql/}}

On 3 mar, 17:15, BL Administrator <ad...@braidedlife.org> wrote:

BL Administrator

unread,
Mar 3, 2012, 11:45:53 AM3/3/12
to linke...@googlegroups.com
Here is the error I get now:

PHP Fatal error: Call to undefined function curl_init() in
/var/www/bb/w/extensions/LinkedWiki/lib/sparql/Curl.php on line 36,
referer: http://...

Karima

unread,
Mar 3, 2012, 11:50:22 AM3/3/12
to LinkedWiki
Probably you need to install the lib php5-curl in your server.

Example with ubuntu & fedora :
apt-get install php5-curl
or
yum install php5-curl

BL Administrator

unread,
Mar 3, 2012, 12:02:13 PM3/3/12
to linke...@googlegroups.com
OK, php5-curl is now installed, but I'm still getting that same last error

Karima

unread,
Mar 3, 2012, 12:08:50 PM3/3/12
to LinkedWiki
and restart the service PHP

BL Administrator

unread,
Mar 3, 2012, 12:14:48 PM3/3/12
to linke...@googlegroups.com
I don't have any php service and php is not in init.d I only restarted apache

Karima

unread,
Mar 3, 2012, 12:19:52 PM3/3/12
to LinkedWiki
What is the OS of your server and the version of curl ?

Karima

unread,
Mar 3, 2012, 12:21:37 PM3/3/12
to LinkedWiki
restart service httpd (or reboot directly your server)

On 3 mar, 18:14, BL Administrator <ad...@braidedlife.org> wrote:

BL Administrator

unread,
Mar 3, 2012, 12:36:31 PM3/3/12
to linke...@googlegroups.com
Debian testing and curl version: 7.24.0

Karima

unread,
Mar 3, 2012, 12:45:12 PM3/3/12
to LinkedWiki
You see curl ?
in a page with :
<?php phpinfo(); ?>

BL Administrator

unread,
Mar 3, 2012, 12:48:14 PM3/3/12
to linke...@googlegroups.com
Yes, that's how I got the version number.

BL Administrator

unread,
Mar 3, 2012, 12:55:16 PM3/3/12
to linke...@googlegroups.com
OK, I was able to save text to the wiki, it looks like curl is working now.

Here's the current error I'm getting when I put that line you gave me
earlier into a test page in wikimedia:

Error query : select * where { ?x ?y ?z . } LIMIT 5\nError endpoint:
http://localhost:8080/sparql/\nError http_response_code: 0\nError
message: \n, referer: http://.....


and this is what shows up in the mediawiki page:

Error #sparql :Error query : select * where { ?x ?y ?z . } LIMIT 5
Error endpoint: http://localhost:8080/sparql/ Error
http_response_code: 0 Error message:


On Sat, Mar 3, 2012 at 11:45 AM, Karima <karima...@gmail.com> wrote:

Karima

unread,
Mar 3, 2012, 1:04:07 PM3/3/12
to LinkedWiki
response code of your 4store is 0. So LinkedWiki threw an error.

test without your wiki your server with this url :
http://localhost:8080/sparql/?query=select * where { ?x ?y ?z . }
LIMIT 5

BL Administrator

unread,
Mar 3, 2012, 1:19:23 PM3/3/12
to linke...@googlegroups.com
Wow, Thank you for your help.

Yesterday I have restarted the 4store sevice, but in the restart it
does not specify the triplestore to start. So i ran a 4s-backend
command with the proper triplestore.

I also had to remove the endpoint in the command you gave me. and I
now see data in a table, I'm not sure what that data is, but there's
data :)

Karima

unread,
Mar 3, 2012, 1:28:59 PM3/3/12
to LinkedWiki
Great !

The version 2 is very basic. It read only endpoint.
I have not test the new version of SMW with SMWSparqlDatabase4Store.
If you have a problem you can test the version 1 of linkedwiki but it
will be with the precedent version of SMW.

When your endpoint will work, don't forget to share your good SPARQL
Query in the Wiki sparql.pro ;)
For example :
http://en.sparql.pro/wiki/Episodes_of_Doctor_Who

Bye
Karima

On 3 mar, 19:19, BL Administrator <ad...@braidedlife.org> wrote:
> Wow, Thank you for your help.
>
> Yesterday I have restarted the 4store sevice, but in the restart it
> does not specify the triplestore to start. So i ran a 4s-backend
> command with the proper triplestore.
>
> I also had to remove the endpoint in the command you gave me. and I
> now see data in a table, I'm not sure what that data is, but there's
> data :)
>
>
>
>
>
>
>
> On Sat, Mar 3, 2012 at 12:04 PM, Karima <karima.ra...@gmail.com> wrote:
> > response code of your 4store is 0. So LinkedWiki threw an error.
>
> > test without your wiki your server with this url :
> >http://localhost:8080/sparql/?query=select* where { ?x ?y ?z . }

BL Administrator

unread,
Mar 3, 2012, 2:24:02 PM3/3/12
to linke...@googlegroups.com
What is the best way to get data into a 4store triplestore through
Mediawiki in general?

Karima

unread,
Mar 3, 2012, 2:44:50 PM3/3/12
to LinkedWiki
I don't know. I want develop my little version but I have no the time
(the money) to do that.
I had the time only to write the doc SPARQL in french.

SMW + SMWSparqlDatabase4Store don't work ? else ... linkedwiki version
1 (same version of sparql.pro) and wait the next version of linkedwiki
(maybe sept 2012).
> >> >http://localhost:8080/sparql/?query=select*where { ?x ?y ?z . }
Reply all
Reply to author
Forward
0 new messages