Documentation

Restriction extends Entity
in package

Class checking ontology restrictions consistency.

Tags
author

zozlak

Table of Contents

Properties

$res  : DatasetNodeInterface
$schema  : Schema
$id  : NamedNodeInterface

Methods

__construct()  : mixed
check()  : bool|null
Checks if a given restriction is consistent with the rest of the ontology
getId()  : NamedNodeInterface
getObject()  : TermInterface|null
Helper for getting an object value for a property passed as a string.
doesInherit()  : bool
Checks if $what inherits from $from

Properties

$res

protected DatasetNodeInterface $res

Methods

__construct()

public __construct(DatasetNodeInterface $res, object $schema) : mixed
Parameters
$res : DatasetNodeInterface
$schema : object

check()

Checks if a given restriction is consistent with the rest of the ontology

public check(bool $verbose) : bool|null
Parameters
$verbose : bool
Return values
bool|null

getId()

public getId() : NamedNodeInterface
Return values
NamedNodeInterface

getObject()

Helper for getting an object value for a property passed as a string.

public getObject(string $property) : TermInterface|null
Parameters
$property : string
Return values
TermInterface|null

doesInherit()

Checks if $what inherits from $from

private doesInherit(TermInterface $what, TermInterface $from) : bool
Parameters
$what : TermInterface
$from : TermInterface
Return values
bool

        
On this page

Search results