Add a resource as a property of the resource
Example: $bob->add('foaf:knows', 'http://example.com/alice');
mixed $property The property name:
mixed $resource2 The resource to be the value of the property:
integer The number of values added (1 or 0)
public function addResource($property, $resource2) {
$this
->checkHasGraph();
return $this->graph
->addResource($this->uri, $property, $resource2);
}