QuadInterface
extends
TermInterface, QuadCompareInterface
in
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
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
stringequals()
public
equals(TermInterface $term) : bool
Parameters
- $term : TermInterface
Return values
boolgetGraph()
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).
public
getGraph() : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
Return values
NamedNodeInterface|BlankNodeInterface|DefaultGraphInterfacegetObject()
public
getObject() : TermInterface
Return values
TermInterfacegetPredicate()
public
getPredicate() : NamedNodeInterface
Return values
NamedNodeInterfacegetSubject()
public
getSubject() : TermInterface
Return values
TermInterfacegetValue()
public
getValue() : mixed
withGraph()
public
withGraph(NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null $graph) : QuadInterface
Parameters
- $graph : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null
Return values
QuadInterfacewithObject()
public
withObject(TermInterface $object) : QuadInterface
Parameters
- $object : TermInterface
Return values
QuadInterfacewithPredicate()
public
withPredicate(NamedNodeInterface $predicate) : QuadInterface
Parameters
- $predicate : NamedNodeInterface
Return values
QuadInterfacewithSubject()
public
withSubject(TermInterface $subject) : QuadInterface
Parameters
- $subject : TermInterface