Skip to content

1.14.0

Compare
Choose a tag to compare
@k00ni k00ni released this 09 Apr 13:46
· 12 commits to master since this release
5862682

Extended Graph::label() and Resource::label() to accept custom label property list

Instead of relying solely on the predefined list of label properties, you can also use a custom list (with shortened URIs) from now on:

$res1 = new Resource('http://foo', new Graph());
$res1->addLiteral('http://xmlns.com/foaf/0.1/name', 'hello world');
echo $res1->label(null, ['foaf:name']);
// outputs: hello world

Do the same for Graph::label() accordingly.

Full Changelog: 1.13.1...1.14.0