本文整理汇总了PHP中MemModel::iterFind方法的典型用法代码示例。如果您正苦于以下问题:PHP MemModel::iterFind方法的具体用法?PHP MemModel::iterFind怎么用?PHP MemModel::iterFind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MemModel
的用法示例。
在下文中一共展示了MemModel::iterFind方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MemModel
/**
* Finds Statements that match a quad pattern. The argument may contain
* wildcards.
*
* @param Resource or Null
* @param Resourceor Null
* @param Resource or Null
* @param Resource or Null
* @return Iterator
*/
function &findInNamedGraphs($graph, $subject, $predicate, $object, $returnAsTriples = false)
{
if ($graph != null) {
$findGraph =& $this->getNamedGraph($graph->getLabel());
if ($findGraph == null) {
$findGraph = new MemModel();
}
return $findGraph->iterFind($subject, $predicate, $object);
}
return new IteratorFindQuadsMem($subject, $predicate, $object, $this->listNamedGraphs(), $returnAsTriples);
}
示例2: MemModel
/**
* Finds Statements that match a quad pattern. The argument may contain
* wildcards.
*
* @param Resource or Null
* @param Resourceor Null
* @param Resource or Null
* @param Resource or Null
* @return Iterator
*/
function &findInNamedGraphs($graph, $subject, $predicate, $object, $returnAsTriples = false)
{
if ($graph != null) {
$findGraph =& $this->getNamedGraph($graph->getLabel());
if ($findGraph == null) {
$findGraph = new MemModel();
}
return $findGraph->iterFind($subject, $predicate, $object);
}
require_once RDFAPI_INCLUDE_DIR . 'dataset/IteratorFindQuadsMem.php';
$m = new IteratorFindQuadsMem($subject, $predicate, $object, $this->listNamedGraphs(), $returnAsTriples);
return $m;
}