Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Mar 16, 2023
1 parent 88feeac commit 687ce81
Show file tree
Hide file tree
Showing 6 changed files with 9,088 additions and 1,609 deletions.
6 changes: 5 additions & 1 deletion linkml_model/jsonld/meta.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"_comments": "Auto generated from meta.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2023-03-13T17:15:09\n Schema: meta\n metamodel version: 1.7.0\n model version: 2.0.0\n \n id: https://w3id.org/linkml/meta\n description: The metamodel for schemas defined using the Linked Data Modeling Language framework.\n\nFor more information on LinkML:\n\n* [linkml.io](https://linkml.io) main website\n* [specification](https://w3id.org/linkml/docs/specification/)\n\nLinkML is self-describing. Every LinkML schema consists of elements\nthat instantiate classes in this metamodel.\n\nCore metaclasses:\n\n* [SchemaDefinition](https://w3id.org/linkml/SchemaDefinition)\n* [ClassDefinition](https://w3id.org/linkml/ClassDefinition)\n* [SlotDefinition](https://w3id.org/linkml/SlotDefinition)\n* [TypeDefinition](https://w3id.org/linkml/TypeDefinition)\n\nThere are many subsets of *profiles* of the metamodel, for different purposes:\n\n* [MinimalSubset](https://w3id.org/linkml/MinimalSubset)\n* [BasicSubset](https://w3id.org/linkml/BasicSubset)\n* [BasicSubset](https://w3id.org/linkml/BasicSubset)\n\nFor canonical reference documentation on any metamodel construct,\nrefer to the official URI for each construct, e.g.\n[https://w3id.org/linkml/is_a](https://w3id.org/linkml/is_a)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-03-15T19:39:54",
"source": "meta.yaml"
},
"@context": {
"IAO": {
"@id": "http://purl.obolibrary.org/obo/IAO_",
Expand Down
7,328 changes: 7,327 additions & 1 deletion linkml_model/jsonschema/meta.schema.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions linkml_model/meta.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto generated from meta.yaml by pythongen.py version: 0.9.0
# Generation date: 2023-03-13T17:15:40
# Generation date: 2023-03-15T19:40:24
# Schema: meta
#
# id: https://w3id.org/linkml/meta
Expand Down Expand Up @@ -479,7 +479,7 @@ class SchemaDefinition(Element):
prefixes: Optional[Union[Dict[Union[str, PrefixPrefixPrefix], Union[dict, "Prefix"]], List[Union[dict, "Prefix"]]]] = empty_dict()
emit_prefixes: Optional[Union[Union[str, NCName], List[Union[str, NCName]]]] = empty_list()
default_curi_maps: Optional[Union[str, List[str]]] = empty_list()
default_prefix: Optional[str] = None
default_prefix: Optional[str] = "linkml"
default_range: Optional[Union[str, TypeDefinitionName]] = None
subsets: Optional[Union[Dict[Union[str, SubsetDefinitionName], Union[dict, "SubsetDefinition"]], List[Union[dict, "SubsetDefinition"]]]] = empty_dict()
types: Optional[Union[Dict[Union[str, TypeDefinitionName], Union[dict, "TypeDefinition"]], List[Union[dict, "TypeDefinition"]]]] = empty_dict()
Expand All @@ -497,8 +497,6 @@ class SchemaDefinition(Element):
keywords: Optional[Union[str, List[str]]] = empty_list()

def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self.default_prefix is None:
self.default_prefix = sfx(str(self.id))
if self._is_empty(self.name):
self.MissingRequiredField("name")
if not isinstance(self.name, SchemaDefinitionName):
Expand Down
Loading

0 comments on commit 687ce81

Please sign in to comment.