Documentation

BlankNode
in package
implements BlankNodeInterface, SingletonTerm

Description of BlankNode

Tags
author

zozlak

Table of Contents

Interfaces

BlankNodeInterface
Description of RdfTerm
SingletonTerm
Interface used to mark DataFactory-hashable terms

Properties

$id  : string
$n  : int

Methods

__construct()  : mixed
__toString()  : string
Should return:
equals()  : bool
getValue()  : string
resetCounter()  : void
Resets the counter used to assign blank node ids.

Properties

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
string

getValue()

public getValue() : string
Return values
string

resetCounter()

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


        
On this page

Search results