public function EasyRdf_Graph::newBNode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php \EasyRdf_Graph::newBNode()
Create a new blank node in the graph and return it.
If you provide an RDF type and that type is registered with the EasyRdf_TypeMapper, then the resource will be an instance of the class registered.
Parameters
mixed $types RDF type of a new blank node (e.g. foaf:Person):
Return value
object EasyRdf_Resource The new blank node
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Graph.php, line 193
Class
- EasyRdf_Graph
- Container for collection of EasyRdf_Resources.
Code
public function newBNode($types = array()) {
return $this
->resource($this
->newBNodeId(), $types);
}