New-Schema

Top  Previous  Next

Summary

New-Schema [-Web3Address] <Uri> [-FilePath] <String> 

 

Description

Creates a new schema in the specified service using the XML representation of a schema stored in the file provided.

 

Parameters

•Web3Address <Uri>
The web address of the Web3 platform where the schema should be created.  This is a positional parameter - it must appear as the first parameter and the parameter name can be omitted.
•FilePath <String>
The path to the XML schema file to upload.  This is a positional parameter - it must appear as the second parameter and the parameter name can be omitted.

 

Returns

Returns the full representation of the new schema as an object with the following properties:

•WebAddress
The full URL of the new schema representation
•Representation
Access to underlying schema representation object
•SubjectIdentifier
The URI identifier for the schema
•SubjectIdentifierBase
The default base URI to use for types created in the schema
•Version
The schema version string
•PreviousVersion
The version string of the previous version of the schema
•Status
The status string assigned to this schema
•TemplateFreeAssociationTypes
A collection of the association types in the schema that do not have an association template defined
•AllTypes
An enumeration over all the types defined in the schema
•AssociationTemplates
An enumeration over all of the association templates defined in the schema
•TopicTypes
An enumeration over all types defined in the schema that can be used as a topic type
•AssociationTypes
An enumeration over all types defined in the schema that can be used as an association type
•RoleTypes
An enumeration over all types defined in the schema that can be used as a role type
•OccurrenceTypes
An enumeration over all types defined in the schema that can be used as an occurrence type
•NameTypes
An enumeration over all types defined in the schema that can be used as a name type