Documentation

Quad
in package
implements QuadInterface

Description of Triple

Tags
author

zozlak

Table of Contents

Interfaces

QuadInterface
Description of RdfTerm

Properties

$graph  : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
$object  : TermInterface
$predicate  : NamedNodeInterface
$subject  : TermInterface

Methods

__construct()  : mixed
__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()  : string
Should always throw the \BadMethodCallException
withGraph()  : QuadInterface
withObject()  : QuadInterface
withPredicate()  : QuadInterface
withSubject()  : QuadInterface

Properties

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() : string
Return values
string

        
On this page

Search results