Documentation

QuadCompareInterface extends TermCompareInterface, Stringable

Interface allowing to compare Quads.

Extracted as a separated interface because it's used extensively by the Dataset class methods. One could argue the TermCompare interface would also do the job but for the Dataset it's worth to distinguish beetwen lack of match and match which makes no sense like comparing with anything which is not Quad. The QuadCompare interface introduces such a distinction.

Tags
author

zozlak

Table of Contents

Methods

__toString()  : string
Should return:
equals()  : bool
getGraph()  : TermCompareInterface|null
getObject()  : TermCompareInterface|null
getPredicate()  : TermCompareInterface|null
getSubject()  : TermCompareInterface|null

Methods

__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

        
On this page

Search results