GraphSchema Class

Definition

A GraphSchema is a simple container of a set of GraphCategory and GraphProperty objects and the GraphMetadata associated with them.

public ref class GraphSchema
public class GraphSchema
type GraphSchema = class
Public Class GraphSchema
Inheritance
GraphSchema

Constructors

GraphSchema(Graph, String)

Construct new GraphSchema object

GraphSchema(String)

Construct new global GraphSchema object with no owner. These are usually static instances.

Properties

Categories

All the GraphCategory objects that are registered with this schema.

IsDocumentSchema

Whether this is the document schema associated with a Graph instance for holding deserialized categories and properties that were not defined anywhere else.

Name

The programatic name of this schema.

Owner

If this is a Document Schema then this owner points to the Graph that owns this schema.

Properties

All the GraphProperty objects that are registered with this schema.

Schemas

Return a list of the child schemas contained in this schema (not including grand children).

Methods

AddSchema(GraphSchema)

Add a child schema to this GraphSchema

Contains(GraphSchema)

Return true if this schema contains the given schema as a child or grand child.

FindCategories(IEnumerable<String>)

Gets all the GraphCategories with the specified ids in this schema and all child schemas recurrsively.

FindCategory(String)

Gets the GraphCategory with the specified id by searching this schema and all of its children recurrsively.

FindCategoryByLabel(String)

Gets the first GraphCategory with the specified label from this schema or any sub schema.

FindProperties(IEnumerable<String>)

Gets the GraphProperties with the specified ids and all child schemas recurrsively.

FindProperty(String)

Gets the GraphProperty with the specified id

FindPropertyByLabel(String)

Gets the first GraphProperty with the specified label from this schema or any sub schema.

OverrideMetadata(GraphMetadataContainer, Action<GraphMetadata>)

Override the metadata for this category

ToString()

Applies to