Documentation

Property extends Entity
in package

Description of Property

Tags
author

zozlak

Table of Contents

Properties

$res  : DatasetNodeInterface
$schema  : Schema
$literalTypes  : array<string|int, string>

Methods

__construct()  : mixed
check()  : bool|null
Checks if a given property definition is valid
getId()  : NamedNodeInterface
getObject()  : TermInterface|null
Helper for getting an object value for a property passed as a string.

Properties

$res

protected DatasetNodeInterface $res

$literalTypes

private static array<string|int, string> $literalTypes = [\zozlak\RdfConstants::XSD_BOOLEAN, \zozlak\RdfConstants::XSD_DATE, \zozlak\RdfConstants::XSD_TIME, \zozlak\RdfConstants::XSD_DATE_TIME, \zozlak\RdfConstants::XSD_DURATION, \zozlak\RdfConstants::XSD_DECIMAL, \zozlak\RdfConstants::XSD_INTEGER, \zozlak\RdfConstants::XSD_NEGATIVE_INTEGER, \zozlak\RdfConstants::XSD_POSITIVE_INTEGER, \zozlak\RdfConstants::XSD_NON_NEGATIVE_INTEGER, \zozlak\RdfConstants::XSD_NON_POSITIVE_INTEGER, \zozlak\RdfConstants::XSD_FLOAT, \zozlak\RdfConstants::XSD_DOUBLE, \zozlak\RdfConstants::XSD_STRING, \zozlak\RdfConstants::XSD_ANY_URI, \zozlak\RdfConstants::RDF_LANG_STRING]

Methods

__construct()

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

check()

Checks if a given property definition is valid

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

        
On this page

Search results