class SchemaValidator

The schema validator enables the validation of data against JSON schemas in the CloudObjects RDF format.

Methods

__construct(ObjectRetriever $objectRetriever)

No description

validateAgainstNode(mixed $data, Node $node)

Validate data against an element specification in an RDF node.

validateAgainstCOID($data, IRI $coid)

Validate data against a specification stored in CloudObjects.

Details

at line 26
__construct(ObjectRetriever $objectRetriever)

Parameters

ObjectRetriever $objectRetriever An initialized and authenticated object retriever.

at line 41
validateAgainstNode(mixed $data, Node $node)

Validate data against an element specification in an RDF node.

Parameters

mixed $data The data to validate.
Node $node The specification to validate against.

at line 73
validateAgainstCOID($data, IRI $coid)

Validate data against a specification stored in CloudObjects.

Parameters

$data
IRI $coid