BlankNode
in package
implements
BlankNodeInterface, SingletonTerm
Description of BlankNode
Tags
Table of Contents
Interfaces
- BlankNodeInterface
- Description of RdfTerm
- SingletonTerm
- Interface used to mark DataFactory-hashable terms
Properties
Methods
- __construct() : mixed
- __toString() : string
- Should return:
- equals() : bool
- getValue() : string
- resetCounter() : void
- Resets the counter used to assign blank node ids.
Properties
$id
private
string
$id
$n
private
static int
$n
= 0
Methods
__construct()
public
__construct([string|null $id = null ]) : mixed
Parameters
- $id : string|null = null
__toString()
Should return:
public
__toString() : string
- an URI for named nodes and blank nodes
- a value in lexical form for literals
For all other kind of terms the return value depends on the implementation
Return values
stringequals()
public
equals(TermCompareInterface $term) : bool
Parameters
- $term : TermCompareInterface
Return values
boolgetValue()
public
getValue() : string
Return values
stringresetCounter()
Resets the counter used to assign blank node ids.
public
static resetCounter() : void
Useful when predictable blank node ids are required, e.g. in tests context