|
| 1 | +{ |
| 2 | + "@context": { |
| 3 | + "schema": "http://schema.org/", |
| 4 | + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", |
| 5 | + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", |
| 6 | + "bioschemasdrafts": "https://discovery.biothings.io/view/DefinedTerm/", |
| 7 | + "owl": "http://www.w3.org/2002/07/owl/" |
| 8 | + }, |
| 9 | + "@graph": [ |
| 10 | + { |
| 11 | + "@id": "bioschemasdrafts:DefinedTerm", |
| 12 | + "@type": "rdfs:Class", |
| 13 | + "rdfs:comment": "A word, name, acronym, phrase, etc. with a formal definition. Use the name property for the term being defined, use termCode if the term has an alpha-numeric code allocated, use description to provide the definition of the term. This Bioschemas profile specifically helps reusing terms from terminology and ontology services. Version 0.2-DRAFT. <h3>Summary of Changes</h3> Changes since v0.1 <ul>Include DefinedTermSet profile as expected type for the 'inDefinedTermSet' property.</li></ul>", |
| 14 | + "rdfs:label": "DefinedTerm", |
| 15 | + "rdfs:subClassOf": { |
| 16 | + "@id": "schema:DefinedTerm" |
| 17 | + }, |
| 18 | + "$validation": { |
| 19 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 20 | + "type": "object", |
| 21 | + "properties": { |
| 22 | + "termCode": { |
| 23 | + "description": "A code that identifies this DefinedTerm within a DefinedTermSet", |
| 24 | + "type": "string", |
| 25 | + "owl:cardinality": "one" |
| 26 | + }, |
| 27 | + "inDefinedTermSet": { |
| 28 | + "description": "A DefinedTermSet that contains this term.", |
| 29 | + "$ref": "#/definitions/definedtermset", |
| 30 | + "owl:cardinality": "one" |
| 31 | + }, |
| 32 | + "description": { |
| 33 | + "description": "A description of the item.", |
| 34 | + "type": "string", |
| 35 | + "owl:cardinality": "one" |
| 36 | + }, |
| 37 | + "identifier": { |
| 38 | + "description": "The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.\n ", |
| 39 | + "type": "string", |
| 40 | + "owl:cardinality": "one" |
| 41 | + }, |
| 42 | + "name": { |
| 43 | + "description": "The name of the item.", |
| 44 | + "type": "string", |
| 45 | + "owl:cardinality": "one" |
| 46 | + }, |
| 47 | + "sameAs": { |
| 48 | + "description": "URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.", |
| 49 | + "owl:cardinality": "many" |
| 50 | + }, |
| 51 | + "url": { |
| 52 | + "description": "URL of the item.", |
| 53 | + "oneOf": [ |
| 54 | + { |
| 55 | + "type": "string", |
| 56 | + "format": "uri" |
| 57 | + }, |
| 58 | + { |
| 59 | + "type": "array", |
| 60 | + "items": { |
| 61 | + "type": "string", |
| 62 | + "format": "uri" |
| 63 | + } |
| 64 | + } |
| 65 | + ], |
| 66 | + "owl:cardinality": "many" |
| 67 | + } |
| 68 | + }, |
| 69 | + "required": [ |
| 70 | + "inDefinedTermSet" |
| 71 | + ], |
| 72 | + "recommended": [ |
| 73 | + "termCode", |
| 74 | + "sameAs", |
| 75 | + "name" |
| 76 | + ], |
| 77 | + "optional": [ |
| 78 | + "description" |
| 79 | + ], |
| 80 | + "definitions": { |
| 81 | + "definedtermset": { |
| 82 | + "@type": "DefinedTermSet", |
| 83 | + "type": "object", |
| 84 | + "properties": { |
| 85 | + "url": { |
| 86 | + "type": "string", |
| 87 | + "format": "uri" |
| 88 | + }, |
| 89 | + "name": { |
| 90 | + "type": "string" |
| 91 | + }, |
| 92 | + "license": { |
| 93 | + "type": "string" |
| 94 | + }, |
| 95 | + "version": { |
| 96 | + "type": "string" |
| 97 | + } |
| 98 | + }, |
| 99 | + "required": ["url"] |
| 100 | + } |
| 101 | + } |
| 102 | + }, |
| 103 | + "schemaVersion": [ |
| 104 | + "https://schema.org/docs/releases.html#v23.0" |
| 105 | + ] |
| 106 | + } |
| 107 | + ] |
| 108 | +} |
0 commit comments