示例#1
0
function render_property_values($graph, $me, $property)
{
    $property = $graph->resource($property);
    foreach ($me->all($property) as $o) {
        render_thing($o);
    }
}
示例#2
0
function render_matching_values($graph, $me, $property, $onto_file)
{
    $rp = $graph->resource($property);
    foreach ($graph->resourcesMatching($rp, $me) as $r) {
        render_thing($r, $onto_file);
    }
}