diff -r strata_ref/ /var/www/html/doku/lib/plugins/strata/ diff -r strata_ref/action.php /var/www/html/doku/lib/plugins/strata/action.php 142c142 < $triples->addTriple($id, $util->getTitleKey(), $title, $id); --- > $triples->addTriple($id, $util->getTitleKey(), $title, $id,getNS($id)); diff -r strata_ref/conf/default.php /var/www/html/doku/lib/plugins/strata/conf/default.php 7a8 > $conf['scoped'] = 0; diff -r strata_ref/conf/metadata.php /var/www/html/doku/lib/plugins/strata/conf/metadata.php 7a8 > $meta['scoped'] = array('onoff'); diff -r strata_ref/helper/triples.php /var/www/html/doku/lib/plugins/strata/helper/triples.php 149c149 < function fetchTriples($subject=null, $predicate=null, $object=null, $graph=null) { --- > function fetchTriples($subject=null, $predicate=null, $object=null, $graph=null, $scope=null) { 152c152 < foreach(array('subject','predicate','object','graph') as $param) { --- > foreach(array('subject','predicate','object','graph','scope') as $param) { 187,188c187,188 < function addTriple($subject, $predicate, $object, $graph) { < return $this->addTriples(array(array('subject'=>$subject, 'predicate'=>$predicate, 'object'=>$object)), $graph); --- > function addTriple($subject, $predicate, $object, $graph,$scope) { > return $this->addTriples(array(array('subject'=>$subject, 'predicate'=>$predicate, 'object'=>$object)), $graph,$scope); 197c197 < function addTriples($triples, $graph) { --- > function addTriples($triples, $graph,$scope) { 199c199 < $sql = "INSERT INTO ".self::$writable."(subject, predicate, object, graph) VALUES(?, ?, ?, ?)"; --- > $sql = "INSERT INTO ".self::$writable."(subject, predicate, object, graph, scope) VALUES(?, ?, ?, ?, ?)"; 207c207 < $values = array($t['subject'],$t['predicate'],$t['object'],$graph); --- > $values = array($t['subject'],$t['predicate'],$t['object'],$graph, $scope); 410a411 > 479a481 > global $ID; 496c498 < --- > $scopeRestriction = ($this->_triples->getConf('scoped')? ' AND scope ="'.getNS($ID).'"':"" ); 498c500 < 'sql'=>'SELECT '.$this->_genPR($tp).' FROM '.helper_plugin_strata_triples::$readable.' WHERE '.$this->_genCond($tp), --- > 'sql'=>'SELECT '.$this->_genPR($tp).' FROM '.helper_plugin_strata_triples::$readable.' WHERE '.$this->_genCond($tp).$scopeRestriction, diff -r strata_ref/lang/en/settings.php /var/www/html/doku/lib/plugins/strata/lang/en/settings.php 7a8 > $lang['scoped'] = 'Data scope reduced to the current namespace ?'; diff -r strata_ref/syntax/entry.php /var/www/html/doku/lib/plugins/strata/syntax/entry.php 404c404 < $this->triples->addTriples($triples, $ID); --- > $this->triples->addTriples($triples, $ID, getNS($ID)); Only in /var/www/html/doku/lib/plugins/strata/syntax: risktable.php Only in /var/www/html/doku/lib/plugins/strata/types: enum.php