Documentation

QuadInterface extends TermInterface, QuadCompareInterface

Extends Term because of RDF*

Remarks:

  • getValue() should throw an error
  • null return types in getSubject(), getPredicate() and getObject() make it possible for QuadTemplate to extend this interface
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
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

        
On this page

Search results