nwb-linkml/nwb-schema-linkml/project/jsonld/nwb_schema_language.jsonld

544 lines
18 KiB
Text
Raw Normal View History

2023-08-16 23:07:36 +00:00
{
"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": "biolink",
"prefix_reference": "https://w3id.org/biolink/"
},
{
"prefix_prefix": "schema",
"prefix_reference": "http://schema.org/"
},
{
"prefix_prefix": "PATO",
"prefix_reference": "http://purl.obolibrary.org/obo/PATO_"
},
{
"prefix_prefix": "example",
"prefix_reference": "https://example.org/"
}
],
"default_prefix": "nwb_schema_language",
"default_range": "string",
"types": [
{
"name": "string",
"definition_uri": "https://w3id.org/linkml/String",
"description": "A character 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",
"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",
"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",
"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",
"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",
"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"
],
"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"
],
"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",
"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",
"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",
"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",
"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",
"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",
"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.",
"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.",
"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.",
"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.",
"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.",
"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": "PersonStatus",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/PersonStatus",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"permissible_values": [
{
"text": "ALIVE",
"description": "the person is living",
"meaning": "PATO:0001421"
},
{
"text": "DEAD",
"description": "the person is deceased",
"meaning": "PATO:0001422"
},
{
"text": "UNKNOWN",
"description": "the vital status is not known",
"todos": [
"map this to an ontology"
]
}
]
}
],
"slots": [
{
"name": "id",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/id",
"description": "A unique identifier for a thing",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/identifier"
],
"slot_uri": "http://schema.org/identifier",
"identifier": true,
"owner": "NamedThing",
"domain_of": [
"NamedThing"
],
"range": "uriorcurie",
"required": true,
"@type": "SlotDefinition"
},
{
"name": "name",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/name",
"description": "A human-readable name for a thing",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/name"
],
"slot_uri": "http://schema.org/name",
"owner": "NamedThing",
"domain_of": [
"NamedThing"
],
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "description",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/description",
"description": "A human-readable description for a thing",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/description"
],
"slot_uri": "http://schema.org/description",
"owner": "NamedThing",
"domain_of": [
"NamedThing"
],
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "primary_email",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/primary_email",
"description": "The main email address of a person",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/email"
],
"slot_uri": "http://schema.org/email",
"owner": "Namespaces",
"domain_of": [
"Namespaces"
],
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "birth_date",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/birth_date",
"description": "Date on which a person is born",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/birthDate"
],
"slot_uri": "http://schema.org/birthDate",
"owner": "Namespaces",
"domain_of": [
"Namespaces"
],
"range": "date",
"@type": "SlotDefinition"
},
{
"name": "age_in_years",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/age_in_years",
"description": "Number of years since birth",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/age_in_years",
"owner": "Namespaces",
"domain_of": [
"Namespaces"
],
"range": "integer",
"@type": "SlotDefinition"
},
{
"name": "vital_status",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/vital_status",
"description": "living or dead status",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/vital_status",
"owner": "Namespaces",
"domain_of": [
"Namespaces"
],
"range": "PersonStatus",
"@type": "SlotDefinition"
},
{
"name": "namespacesCollection__entries",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"slot_uri": "https://w3id.org/p2p_ld/nwb-schema-language/entries",
"multivalued": true,
"alias": "entries",
"owner": "NamespacesCollection",
"domain_of": [
"NamespacesCollection"
],
"range": "Namespaces",
"inlined": true,
"@type": "SlotDefinition"
},
{
"name": "Namespaces_primary_email",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/primary_email",
"description": "The main email address of a person",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"http://schema.org/email"
],
"is_a": "primary_email",
"domain": "Namespaces",
"slot_uri": "http://schema.org/email",
"alias": "primary_email",
"owner": "Namespaces",
"domain_of": [
"Namespaces"
],
"is_usage_slot": true,
"usage_slot_name": "primary_email",
"range": "string",
"pattern": "^\\S+@[\\S+\\.]+\\S+",
"@type": "SlotDefinition"
}
],
"classes": [
{
"name": "NamedThing",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/NamedThing",
"description": "A generic grouping for any identifiable entity",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"mappings": [
"schema:Thing"
],
"slots": [
"id",
"name",
"description"
],
"slot_usage": {},
"class_uri": "http://schema.org/Thing",
"@type": "ClassDefinition"
},
{
"name": "Namespaces",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespaces",
"description": "Represents a Namespaces",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"is_a": "NamedThing",
"slots": [
"id",
"name",
"description",
"Namespaces_primary_email",
"birth_date",
"age_in_years",
"vital_status"
],
"slot_usage": {},
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/Namespaces",
"@type": "ClassDefinition"
},
{
"name": "NamespacesCollection",
"definition_uri": "https://w3id.org/p2p_ld/nwb-schema-language/NamespacesCollection",
"description": "A holder for Namespaces objects",
"from_schema": "https://w3id.org/p2p_ld/nwb-schema-language",
"slots": [
"namespacesCollection__entries"
],
"slot_usage": {},
"attributes": [
{
"name": "entries",
"multivalued": true,
"range": "Namespaces",
"inlined": true,
"@type": "SlotDefinition"
}
],
"class_uri": "https://w3id.org/p2p_ld/nwb-schema-language/NamespacesCollection",
"tree_root": true,
"@type": "ClassDefinition"
}
],
"metamodel_version": "1.7.0",
"source_file": "nwb_schema_language.yaml",
"source_file_date": "2023-08-16T15:45:06",
"source_file_size": 2270,
"generation_date": "2023-08-16T15:57:40",
"@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/"
}
]
}