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