Quad
in package
implements
QuadInterface
Description of Triple
Tags
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
$graph
private
NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface
$graph
$object
private
TermInterface
$object
$predicate
private
NamedNodeInterface
$predicate
$subject
private
TermInterface
$subject
Methods
__construct()
public
__construct(TermInterface $subject, NamedNodeInterface $predicate, TermInterface $object[, NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null $graph = null ]) : mixed
Parameters
- $subject : TermInterface
- $predicate : NamedNodeInterface
- $object : TermInterface
- $graph : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null = null
__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(TermCompareInterface $term) : bool
Parameters
- $term : TermCompareInterface
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()
Should always throw the \BadMethodCallException
public
getValue() : string
Return values
stringwithGraph()
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