Restriction
        
        extends Entity
    
    
            
            in package
            
        
    
    
    
Class checking ontology restrictions consistency.
Tags
Table of Contents
Properties
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
    
    
    
    
$schema
    protected
        Schema
    $schema
    
    
    
    
$id
    private
        NamedNodeInterface
    $id
    
    
    
    
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|nullgetId()
    public
                    getId() : NamedNodeInterface
    Return values
NamedNodeInterfacegetObject()
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|nulldoesInherit()
Checks if $what inherits from $from
    private
                    doesInherit(TermInterface $what, TermInterface $from) : bool
    Parameters
- $what : TermInterface
- $from : TermInterface