UNPKG

@themost/data

Version:
396 lines (395 loc) 15.8 kB
{ "Boolean": { "comment": "Boolean has the value space required to support the mathematical concept of binary-valued logic.", "instances": [ "false", "true" ], "label": "Boolean", "properties": {}, "url": "https://www.w3.org/TR/xmlschema-2/#boolean", "type": "boolean", "sqltype":"Boolean", "version":"1.0" }, "Date": { "comment": "Represents a date only value.", "label": "Date", "properties": { "pattern":"^(\\d{4})(?:-?W(\\d+)(?:-?(\\d+)D?)?|(?:-(\\d+))?-(\\d+))(?:[T ](\\d+):(\\d+)(?::(\\d+)(?:\\.(\\d+))?)?)?(?:Z(-?\\d*))?([+-](\\d+):(\\d+))?$" }, "url": "https://www.w3.org/TR/xmlschema-2/#date", "type": "Date", "sqltype":"Date", "version":"1.0" }, "DateTime": { "comment": "Represents a date and time value.", "label": "Date Time", "url": "https://www.w3.org/TR/xmlschema-2/#dateTime", "properties": { "pattern":"^(\\d{4})(?:-?W(\\d+)(?:-?(\\d+)D?)?|(?:-(\\d+))?-(\\d+))(?:[T ](\\d+):(\\d+)(?::(\\d+)(?:\\.(\\d+))?)?)?(?:Z(-?\\d*))?([+-](\\d+):(\\d+))?$" }, "type": "Date", "sqltype":"DateTime", "version":"1.0" }, "Float": { "comment": "Float data type is a single-precision 32-bit floating point.", "label": "Float", "properties": { "pattern":"^[+-]?[0-9]*\\.?[0-9]*$" }, "url": "https://www.w3.org/TR/xmlschema-2/#float", "type": "number", "sqltype":"Float", "version":"1.0" }, "Integer": { "comment": "Integer data type is a 32-bit signed two's complement integer.", "label": "Integer", "properties": { "pattern":"^[+-]?[0-9]*$" }, "url": "https://www.w3.org/TR/xmlschema-2/#integer", "type": "number", "sqltype":"Integer", "version":"1.0" }, "Short": { "comment": "Short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive).", "label": "Short", "properties": { "pattern":"^[+-]?[0-9]*$" }, "url": "https://www.w3.org/TR/xmlschema-2/#short", "type": "number", "sqltype":"Integer", "version":"1.0" }, "Counter": { "comment": "An integer which is generated automatically.", "label": "Counter", "supertypes": [ "Integer" ], "properties": {}, "url": "https://www.w3.org/TR/xmlschema-2/#integer", "type": "number", "sqltype":"Counter", "version":"1.0" }, "Duration": { "comment": "A string which represents a duration of time (e.g. P1Y1M10D, P10D, -P0Y1M10D2H15M30S etc)", "label": "Duration", "properties": { "pattern":"^([-])?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T)?([0-9]+H)?([0-9]+M)?([0-9]+S)?$", "patternMessage":"The value should be a valid duration (e.g. P1Y1M15D or -PT2H30M0S)." }, "supertypes": [ "Text" ], "url": "http://www.w3.org/TR/xmlschema-2/#duration", "type": "string", "sqltype":"Text", "version":"1.0" }, "Number": { "comment": "A general number.", "label": "Number", "supertypes": [ "DataType" ], "properties": { "pattern":"^[+-]?[0-9]*\\.?[0-9]*$" }, "url": "https://www.w3.org/TR/xmlschema-2/#float", "type": "number", "sqltype":"Number", "version":"1.0" }, "Text": { "comment": "A sequence of characters", "label": "Text", "url": "https://www.w3.org/TR/xmlschema-2/#string", "type": "string", "sqltype":"Text", "version":"1.0" }, "Time": { "comment": "A string which represents an instant of time that recurs every day (e.g. 13:20:45)", "label": "Time", "properties": { "pattern":"^([01]?\\d|2[0-3])\\:([0-5][0-9])\\:([0-5][0-9])?\\.?(\\d+)?([-+][0-1][0-9]\\:[0-5][0-9])?$" }, "supertypes": [ "Text" ], "url": "https://www.w3.org/TR/xmlschema-2/#time", "type": "Duration", "sqltype":"Time", "version":"1.0" }, "URL": { "comment": "A reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it.", "label": "URL", "supertypes": [ "Text" ], "url": "http://schema.org/URL", "type": "string", "sqltype":"Text", "version":"1.0" }, "Language": { "comment": "Represents natural language identifiers", "instances": { "af":"Afrikaans", "ar-ae":"Arabic (U.A.E.)", "ar-bh":"Arabic (Kingdom of Bahrain)", "ar-dz":"Arabic (Algeria)", "ar-eg":"Arabic (Egypt)", "ar-iq":"Arabic (Iraq)", "ar-jo":"Arabic (Jordan)", "ar-kw":"Arabic (Kuwait)", "ar-lb":"Arabic (Lebanon)", "ar-ly":"Arabic (Libya)", "ar-ma":"Arabic (Morocco)", "ar-om":"Arabic (Oman)", "ar-qa":"Arabic (Qatar)", "ar-sa":"Arabic (Saudi Arabia)", "ar-sy":"Arabic (Syria)", "ar-tn":"Arabic (Tunisia)", "ar-ye":"Arabic (Yemen)", "ar":"Arabic", "as":"Assamese", "az":"Azerbaijani", "be":"Belarusian", "bg":"Bulgarian", "bn":"Bangla", "ca":"Catalan", "cs":"Czech", "da":"Danish", "de-at":"German (Austria)", "de-ch":"German (Switzerland)", "de-li":"German (Liechtenstein)", "de-lu":"German (Luxembourg)", "de":"German (Germany)", "el":"Greek", "en-au":"English (Australia)", "en-bz":"English (Belize)", "en-ca":"English (Canada)", "en-gb":"English (United Kingdom)", "en-ie":"English (Ireland)", "en-jm":"English (Jamaica)", "en-nz":"English (New Zealand)", "en-ph":"English (Philippines)", "en-tt":"English (Trinidad)", "en-us":"English (United States)", "en-za":"English (South Africa)", "en-zw":"English (Zimbabwe)", "en":"English", "es-ar":"Spanish (Argentina)", "es-bo":"Spanish (Bolivia)", "es-cl":"Spanish (Chile)", "es-co":"Spanish (Colombia)", "es-cr":"Spanish (Costa Rica)", "es-do":"Spanish (Dominican Republic)", "es-ec":"Spanish (Ecuador)", "es-gt":"Spanish (Guatemala)", "es-hn":"Spanish (Honduras)", "es-mx":"Spanish (Mexico)", "es-ni":"Spanish (Nicaragua)", "es-pa":"Spanish (Panama)", "es-pe":"Spanish (Peru)", "es-pr":"Spanish (Puerto Rico)", "es-py":"Spanish (Paraguay)", "es-sv":"Spanish (El Salvador)", "es-us":"Spanish (United States)", "es-uy":"Spanish (Uruguay)", "es-ve":"Spanish (Venezuela)", "es":"Spanish", "et":"Estonian", "eu":"Basque (Basque)", "fa":"Persian", "fi":"Finnish", "fo":"Faeroese", "fr-be":"French (Belgium)", "fr-ca":"French (Canada)", "fr-ch":"French (Switzerland)", "fr-lu":"French (Luxembourg)", "fr-mc":"French (Monaco)", "fr":"French (France)", "gd":"Scottish Gaelic", "gl":"Galician", "gu":"Gujarati", "he":"Hebrew", "hi":"Hindi", "hr":"Croatian", "hu":"Hungarian", "hy":"Armenian", "id":"Indonesian", "is":"Icelandic", "it-ch":"Italian (Switzerland)", "it":"Italian (Italy)", "ja":"Japanese", "ka":"Georgian", "kk":"Kazakh", "kn":"Kannada", "ko":"Korean", "kok":"Konkani", "kz":"Kyrgyz", "lt":"Lithuanian", "lv":"Latvian", "mk":"Macedonian Slavic", "ml":"Malayalam", "mn":"Mongolian (Cyrillic)", "mr":"Marathi", "ms":"Malay", "mt":"Maltese", "nb-no":"Norwegian (Bokmal)", "ne":"Nepali (India)", "nl-be":"Dutch (Belgium)", "nl":"Dutch (Netherlands)", "nn-no":"Norwegian (Nynorsk)", "no":"Norwegian (Bokmal)", "or":"Odia", "pa":"Punjabi", "pl":"Polish", "pt-br":"Portuguese (Brazil)", "pt":"Portuguese (Portugal)", "rm":"Rhaeto-Romanic", "ro-md":"Romanian (Moldova)", "ro":"Romanian", "ru-md":"Russian (Moldova)", "ru":"Russian", "sa":"Sanskrit", "sb":"Sorbian", "sk":"Slovak", "sl":"Slovenian", "sq":"Albanian", "sr":"Serbian", "sv-fi":"Swedish (Finland)", "sv":"Swedish", "sw":"Swahili", "sx":"Sutu", "syr":"Syriac", "ta":"Tamil", "te":"Telugu", "th":"Thai", "tn":"Tswana", "tr":"Turkish", "ts":"Tsonga", "tt":"Tatar", "uk":"Ukrainian", "ur":"Urdu", "uz":"Uzbek", "vi":"Vietnamese", "xh":"Xhosa", "yi":"Yiddish", "zh-cn":"Chinese (China)", "zh-hk":"Chinese (Hong Kong SAR)", "zh-mo":"Chinese (Macao SAR)", "zh-sg":"Chinese (Singapore)", "zh-tw":"Chinese (Taiwan)", "zh":"Chinese", "zu":"Zulu" }, "label": "Language", "properties": { "pattern":"^([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*$" }, "supertypes": [ "Text" ], "url": "https://www.w3.org/TR/xmlschema-2/#language", "type": "string", "sqltype":"Text", "version":"1.0" }, "Model": { "comment": "A string which represents the name of a data model.", "label": "Model", "properties": { "pattern": "^(\\w+)$" }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "Guid": { "comment": "A string which represents a global unique identifier (e.g. 21EC2020-3AEA-4069-A2DD-08002B30309D).", "label": "Guid", "properties": { "pattern": "^(\\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\\}{0,1})$" }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "Object": { "comment": "A value which represents an unknown object reference.", "label": "Object", "properties": { }, "supertypes": [ "Integer" ], "type": "number", "sqltype":"Integer", "version":"1.0" }, "ObjectURI": { "comment": "A string which represents a relative object URI e.g. /User/100 or /Order/12345 where the first segment represents a model associated an object and the second an object identifier like object ID.", "label": "Object URI", "properties": { "pattern": "^\\/(\\w+)\\/(\\w+)$" }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "NegativeInteger": { "comment": "An integer containing only negative values (..,-2,-1)", "label": "NegativeInteger", "properties": { "pattern":"^[-][0-9]*$", "patternMessage":"The value should be an integer lower than zero.", "minValue":-2147483648, "maxValue":-1 }, "supertypes": [ "Integer" ], "url": "http://www.w3.org/TR/xmlschema-2/#negativeInteger", "type": "int", "sqltype":"Integer", "version":"1.0" }, "NegativeNumber": { "comment": "A number containing only negative values (..,-2,-1)", "label": "NegativeNumber", "properties": { "pattern":"^[-][0-9]*\\.?[0-9]*$", "patternMessage":"The value should be a number lower than zero." }, "supertypes": [ "Number" ], "url": "http://www.w3.org/TR/xmlschema-2/#negativeNumber", "type": "number", "sqltype":"Number", "version":"1.0" }, "NonNegativeInteger": { "comment": "An integer containing only non-negative values (0,1,2,..)", "label": "NonNegativeInteger", "properties": { "pattern":"^[+]?[0-9]*$", "patternMessage":"The value should be an integer greater or equal to zero.", "minValue":0, "maxValue":2147483647 }, "supertypes": [ "Integer" ], "url": "http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger", "type": "int", "sqltype":"Integer", "version":"1.0" }, "NonNegativeNumber": { "comment": "A number containing only non-negative values (0,1,2,..)", "label": "NonNegativeNumber", "properties": { "pattern":"^[+]?[0-9]*\\.?[0-9]*$", "patternMessage":"The value should be a number greater or equal to zero." }, "supertypes": [ "Number" ], "url": "http://www.w3.org/TR/xmlschema-2/#nonNegativeNumber", "type": "number", "sqltype":"Number", "version":"1.0" }, "NonPositiveInteger": { "comment": "An integer containing only non-positive values (..,-2,-1,0)", "label": "NonPositiveInteger", "properties": { "pattern":"^[-][0-9]*$", "patternMessage":"The value should be an integer lower or equal to zero.", "minValue":-2147483648, "maxValue":0 }, "supertypes": [ "Integer" ], "url": "http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger", "type": "int", "sqltype":"Integer", "version":"1.0" }, "NonPositiveNumber": { "comment": "A number containing only non-positive values (..,-2,-1,0)", "label": "NonPositiveNumber", "properties": { "pattern":"^[-][0-9]*\\.?[0-9]*$", "patternMessage":"The value should be a number lower or equal to zero.", "minValue":0 }, "supertypes": [ "Number" ], "url": "http://www.w3.org/TR/xmlschema-2/#nonPositiveNumber", "type": "number", "sqltype":"Number", "version":"1.0" }, "PositiveInteger": { "comment": "An integer containing only positive values (1,2,..)", "label": "PositiveInteger", "properties": { "pattern":"^[+]?[1-9][0-9]*$", "patternMessage":"The value should be an integer greater than zero.", "minValue":1, "maxValue":2147483647 }, "supertypes": [ "Integer" ], "url": "http://www.w3.org/TR/xmlschema-2/#positiveInteger", "type": "int", "sqltype":"Integer", "version":"1.0" }, "PositiveNumber": { "comment": "A number containing only positive values (0.1,+1,2,..)", "label": "PositiveNumber", "properties": { "pattern":"^[+]?[0-9]*\\.?[0-9]*$", "patternMessage":"The value should be a number greater than zero." }, "supertypes": [ "Number" ], "url": "http://www.w3.org/TR/xmlschema-2/#positiveNumber", "type": "number", "sqltype":"Number", "version":"1.0" }, "Email": { "comment": "A string which represents an email address (e.g. user@example.com)", "label": "Email", "properties": { "pattern":"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "patternMessage":"The value should be a valid email address." }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "AbsoluteURI": { "comment": "A string which represents an absolute URI address (e.g. https://www.example.com/help?article=1001)", "label": "AbsoluteURI", "properties": { "pattern":"^((https?|ftps?):\\/\\/)([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w .-]*)*\\/?$", "patternMessage":"The value should be a valid absolute URI (e.g. https://www.example.com/help?article=1001)." }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "RelativeURI": { "comment": "A string which represents a relative URI address (e.g. /help?article=1001)", "label": "RelativeURI", "properties": { "pattern":"^([\\/\\w .-]*)*\\/?$", "patternMessage":"The value should be a valid relative URI (e.g. /help?article=1001)." }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" }, "IP": { "comment": "A string which represents an IPv4 address (e.g. 127.0.0.1)", "label": "IP", "properties": { "pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", "patternMessage":"The value should be a valid IPv4 address (e.g. 127.0.0.1)." }, "supertypes": [ "Text" ], "type": "string", "sqltype":"Text", "version":"1.0" } }