Skip to content
Eric Prud'hommeaux edited this page Mar 23, 2015 · 3 revisions

validate() returns a ES6 Promise returning:

  • resolve(): RDF.Result
  • reject(): ...

validate(point, as, ... { async: t|f, prefixResolver }) => async ? ES6 Promise(RDF.Result) : RDF.Result !> async ? reject(RDF.StructuredError) : StructuredError Each Schema.{TripleMatcher}.validate is divided into internal functions which are either stacked in a .then chain or called sequentially, depending on .async.

Clone this wiki locally