Documentation

QuadInterface extends TermInterface, QuadCompareInterface

Description of RdfTerm

Tags
author

zozlak

Table of Contents

Methods

__toString()  : string
Should return:
equals()  : bool
getGraph()  : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
Null is not allowed to deal with the ambiguity between DefaultGraph and null which mean the same (although it should be noted that all quads in NamedNode/BlankNode graphs also belong to the DefaultGraph).
getObject()  : TermInterface
getPredicate()  : NamedNodeInterface
getSubject()  : TermInterface
getValue()  : mixed
Should always throw the \BadMethodCallException
withGraph()  : QuadInterface
withObject()  : QuadInterface
withPredicate()  : QuadInterface
withSubject()  : QuadInterface

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

getValue()

Should always throw the \BadMethodCallException

public getValue() : mixed
Tags
throws
BadMethodCallException

        
On this page

Search results