LinkedWiki on a shared host

17 views
Skip to first unread message

Ana Rita

unread,
Oct 8, 2011, 10:58:17 AM10/8/11
to LinkedWiki
Hello,
I'm using SMW and SMW Halo extension to organize my PhD notes. The SMW
is in a Linux shared host. I'm on a MacOS Lion.
I would like to have advanced querying and inferencing on my wiki and
have arrived to the conclusion that I need a SPARQL server to achieve
this (correct?). I'm a novice (the PhD is in anthropology), and have
several novice questions for you, if you have the time.
My questions:
1. Can I use LinkedWiki and Halo?
2. Can I install the 4store SPARQL server locally and use it from the
wiki on the shared host?
3. Can I install 4store on a shared host (if so, would this be a
better option)?
4. All in all, what is my best option to get advanced querying on my
SMW?

I tried to use SMW+ Triple Store, but the Windows leaning instructions
and Java installation got me wary. I found your LinkedWiki, and
followed the installation instructions. I now seem to have a 4store
SPARQL server running on my machine (through the 4store.app) and this
in my LocalSettings.php:

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://192.168.1.66:8080/";
//put the graph name where the data of your wiki will be recorded
$wgLinkedWikiGraphWiki = "http://mwd.anarita.me/wiki";
//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://mwd.anarita.me/";

An the following errors:

Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message '0--
1--Could not connect to http://localhost:8080/sparql/
' in /home/anaritam/public_html/mwd/extensions/LinkedWiki/lib/4store/
SparqlTools.php:66
Stack trace:
#0 /home/anaritam/public_html/mwd/extensions/LinkedWiki/class/
SMW_LinkedWikiStore.php(87): SparqlTools::deleteTriples('http://
localhos...', 'http://mwd.anar...', 'http://localhos...', NULL)
#1 /home/anaritam/public_html/mwd/extensions/LinkedWiki/class/
SMW_LinkedWikiStore.php(75): SMW_LinkedWikiStore-
>_update(Object(SMWSemanticData))
#2 /home/anaritam/public_html/mwd/extensions/SemanticMediaWiki/
includes/SMW_ParseData.php(252): SMW_LinkedWikiStore-
>updateData(Object(SMWSemanticData))
#3 /home/anaritam/public_html/mwd/extensions/SemanticMediaWiki/
includes/SMW_ParseData.php(406):
SMWParseData::storeData(Object(ParserOutput), Object(Title), true)
#4 /home/anaritam/public_html/mwd/includes/Hooks.php(133):
SMWParseData::onLinksUpdateConstructed(Object(LinksUpdate))
#5 /home/anaritam/public_html/mwd/includes/LinksUpdate.php(72):
wfRunHooks()
#6 /home/anaritam/public_html/mwd/includes/RefreshLinksJob.php(43):
LinksUpdate->LinksUpdate(Array, Array)
#7 /home/anaritam/public_html/mwd/includes/Wiki.php(433):
RefreshLinksJob->run('LinksUpdateCons...', Array)
#8 /home/anaritam/public_html/mwd/includes/Wiki.php(379): MediaWiki-
>doJobs(Object(Title), Object(ParserOutput), false)
#9 /home/anaritam/public_html/mwd/index.php(118): MediaWiki-
>finalCleanup()
#10 {main}

and, when I reach http://localhost:8080/sparql/, I get:
500 SPARQL protocol error
This is a 4store SPARQL server v1.1.3

Thank you,
Ana Rita

Karima

unread,
Oct 9, 2011, 6:12:25 PM10/9/11
to LinkedWiki
On Oct 8, 4:58 pm, Ana Rita <arita.more...@gmail.com> wrote:
> Hello,
> I'm using SMW and SMW Halo extension to organize my PhD notes. The SMW
> is in a Linux shared host. I'm on a MacOS Lion.
> I would like to have advanced querying and inferencing on my wiki and
> have arrived to the conclusion that I need a SPARQL server to achieve
> this (correct?).

I suppose.

>I'm a novice (the PhD is in anthropology), and have
> several novice questions for you, if you have the time.
> My questions:
> 1. Can I use LinkedWiki and Halo?

I push the new version 2.0.0 Alpha 1 and with, you can install halo
and linkedwiki but for the moment the v2.0.0 cannot push the data in
your triplestore. In the next versions, I will parse myself the
properties in each page and create the administration of the
ontology.

> 2. Can I install the 4store SPARQL server locally and use it from the
> wiki on the shared host?

If your locally server is always ON, your server will be always
synchronise with the wiki.

> 3. Can I install 4store on a shared host (if so, would this be a
> better option)?

No with shared host but with a virtual server. Second solution, I host
little graph (SPARQL 1.0) free the next year.

The best solution is in function, if your data are private or not,
etc... If your data are private, you can synchronize your data
sometimes on your local server.

> 4. All in all, what is my best option to get advanced querying on my
> SMW?

You can start to build query SPARQL 1.0 in your wiki and when I will
finish the next version (sept 2012) you will can use the new query
SPARQL 1.1.

>
> I tried to use SMW+ Triple Store, but the Windows leaning instructions
> and Java installation got me wary. I found your LinkedWiki, and
> followed the installation instructions. I now seem to have a 4store
> SPARQL server running on my machine (through the 4store.app) and this
> in my LocalSettings.php:
>
> 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://192.168.1.66:8080/";
> //put the graph name where the data of your wiki will be recorded
> $wgLinkedWikiGraphWiki = "http://mwd.anarita.me/wiki";
> //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://mwd.anarita.me/";
>
> An the following errors:
>
> Unexpected non-MediaWiki exception encountered, of type "Exception"
> exception 'Exception' with message '0--
> 1--Could not connect tohttp://localhost:8080/sparql/
> ' in /home/anaritam/public_html/mwd/extensions/LinkedWiki/lib/4store/
> SparqlTools.php:66
> Stack trace:
> #0 /home/anaritam/public_html/mwd/extensions/LinkedWiki/class/
> SMW_LinkedWikiStore.php(87): SparqlTools::deleteTriples('http://
> localhos...', 'http://mwd.anar...', 'http://localhos...', NULL)
> #1 /home/anaritam/public_html/mwd/extensions/LinkedWiki/class/
> SMW_LinkedWikiStore.php(75): SMW_LinkedWikiStore->_update(Object(SMWSemanticData))
>
> #2 /home/anaritam/public_html/mwd/extensions/SemanticMediaWiki/
> includes/SMW_ParseData.php(252): SMW_LinkedWikiStore->updateData(Object(SMWSemanticData))
>
> #3 /home/anaritam/public_html/mwd/extensions/SemanticMediaWiki/
> includes/SMW_ParseData.php(406):
> SMWParseData::storeData(Object(ParserOutput), Object(Title), true)
> #4 /home/anaritam/public_html/mwd/includes/Hooks.php(133):
> SMWParseData::onLinksUpdateConstructed(Object(LinksUpdate))
> #5 /home/anaritam/public_html/mwd/includes/LinksUpdate.php(72):
> wfRunHooks()
> #6 /home/anaritam/public_html/mwd/includes/RefreshLinksJob.php(43):
> LinksUpdate->LinksUpdate(Array, Array)
> #7 /home/anaritam/public_html/mwd/includes/Wiki.php(433):
> RefreshLinksJob->run('LinksUpdateCons...', Array)
> #8 /home/anaritam/public_html/mwd/includes/Wiki.php(379): MediaWiki->doJobs(Object(Title), Object(ParserOutput), false)
>
> #9 /home/anaritam/public_html/mwd/index.php(118): MediaWiki->finalCleanup()
>
> #10 {main}
>
> and, when I reachhttp://localhost:8080/sparql/, I get:
> 500 SPARQL protocol error
> This is a 4store SPARQL server v1.1.3
>
> Thank you,
> Ana Rita

Can you copy the message after to click on the button Install of the
page Special:SMWAdmin ?
http://semantic-mediawiki.org/wiki/File:Admin_functions_for_Semantic_MediaWiki.png

Regards,
Karima

Ana Rita

unread,
Oct 10, 2011, 5:54:37 PM10/10/11
to LinkedWiki
Thank you for your reply! The message when I click the SMW admin
upgrade/install is the one pasted previously
"Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message '0--
1--Could not connect to http://localhost:8080/sparql/
..."
Thank you again,
Ana Rita
> page Special:SMWAdmin  ?http://semantic-mediawiki.org/wiki/File:Admin_functions_for_Semantic_...
>
> Regards,
> Karima

Karima Rafes

unread,
Oct 10, 2011, 10:39:04 PM10/10/11
to linke...@googlegroups.com

Now, your wiki works ? Or you are again a problem ?
Try to remove halo and see if there is again the problem.
Karima

On 10 10, 2011 11:54 PM, "Ana Rita" <arita....@gmail.com> wrote:

Thank you for your reply! The message when I click the SMW admin
upgrade/install is the one pasted previously

"Unexpected non-MediaWiki exception encountered, of type "Exception" exception 'Exception' with mess...

..."
Thank you again,
Ana Rita

On Oct 9, 11:12 pm, Karima <karima.ra...@gmail.com> wrote: > On Oct 8, 4:58 pm, Ana Rita <arita.mor...

Ana Rita

unread,
Oct 11, 2011, 8:35:26 AM10/11/11
to LinkedWiki
Hello Karima,
Yes, it does work. The SMW upgrade/install function runs correctly.
And I can use all of Halo's features. Only at the end, when it tries
to connect to the SPARQL server connected through LinkedWiki, does it
give the cited errors. But, so, if there is indeed no way now to use
both Halo (Halo's toolbar is very convenient for my work) and
LinkedWiki, I'll give up on the SPARQL server connection for now,
waiting for a better solution to come up.
Thank you again for your help,
Ana Rita

On Oct 11, 3:39 am, Karima Rafes <karima.ra...@gmail.com> wrote:
> Now, your wiki works ? Or you are again a problem ?
> Try to remove halo and see if there is again the problem.
> Karima
>
Reply all
Reply to author
Forward
0 new messages