Documentation

Quad
in package

A quad

Tags
author

Markus Lanthaler mail@markus-lanthaler.com

Table of Contents

Properties

$graph  : IRI
The graph
$object  : Value|IRI
The object
$property  : IRI
The property or predicate
$subject  : IRI
The subject

Methods

__construct()  : mixed
Constructor
getGraph()  : IRI
Get the graph
getObject()  : IRI|Value
Get the object
getProperty()  : IRI
Get the property
getSubject()  : IRI
Get the subject
setGraph()  : mixed
Set the graph
setObject()  : mixed
Set the object
setProperty()  : mixed
Set the property
setSubject()  : mixed
Set the subject

Properties

$graph

The graph

private IRI $graph

$property

The property or predicate

private IRI $property

$subject

The subject

private IRI $subject

Methods

__construct()

Constructor

public __construct(IRI $subject, IRI $property, Value|IRI $object[, null|IRI $graph = null ]) : mixed
Parameters
$subject : IRI

The subject.

$property : IRI

The property.

$object : Value|IRI

The object.

$graph : null|IRI = null

The graph.

Tags
throws
InvalidArgumentException

If the object parameter has a wrong type

getGraph()

Get the graph

public getGraph() : IRI
Return values
IRI

The graph

getObject()

Get the object

public getObject() : IRI|Value
Return values
IRI|Value

The object

getProperty()

Get the property

public getProperty() : IRI
Return values
IRI

The property

getSubject()

Get the subject

public getSubject() : IRI
Return values
IRI

The subject

setGraph()

Set the graph

public setGraph([null|IRI $graph = null ]) : mixed
Parameters
$graph : null|IRI = null

The graph

setObject()

Set the object

public setObject(IRI|Value $object) : mixed
Parameters
$object : IRI|Value

The object

Tags
throws
InvalidArgumentException

If object is of wrong type.

setProperty()

Set the property

public setProperty(IRI $property) : mixed
Parameters
$property : IRI

The property

setSubject()

Set the subject

public setSubject(IRI $subject) : mixed
Parameters
$subject : IRI

The subject


        
On this page

Search results