Module pschema_rs::utils::examples

source ·
Expand description

pub mod examples; is creating a public module named examples. This module contains scenarios for us to play with schemas a Knowledge graphs.

Enums

  • The pub enum Value block defines an enumeration of values that correspond to Wikidata IDs for various entities and properties. Each value is associated with a specific Wikidata ID using the id() method defined in the same block. These values are used in other functions to create DataFrames and Shapes that reference these Wikidata IDs.

Functions

  • The function returns a complex schema for a shape that includes constraints on instance types, references to other shapes, and a literal data type.
  • This function returns a ShapeComposite representing an optional schema for a human with an optional award received.
  • This function creates a graph frame representing a paper graph with nodes and edges.
  • This Rust function creates a composite shape for a paper schema with triple constraints and a shape literal.
  • 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.
  • This function creates a simple schema for a triple constraint in Rust programming language.