Function pschema_rs::utils::examples::reference_schema
source · pub fn reference_schema() -> ShapeExpand description
This function returns a reference schema for an employer and an award received, with a constraint that the award must be an instance of a science award.
Returns:
a Shape object that represents a reference schema. The schema includes a ShapeReference with an ID of 1, which references the Employer shape. The Employer shape is then nested within another ShapeReference with an ID of 2, which references the AwardReceived shape. The AwardReceived shape is then constrained to instances of the ScienceAward shape using a TripleConstraint with an ID of 3