LinkedWiki

From Biowikifarm Metawiki
Jump to: navigation, search

Issues

  1. make Linked wiki use rdfs reasoning with Allegrograph
    -add into array "infer" => "rdfs++" in queryRead in SPARQL/Endpoint.php
  2. wsparql must be in xxx=xxx format with no spaces, otherwise compains
    e.g. endpoint=http:dbpedia.org
  3. LinkedWiki does not support ASK queries, can be replaced by
    SELECT (COUNT(*) AS ?count)
  4. Linkedwiki has problem with maintainances, best so set a flag DO_MAINTENANCE and make Linkedwiki ignore certain parts.
if(!defined('DO_MAINTENANCE')){
          $subject = $wgRequest->getRequestURL();
                $pattern = '/\?.*(title=[^&]*).*$/';
                if(preg_match($pattern, $subject) == 1){
                  $url = preg_replace($pattern, "?\${1}&action=purge",$subject) ;
               }
          else{
                        $url = $subject . "?action=purge";
          }
        }