本文整理汇总了PHP中MemModel::setBaseURI方法的典型用法代码示例。如果您正苦于以下问题:PHP MemModel::setBaseURI方法的具体用法?PHP MemModel::setBaseURI怎么用?PHP MemModel::setBaseURI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MemModel
的用法示例。
在下文中一共展示了MemModel::setBaseURI方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MemModel
function _generateRDF()
{
$model = new MemModel();
$model->setBaseURI($this->doclink);
$proc = new xsltprocessor();
include_once RDFAPI_INCLUDE_DIR . PACKAGE_SYNTAX_RDF;
$pars = new RdfParser();
foreach ($this->stylelink as $key => $value) {
$xsl = new DomDocument();
$xsl->load($value);
$proc->importStyleSheet($xsl);
$model->addModel($pars->generateModel($proc->transformToXML($this->domdoc), $this->doclink));
}
return $model;
}
示例2: getBaseMemModel
/**
* Create a MemModel containing only the base triples
* (without inferred statements) of the current InfModelF.
*
* @return object MemModel
* @access public
*/
function getBaseMemModel()
{
$return = new MemModel();
$return->setBaseURI($this->baseURI);
foreach ($this->triples as $key => $statement) {
if (!in_array($key, $this->infPos)) {
$return->add($statement);
}
}
$retun->addParsedNamespaces($this->getParsedNamespaces());
return $return;
}
示例3: MemModel
/**
* Create a MemModel containing only the base triples (without inferred
* statements) of the current InfModelB.
*
* @return object MemModel
* @access public
*/
function &getBaseMemModel()
{
$return = new MemModel();
$return->setBaseURI($this->baseURI);
foreach ($this->triples as $statement) {
$return->add($statement);
}
$retun->addParsedNamespaces($this->getParsedNamespaces());
return $return;
}
示例4: MemModel
function _generateModelLiteral()
{
$model = new MemModel();
$model->setBaseURI('http://www.example.org');
$sub = new Resource('http://www.example.org/subject1');
$pred = new Resource('http://www.example.org/predicate1');
$obj = new Literal('http://www.example.org/object1');
$obj->setDatatype('test');
$obj->setLanguage('DE');
$model->add(new Statement($sub, $pred, $obj));
return $model;
}