mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
1528 lines
48 KiB
Text
1528 lines
48 KiB
Text
{
|
|
"name": "nwb-schema-language",
|
|
"description": "Translation of the nwb-schema-language to LinkML",
|
|
"title": "nwb-schema-language",
|
|
"see_also": [
|
|
"https://p2p_ld.github.io/nwb-schema-language"
|
|
],
|
|
"id": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"imports": [
|
|
"linkml:types"
|
|
],
|
|
"license": "GNU GPL v3.0",
|
|
"prefixes": [
|
|
{
|
|
"prefix_prefix": "nwb_schema_language",
|
|
"prefix_reference": "https://w3id.org/p2p_ld/nwb-schema-language/"
|
|
},
|
|
{
|
|
"prefix_prefix": "linkml",
|
|
"prefix_reference": "https://w3id.org/linkml/"
|
|
},
|
|
{
|
|
"prefix_prefix": "schema",
|
|
"prefix_reference": "http://schema.org/"
|
|
}
|
|
],
|
|
"default_prefix": "nwb_schema_language",
|
|
"default_range": "string",
|
|
"types": [
|
|
{
|
|
"name": "string",
|
|
"definition_uri": "https://w3id.org/linkml/String",
|
|
"description": "A character string",
|
|
"notes": [
|
|
"In RDF serializations, a slot with range of string is treated as a literal or type xsd:string. If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"string\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Text"
|
|
],
|
|
"base": "str",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "integer",
|
|
"definition_uri": "https://w3id.org/linkml/Integer",
|
|
"description": "An integer",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"integer\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Integer"
|
|
],
|
|
"base": "int",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#integer",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "boolean",
|
|
"definition_uri": "https://w3id.org/linkml/Boolean",
|
|
"description": "A binary (true or false) value",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"boolean\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Boolean"
|
|
],
|
|
"base": "Bool",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#boolean",
|
|
"repr": "bool",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "float",
|
|
"definition_uri": "https://w3id.org/linkml/Float",
|
|
"description": "A real number that conforms to the xsd:float specification",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"float\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Float"
|
|
],
|
|
"base": "float",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#float",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "double",
|
|
"definition_uri": "https://w3id.org/linkml/Double",
|
|
"description": "A real number that conforms to the xsd:double specification",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"double\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"close_mappings": [
|
|
"schema:Float"
|
|
],
|
|
"base": "float",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#double",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "decimal",
|
|
"definition_uri": "https://w3id.org/linkml/Decimal",
|
|
"description": "A real number with arbitrary precision that conforms to the xsd:decimal specification",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"decimal\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"broad_mappings": [
|
|
"schema:Number"
|
|
],
|
|
"base": "Decimal",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#decimal",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "time",
|
|
"definition_uri": "https://w3id.org/linkml/Time",
|
|
"description": "A time object represents a (local) time of day, independent of any particular day",
|
|
"notes": [
|
|
"URI is dateTime because OWL reasoners do not work with straight date or time",
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"time\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Time"
|
|
],
|
|
"base": "XSDTime",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#time",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "date",
|
|
"definition_uri": "https://w3id.org/linkml/Date",
|
|
"description": "a date (year, month and day) in an idealized calendar",
|
|
"notes": [
|
|
"URI is dateTime because OWL reasoners don't work with straight date or time",
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"date\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:Date"
|
|
],
|
|
"base": "XSDDate",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#date",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "datetime",
|
|
"definition_uri": "https://w3id.org/linkml/Datetime",
|
|
"description": "The combination of a date and time",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"datetime\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"exact_mappings": [
|
|
"schema:DateTime"
|
|
],
|
|
"base": "XSDDateTime",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#dateTime",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "date_or_datetime",
|
|
"definition_uri": "https://w3id.org/linkml/DateOrDatetime",
|
|
"description": "Either a date or a datetime",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"date_or_datetime\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "str",
|
|
"uri": "https://w3id.org/linkml/DateOrDatetime",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "uriorcurie",
|
|
"definition_uri": "https://w3id.org/linkml/Uriorcurie",
|
|
"description": "a URI or a CURIE",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"uriorcurie\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "URIorCURIE",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#anyURI",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "curie",
|
|
"definition_uri": "https://w3id.org/linkml/Curie",
|
|
"conforms_to": "https://www.w3.org/TR/curie/",
|
|
"description": "a compact URI",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"curie\"."
|
|
],
|
|
"comments": [
|
|
"in RDF serializations this MUST be expanded to a URI",
|
|
"in non-RDF serializations MAY be serialized as the compact representation"
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "Curie",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "uri",
|
|
"definition_uri": "https://w3id.org/linkml/Uri",
|
|
"conforms_to": "https://www.ietf.org/rfc/rfc3987.txt",
|
|
"description": "a complete URI",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"uri\"."
|
|
],
|
|
"comments": [
|
|
"in RDF serializations a slot with range of uri is treated as a literal or type xsd:anyURI unless it is an identifier or a reference to an identifier, in which case it is translated directly to a node"
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"close_mappings": [
|
|
"schema:URL"
|
|
],
|
|
"base": "URI",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#anyURI",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "ncname",
|
|
"definition_uri": "https://w3id.org/linkml/Ncname",
|
|
"description": "Prefix part of CURIE",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"ncname\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "NCName",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "objectidentifier",
|
|
"definition_uri": "https://w3id.org/linkml/Objectidentifier",
|
|
"description": "A URI or CURIE that represents an object in the model.",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"objectidentifier\"."
|
|
],
|
|
"comments": [
|
|
"Used for inheritance and type checking"
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "ElementIdentifier",
|
|
"uri": "http://www.w3.org/ns/shex#iri",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "nodeidentifier",
|
|
"definition_uri": "https://w3id.org/linkml/Nodeidentifier",
|
|
"description": "A URI, CURIE or BNODE that represents a node in a model.",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"nodeidentifier\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "NodeIdentifier",
|
|
"uri": "http://www.w3.org/ns/shex#nonLiteral",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "jsonpointer",
|
|
"definition_uri": "https://w3id.org/linkml/Jsonpointer",
|
|
"conforms_to": "https://datatracker.ietf.org/doc/html/rfc6901",
|
|
"description": "A string encoding a JSON Pointer. The value of the string MUST conform to JSON Point syntax and SHOULD dereference to a valid object within the current instance document when encoded in tree form.",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"jsonpointer\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "str",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "jsonpath",
|
|
"definition_uri": "https://w3id.org/linkml/Jsonpath",
|
|
"conforms_to": "https://www.ietf.org/archive/id/draft-goessner-dispatch-jsonpath-00.html",
|
|
"description": "A string encoding a JSON Path. The value of the string MUST conform to JSON Point syntax and SHOULD dereference to zero or more valid objects within the current instance document when encoded in tree form.",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"jsonpath\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "str",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
},
|
|
{
|
|
"name": "sparqlpath",
|
|
"definition_uri": "https://w3id.org/linkml/Sparqlpath",
|
|
"conforms_to": "https://www.w3.org/TR/sparql11-query/#propertypaths",
|
|
"description": "A string encoding a SPARQL Property Path. The value of the string MUST conform to SPARQL syntax and SHOULD dereference to zero or more valid objects within the current instance document when encoded as RDF.",
|
|
"notes": [
|
|
"If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"sparqlpath\"."
|
|
],
|
|
"from_schema": "https://w3id.org/linkml/types",
|
|
"imported_from": "linkml:types",
|
|
"base": "str",
|
|
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
|
"repr": "str",
|
|
"@type": "TypeDefinition"
|
|
}
|
|
],
|
|
"enums": [
|
|
{
|
|
"name": "reftype_options",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/ReftypeOptions",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"permissible_values": [
|
|
{
|
|
"text": "ref",
|
|
"description": "Reference to another group or dataset of the given target_type"
|
|
},
|
|
{
|
|
"text": "reference",
|
|
"description": "Reference to another group or dataset of the given target_type"
|
|
},
|
|
{
|
|
"text": "object",
|
|
"description": "Reference to another group or dataset of the given target_type"
|
|
},
|
|
{
|
|
"text": "region",
|
|
"description": "Reference to a region (i.e. subset) of another dataset of the given target_type"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "QuantityEnum",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/QuantityEnum",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"permissible_values": [
|
|
{
|
|
"text": "*",
|
|
"description": "Zero or more instances, equivalent to zero_or_many"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"description": "Zero or one instances, equivalent to zero_or_one"
|
|
},
|
|
{
|
|
"text": "+",
|
|
"description": "One or more instances, equivalent to one_or_many"
|
|
},
|
|
{
|
|
"text": "zero_or_many",
|
|
"description": "Zero or more instances, equivalent to *"
|
|
},
|
|
{
|
|
"text": "one_or_many",
|
|
"description": "One or more instances, equivalent to +"
|
|
},
|
|
{
|
|
"text": "zero_or_one",
|
|
"description": "Zero or one instances, equivalent to ?"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "FlatDtype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/FlatDtype",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"permissible_values": [
|
|
{
|
|
"text": "float",
|
|
"description": "single precision floating point (32 bit)"
|
|
},
|
|
{
|
|
"text": "float32",
|
|
"description": "single precision floating point (32 bit)"
|
|
},
|
|
{
|
|
"text": "double",
|
|
"description": "double precision floating point (64 bit)"
|
|
},
|
|
{
|
|
"text": "float64",
|
|
"description": "double precision floating point (64 bit)"
|
|
},
|
|
{
|
|
"text": "long",
|
|
"description": "signed 64 bit integer"
|
|
},
|
|
{
|
|
"text": "int64",
|
|
"description": "signed 64 bit integer"
|
|
},
|
|
{
|
|
"text": "int",
|
|
"description": "signed 32 bit integer"
|
|
},
|
|
{
|
|
"text": "int32",
|
|
"description": "signed 32 bit integer"
|
|
},
|
|
{
|
|
"text": "int16",
|
|
"description": "signed 16 bit integer"
|
|
},
|
|
{
|
|
"text": "short",
|
|
"description": "signed 16 bit integer"
|
|
},
|
|
{
|
|
"text": "int8",
|
|
"description": "signed 8 bit integer"
|
|
},
|
|
{
|
|
"text": "uint",
|
|
"description": "unsigned 32 bit integer"
|
|
},
|
|
{
|
|
"text": "uint32",
|
|
"description": "unsigned 32 bit integer"
|
|
},
|
|
{
|
|
"text": "uint16",
|
|
"description": "unsigned 16 bit integer"
|
|
},
|
|
{
|
|
"text": "uint8",
|
|
"description": "unsigned 8 bit integer"
|
|
},
|
|
{
|
|
"text": "uint64",
|
|
"description": "unsigned 64 bit integer"
|
|
},
|
|
{
|
|
"text": "numeric",
|
|
"description": "any numeric type (i.e., any int, uint, float)"
|
|
},
|
|
{
|
|
"text": "text",
|
|
"description": "8-bit Unicode"
|
|
},
|
|
{
|
|
"text": "utf",
|
|
"description": "8-bit Unicode"
|
|
},
|
|
{
|
|
"text": "utf8",
|
|
"description": "8-bit Unicode"
|
|
},
|
|
{
|
|
"text": "utf-8",
|
|
"description": "8-bit Unicode"
|
|
},
|
|
{
|
|
"text": "ascii",
|
|
"description": "ASCII text"
|
|
},
|
|
{
|
|
"text": "bool",
|
|
"description": "8 bit integer with valid values 0 or 1"
|
|
},
|
|
{
|
|
"text": "isodatetime",
|
|
"description": "ISO 8601 datetime string",
|
|
"examples": [
|
|
{
|
|
"value": "2018-09-28 14:43:54.123000+02:00"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"slots": [
|
|
{
|
|
"name": "doc",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/doc",
|
|
"description": "Description of corresponding object.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/doc",
|
|
"owner": "CompoundDtype",
|
|
"domain_of": [
|
|
"Namespace",
|
|
"Group",
|
|
"Attribute",
|
|
"Link",
|
|
"Dataset",
|
|
"CompoundDtype"
|
|
],
|
|
"range": "string",
|
|
"required": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"owner": "CompoundDtype",
|
|
"domain_of": [
|
|
"Namespace",
|
|
"Group",
|
|
"Attribute",
|
|
"Link",
|
|
"Dataset",
|
|
"CompoundDtype"
|
|
],
|
|
"range": "string",
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "full_name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/full_name",
|
|
"description": "Optional string with extended full name for the namespace.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/full_name",
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "string",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "version",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/version",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/version",
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "string",
|
|
"required": true,
|
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "date",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/date",
|
|
"description": "Date that a namespace was last modified or released",
|
|
"examples": [
|
|
{
|
|
"value": "2017-04-25 17:14:13",
|
|
"@type": "Example"
|
|
}
|
|
],
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mappings": [
|
|
"http://schema.org/dateModified"
|
|
],
|
|
"slot_uri": "http://schema.org/dateModified",
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "datetime",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "author",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/author",
|
|
"description": "List of strings with the names of the authors of the namespace.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mappings": [
|
|
"http://schema.org/author"
|
|
],
|
|
"slot_uri": "http://schema.org/author",
|
|
"multivalued": true,
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "string",
|
|
"required": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "contact",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/contact",
|
|
"description": "List of strings with the contact information for the authors. Ordering of the contacts should match the ordering of the authors.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mappings": [
|
|
"http://schema.org/email"
|
|
],
|
|
"slot_uri": "http://schema.org/email",
|
|
"multivalued": true,
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "string",
|
|
"required": true,
|
|
"structured_pattern": {
|
|
"syntax": "{email}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "schema",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/schema",
|
|
"description": "List of the schema to be included in this namespace.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/schema_",
|
|
"multivalued": true,
|
|
"alias": "schema_",
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"range": "Schema",
|
|
"inlined": true,
|
|
"inlined_as_list": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "source",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/source",
|
|
"description": "describes the name of the YAML (or JSON) file with the schema specification. The schema files should be located in the same folder as the namespace file.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/source",
|
|
"owner": "Schema",
|
|
"domain_of": [
|
|
"Schema"
|
|
],
|
|
"range": "string",
|
|
"pattern": ".*\\.(yml|yaml|json)",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "namespace",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/namespace",
|
|
"description": "describes a named reference to another namespace. In contrast to source, this is a reference by name to a known namespace (i.e., the namespace is resolved during the build and must point to an already existing namespace). This mechanism is used to allow, e.g., extension of a core namespace (here the NWB core namespace) without requiring hard paths to the files describing the core namespace. Either source or namespace must be specified, but not both.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/namespace",
|
|
"owner": "Schema",
|
|
"domain_of": [
|
|
"Schema"
|
|
],
|
|
"range": "string",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "namespaces",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/namespaces",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/namespaces",
|
|
"multivalued": true,
|
|
"owner": "Namespaces",
|
|
"domain_of": [
|
|
"Namespaces"
|
|
],
|
|
"range": "Namespace",
|
|
"inlined": true,
|
|
"inlined_as_list": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "neurodata_types",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_types",
|
|
"description": "an optional list of strings indicating which data types should be included from the given specification source or namespace. The default is null indicating that all data types should be included.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_types",
|
|
"multivalued": true,
|
|
"owner": "Schema",
|
|
"domain_of": [
|
|
"Schema"
|
|
],
|
|
"range": "string",
|
|
"any_of": [
|
|
{
|
|
"range": "Dataset",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "Group",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/title",
|
|
"description": "a descriptive title for a file for documentation purposes.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/title",
|
|
"owner": "Schema",
|
|
"domain_of": [
|
|
"Schema"
|
|
],
|
|
"range": "string",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "neurodata_type_def",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_type_def",
|
|
"description": "Used alongside neurodata_type_inc to indicate inheritance, naming, and mixins",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_type_def",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "neurodata_type_inc",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_type_inc",
|
|
"description": "Used alongside neurodata_type_def to indicate inheritance, naming, and mixins",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/neurodata_type_inc",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "default_name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/default_name",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/default_name",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "quantity",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/quantity",
|
|
"todos": [
|
|
"logic to check that the corresponding class can only be implemented quantity times."
|
|
],
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/quantity",
|
|
"ifabsent": "int(1)",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Link",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"any_of": [
|
|
{
|
|
"range": "integer",
|
|
"minimum_value": 1,
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "QuantityEnum",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "linkable",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/linkable",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/linkable",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Dataset"
|
|
],
|
|
"range": "boolean",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "attributes",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/attributes",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/attributes",
|
|
"multivalued": true,
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Group",
|
|
"Dataset"
|
|
],
|
|
"range": "Attribute",
|
|
"inlined": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "datasets",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/datasets",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/datasets",
|
|
"multivalued": true,
|
|
"owner": "Datasets",
|
|
"domain_of": [
|
|
"Group",
|
|
"Datasets"
|
|
],
|
|
"range": "Dataset",
|
|
"inlined": true,
|
|
"inlined_as_list": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "groups",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/groups",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/groups",
|
|
"multivalued": true,
|
|
"owner": "Groups",
|
|
"domain_of": [
|
|
"Group",
|
|
"Groups"
|
|
],
|
|
"range": "Group",
|
|
"inlined": true,
|
|
"inlined_as_list": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "links",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/links",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/links",
|
|
"multivalued": true,
|
|
"owner": "Group",
|
|
"domain_of": [
|
|
"Group"
|
|
],
|
|
"range": "Link",
|
|
"inlined": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "dtype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dtype",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dtype",
|
|
"multivalued": true,
|
|
"owner": "DtypeMixin",
|
|
"domain_of": [
|
|
"CompoundDtype",
|
|
"DtypeMixin"
|
|
],
|
|
"range": "string",
|
|
"any_of": [
|
|
{
|
|
"range": "FlatDtype",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "CompoundDtype",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "ReferenceDtype",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "dims",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dims",
|
|
"todos": [
|
|
"Can't quite figure out how to allow an array of arrays - see https://github.com/linkml/linkml/issues/895"
|
|
],
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dims",
|
|
"multivalued": true,
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Attribute",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"any_of": [
|
|
{
|
|
"range": "string",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "AnyType",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "shape",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/shape",
|
|
"todos": [
|
|
"Can't quite figure out how to allow an array of arrays - see https://github.com/linkml/linkml/issues/895"
|
|
],
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/shape",
|
|
"multivalued": true,
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Attribute",
|
|
"Dataset"
|
|
],
|
|
"range": "string",
|
|
"any_of": [
|
|
{
|
|
"range": "integer",
|
|
"minimum_value": 1,
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "string",
|
|
"equals_string": "null",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "AnyType",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/value",
|
|
"description": "Optional constant, fixed value for the attribute.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/value",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Attribute",
|
|
"Dataset"
|
|
],
|
|
"range": "AnyType",
|
|
"inlined": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "default_value",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/default_value",
|
|
"description": "Optional default value for variable-valued attributes.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/default_value",
|
|
"owner": "Dataset",
|
|
"domain_of": [
|
|
"Attribute",
|
|
"Dataset"
|
|
],
|
|
"range": "AnyType",
|
|
"inlined": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "required",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/required",
|
|
"description": "Optional boolean key describing whether the attribute is required. Default value is True.",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/required",
|
|
"ifabsent": "true",
|
|
"owner": "Attribute",
|
|
"domain_of": [
|
|
"Attribute"
|
|
],
|
|
"range": "boolean",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "target_type",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/target_type",
|
|
"description": "Describes the neurodata_type of the target that the reference points to",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/target_type",
|
|
"owner": "ReferenceDtype",
|
|
"domain_of": [
|
|
"Link",
|
|
"ReferenceDtype"
|
|
],
|
|
"range": "string",
|
|
"required": true,
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "reftype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/reftype",
|
|
"description": "describes the kind of reference",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/reftype",
|
|
"owner": "ReferenceDtype",
|
|
"domain_of": [
|
|
"ReferenceDtype"
|
|
],
|
|
"range": "reftype_options",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "schema__doc",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/doc",
|
|
"alias": "doc",
|
|
"owner": "Schema",
|
|
"domain_of": [
|
|
"Schema"
|
|
],
|
|
"range": "string",
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "Namespace_name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"is_a": "name",
|
|
"domain": "Namespace",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"alias": "name",
|
|
"owner": "Namespace",
|
|
"domain_of": [
|
|
"Namespace"
|
|
],
|
|
"is_usage_slot": true,
|
|
"usage_slot_name": "name",
|
|
"range": "string",
|
|
"required": true,
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "Attribute_name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"is_a": "name",
|
|
"domain": "Attribute",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"alias": "name",
|
|
"owner": "Attribute",
|
|
"domain_of": [
|
|
"Attribute"
|
|
],
|
|
"is_usage_slot": true,
|
|
"usage_slot_name": "name",
|
|
"range": "string",
|
|
"required": true,
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "CompoundDtype_name",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"is_a": "name",
|
|
"domain": "CompoundDtype",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
|
|
"alias": "name",
|
|
"owner": "CompoundDtype",
|
|
"domain_of": [
|
|
"CompoundDtype"
|
|
],
|
|
"is_usage_slot": true,
|
|
"usage_slot_name": "name",
|
|
"range": "string",
|
|
"required": true,
|
|
"structured_pattern": {
|
|
"syntax": "{protected_string}",
|
|
"interpolated": true,
|
|
"@type": "PatternExpression"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
},
|
|
{
|
|
"name": "CompoundDtype_dtype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dtype",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"is_a": "dtype",
|
|
"domain": "CompoundDtype",
|
|
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/dtype",
|
|
"multivalued": true,
|
|
"alias": "dtype",
|
|
"owner": "CompoundDtype",
|
|
"domain_of": [
|
|
"CompoundDtype"
|
|
],
|
|
"is_usage_slot": true,
|
|
"usage_slot_name": "dtype",
|
|
"range": "string",
|
|
"required": true,
|
|
"any_of": [
|
|
{
|
|
"range": "ReferenceDtype",
|
|
"@type": "AnonymousSlotExpression"
|
|
},
|
|
{
|
|
"range": "FlatDtype",
|
|
"@type": "AnonymousSlotExpression"
|
|
}
|
|
],
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"name": "Namespace",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespace",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"doc",
|
|
"Namespace_name",
|
|
"full_name",
|
|
"version",
|
|
"date",
|
|
"author",
|
|
"contact",
|
|
"schema"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespace",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Namespaces",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespaces",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"namespaces"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespaces",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Schema",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Schema",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"source",
|
|
"namespace",
|
|
"title",
|
|
"neurodata_types",
|
|
"schema__doc"
|
|
],
|
|
"slot_usage": {},
|
|
"attributes": [
|
|
{
|
|
"name": "doc",
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Schema",
|
|
"rules": [
|
|
{
|
|
"preconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "namespace",
|
|
"value_presence": {
|
|
"text": "ABSENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"postconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "source",
|
|
"required": true,
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"description": "If namespace is absent, source is required",
|
|
"@type": "ClassRule"
|
|
},
|
|
{
|
|
"preconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "source",
|
|
"value_presence": {
|
|
"text": "ABSENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"postconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "namespace",
|
|
"required": true,
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"description": "If source is absent, namespace is required.",
|
|
"@type": "ClassRule"
|
|
},
|
|
{
|
|
"preconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "namespace",
|
|
"value_presence": {
|
|
"text": "PRESENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"postconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "source",
|
|
"value_presence": {
|
|
"text": "ABSENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"description": "If namespace is present, source is cannot be",
|
|
"@type": "ClassRule"
|
|
},
|
|
{
|
|
"preconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "source",
|
|
"value_presence": {
|
|
"text": "PRESENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"postconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "namespace",
|
|
"value_presence": {
|
|
"text": "ABSENT",
|
|
"@type": "PermissibleValue"
|
|
},
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"description": "If source is present, namespace cannot be.",
|
|
"@type": "ClassRule"
|
|
}
|
|
],
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Group",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Group",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"neurodata_type_def",
|
|
"neurodata_type_inc",
|
|
"name",
|
|
"default_name",
|
|
"doc",
|
|
"quantity",
|
|
"linkable",
|
|
"attributes",
|
|
"datasets",
|
|
"groups",
|
|
"links"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Group",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Groups",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Groups",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"groups"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Groups",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Attribute",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Attribute",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mixins": [
|
|
"DtypeMixin"
|
|
],
|
|
"slots": [
|
|
"Attribute_name",
|
|
"dims",
|
|
"shape",
|
|
"value",
|
|
"default_value",
|
|
"doc",
|
|
"required",
|
|
"dtype"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Attribute",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Link",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Link",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"name",
|
|
"doc",
|
|
"target_type",
|
|
"quantity"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Link",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Dataset",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Dataset",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mixins": [
|
|
"DtypeMixin"
|
|
],
|
|
"slots": [
|
|
"neurodata_type_def",
|
|
"neurodata_type_inc",
|
|
"name",
|
|
"default_name",
|
|
"dims",
|
|
"shape",
|
|
"value",
|
|
"default_value",
|
|
"doc",
|
|
"quantity",
|
|
"linkable",
|
|
"attributes",
|
|
"dtype"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Dataset",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "Datasets",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Datasets",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"datasets"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Datasets",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "ReferenceDtype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/ReferenceDtype",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"target_type",
|
|
"reftype"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/ReferenceDtype",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "CompoundDtype",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/CompoundDtype",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"slots": [
|
|
"CompoundDtype_name",
|
|
"doc",
|
|
"CompoundDtype_dtype"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/CompoundDtype",
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "DtypeMixin",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/DtypeMixin",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mixin": true,
|
|
"slots": [
|
|
"dtype"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/DtypeMixin",
|
|
"rules": [
|
|
{
|
|
"preconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "dtype",
|
|
"range": "FlatDtype",
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"postconditions": {
|
|
"slot_conditions": [
|
|
{
|
|
"name": "dtype",
|
|
"@type": "SlotDefinition"
|
|
}
|
|
],
|
|
"@type": "AnonymousClassExpression"
|
|
},
|
|
"@type": "ClassRule"
|
|
}
|
|
],
|
|
"@type": "ClassDefinition"
|
|
},
|
|
{
|
|
"name": "AnyType",
|
|
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/AnyType",
|
|
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
|
|
"mappings": [
|
|
"linkml:Any"
|
|
],
|
|
"slot_usage": {},
|
|
"class_uri": "https://w3id.org/linkml/Any",
|
|
"@type": "ClassDefinition"
|
|
}
|
|
],
|
|
"metamodel_version": "1.7.0",
|
|
"source_file": "nwb_schema_language.yaml",
|
|
"source_file_date": "2023-08-31T15:31:11",
|
|
"source_file_size": 10797,
|
|
"generation_date": "2023-10-09T15:03:07",
|
|
"settings": [
|
|
{
|
|
"setting_key": "email",
|
|
"setting_value": "\\S+@\\S+{\\.\\w}+"
|
|
},
|
|
{
|
|
"setting_key": "protected_string",
|
|
"setting_value": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
}
|
|
],
|
|
"@type": "SchemaDefinition",
|
|
"@context": [
|
|
"project/jsonld/nwb_schema_language.context.jsonld",
|
|
"https://w3id.org/linkml/types.context.jsonld",
|
|
{
|
|
"@base": "https://w3id.org/p2p_ld/nwb-schema-language/"
|
|
}
|
|
]
|
|
}
|