Skip to content

Commit 1f70299

Browse files
committed
Bundling linkml-model 1.7.0rc1
1 parent 6763067 commit 1f70299

File tree

26 files changed

+7801
-7535
lines changed

26 files changed

+7801
-7535
lines changed

linkml_runtime/linkml_model/annotations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Auto generated from annotations.yaml by pythongen.py version: 0.9.0
2-
# Generation date: 2023-09-01T13:21:10
1+
# Auto generated from annotations.yaml by pythongen.py version: 0.0.1
2+
# Generation date: 2024-01-29T16:05:46
33
# Schema: annotations
44
#
55
# id: https://w3id.org/linkml/annotations
@@ -49,7 +49,7 @@ class Annotatable(YAMLRoot):
4949
"""
5050
_inherited_slots: ClassVar[List[str]] = []
5151

52-
class_class_uri: ClassVar[URIRef] = LINKML.Annotatable
52+
class_class_uri: ClassVar[URIRef] = LINKML["Annotatable"]
5353
class_class_curie: ClassVar[str] = "linkml:Annotatable"
5454
class_name: ClassVar[str] = "annotatable"
5555
class_model_uri: ClassVar[URIRef] = LINKML.Annotatable
@@ -69,7 +69,7 @@ class Annotation(Extension):
6969
"""
7070
_inherited_slots: ClassVar[List[str]] = []
7171

72-
class_class_uri: ClassVar[URIRef] = LINKML.Annotation
72+
class_class_uri: ClassVar[URIRef] = LINKML["Annotation"]
7373
class_class_curie: ClassVar[str] = "linkml:Annotation"
7474
class_name: ClassVar[str] = "annotation"
7575
class_model_uri: ClassVar[URIRef] = LINKML.Annotation

linkml_runtime/linkml_model/array.py

Lines changed: 0 additions & 419 deletions
Large diffs are not rendered by default.

linkml_runtime/linkml_model/datasets.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Auto generated from datasets.yaml by pythongen.py version: 0.9.0
2-
# Generation date: 2023-09-01T13:21:13
1+
# Auto generated from datasets.yaml by pythongen.py version: 0.0.1
2+
# Generation date: 2024-01-29T16:05:52
33
# Schema: datasets
44
#
55
# id: https://w3id.org/linkml/datasets
@@ -30,7 +30,7 @@
3030
dataclasses._init_fn = dataclasses_init_fn_with_kwargs
3131

3232
# Namespaces
33-
BIBO = CurieNamespace('bibo', 'http://example.org/UNKNOWN/bibo/')
33+
BIBO = CurieNamespace('bibo', 'http://purl.org/ontology/bibo/')
3434
CSVW = CurieNamespace('csvw', 'http://www.w3.org/ns/csvw#')
3535
DATASETS = CurieNamespace('datasets', 'https://w3id.org/linkml/report')
3636
DCAT = CurieNamespace('dcat', 'http://www.w3.org/ns/dcat#')
@@ -39,7 +39,7 @@
3939
FRICTIONLESS = CurieNamespace('frictionless', 'https://specs.frictionlessdata.io/')
4040
LINKML = CurieNamespace('linkml', 'https://w3id.org/linkml/')
4141
MEDIATYPES = CurieNamespace('mediatypes', 'https://www.iana.org/assignments/media-types/')
42-
OSLC = CurieNamespace('oslc', 'http://example.org/UNKNOWN/oslc/')
42+
OSLC = CurieNamespace('oslc', 'http://open-services.net/ns/core#')
4343
OWL = CurieNamespace('owl', 'http://www.w3.org/2002/07/owl#')
4444
PAV = CurieNamespace('pav', 'http://purl.org/pav/')
4545
PROV = CurieNamespace('prov', 'http://www.w3.org/ns/prov#')
@@ -75,7 +75,7 @@ class Information(YAMLRoot):
7575
"""
7676
_inherited_slots: ClassVar[List[str]] = []
7777

78-
class_class_uri: ClassVar[URIRef] = DATASETS.Information
78+
class_class_uri: ClassVar[URIRef] = DATASETS["Information"]
7979
class_class_curie: ClassVar[str] = "datasets:Information"
8080
class_name: ClassVar[str] = "Information"
8181
class_model_uri: ClassVar[URIRef] = DATASETS.Information
@@ -172,7 +172,7 @@ class DataPackage(Information):
172172
"""
173173
_inherited_slots: ClassVar[List[str]] = []
174174

175-
class_class_uri: ClassVar[URIRef] = VOID.Dataset
175+
class_class_uri: ClassVar[URIRef] = VOID["Dataset"]
176176
class_class_curie: ClassVar[str] = "void:Dataset"
177177
class_name: ClassVar[str] = "DataPackage"
178178
class_model_uri: ClassVar[URIRef] = DATASETS.DataPackage
@@ -200,7 +200,7 @@ class DataResource(Information):
200200
"""
201201
_inherited_slots: ClassVar[List[str]] = []
202202

203-
class_class_uri: ClassVar[URIRef] = DCAT.Distribution
203+
class_class_uri: ClassVar[URIRef] = DCAT["Distribution"]
204204
class_class_curie: ClassVar[str] = "dcat:Distribution"
205205
class_name: ClassVar[str] = "DataResource"
206206
class_model_uri: ClassVar[URIRef] = DATASETS.DataResource
@@ -267,7 +267,7 @@ class FormatDialect(YAMLRoot):
267267
"""
268268
_inherited_slots: ClassVar[List[str]] = []
269269

270-
class_class_uri: ClassVar[URIRef] = DATASETS.FormatDialect
270+
class_class_uri: ClassVar[URIRef] = DATASETS["FormatDialect"]
271271
class_class_curie: ClassVar[str] = "datasets:FormatDialect"
272272
class_name: ClassVar[str] = "FormatDialect"
273273
class_model_uri: ClassVar[URIRef] = DATASETS.FormatDialect
@@ -328,22 +328,22 @@ class FormatEnum(EnumDefinitionImpl):
328328

329329
N3 = PermissibleValue(
330330
text="N3",
331-
meaning=FORMATS.N3)
331+
meaning=FORMATS["N3"])
332332
Microdata = PermissibleValue(
333333
text="Microdata",
334-
meaning=FORMATS.microdata)
334+
meaning=FORMATS["microdata"])
335335
POWDER = PermissibleValue(
336336
text="POWDER",
337-
meaning=FORMATS.POWDER)
337+
meaning=FORMATS["POWDER"])
338338
RDFa = PermissibleValue(
339339
text="RDFa",
340-
meaning=FORMATS.RDFa)
340+
meaning=FORMATS["RDFa"])
341341
Turtle = PermissibleValue(
342342
text="Turtle",
343-
meaning=FORMATS.Turtle)
343+
meaning=FORMATS["Turtle"])
344344
TriG = PermissibleValue(
345345
text="TriG",
346-
meaning=FORMATS.TriG)
346+
meaning=FORMATS["TriG"])
347347
YAML = PermissibleValue(text="YAML")
348348
JSON = PermissibleValue(text="JSON")
349349

@@ -368,19 +368,19 @@ def _addvals(cls):
368368
setattr(cls, "LD Patch",
369369
PermissibleValue(
370370
text="LD Patch",
371-
meaning=FORMATS.LD_Patch))
371+
meaning=FORMATS["LD_Patch"]))
372372
setattr(cls, "OWL XML Serialization",
373373
PermissibleValue(
374374
text="OWL XML Serialization",
375-
meaning=FORMATS.OWL_XML))
375+
meaning=FORMATS["OWL_XML"]))
376376
setattr(cls, "OWL Functional Syntax",
377377
PermissibleValue(
378378
text="OWL Functional Syntax",
379-
meaning=FORMATS.OWL_Functional))
379+
meaning=FORMATS["OWL_Functional"]))
380380
setattr(cls, "OWL Manchester Syntax",
381381
PermissibleValue(
382382
text="OWL Manchester Syntax",
383-
meaning=FORMATS.OWL_Manchester))
383+
meaning=FORMATS["OWL_Manchester"]))
384384
setattr(cls, "POWDER-S",
385385
PermissibleValue(
386386
text="POWDER-S",
@@ -396,31 +396,31 @@ def _addvals(cls):
396396
setattr(cls, "RDF/JSON",
397397
PermissibleValue(
398398
text="RDF/JSON",
399-
meaning=FORMATS.RDF_JSON))
399+
meaning=FORMATS["RDF_JSON"]))
400400
setattr(cls, "RDF/XML",
401401
PermissibleValue(
402402
text="RDF/XML",
403-
meaning=FORMATS.RDF_XML))
403+
meaning=FORMATS["RDF_XML"]))
404404
setattr(cls, "RIF XML Syntax",
405405
PermissibleValue(
406406
text="RIF XML Syntax",
407-
meaning=FORMATS.RIF_XML))
407+
meaning=FORMATS["RIF_XML"]))
408408
setattr(cls, "SPARQL Results in XML",
409409
PermissibleValue(
410410
text="SPARQL Results in XML",
411-
meaning=FORMATS.SPARQL_Results_XML))
411+
meaning=FORMATS["SPARQL_Results_XML"]))
412412
setattr(cls, "SPARQL Results in JSON",
413413
PermissibleValue(
414414
text="SPARQL Results in JSON",
415-
meaning=FORMATS.SPARQL_Results_JSON))
415+
meaning=FORMATS["SPARQL_Results_JSON"]))
416416
setattr(cls, "SPARQL Results in CSV",
417417
PermissibleValue(
418418
text="SPARQL Results in CSV",
419-
meaning=FORMATS.SPARQL_Results_CSV))
419+
meaning=FORMATS["SPARQL_Results_CSV"]))
420420
setattr(cls, "SPARQL Results in TSV",
421421
PermissibleValue(
422422
text="SPARQL Results in TSV",
423-
meaning=FORMATS.SPARQL_Results_TSV))
423+
meaning=FORMATS["SPARQL_Results_TSV"]))
424424

425425
# Slots
426426
class slots:
528 Bytes
Binary file not shown.

linkml_runtime/linkml_model/extensions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Auto generated from extensions.yaml by pythongen.py version: 0.9.0
2-
# Generation date: 2023-09-01T13:21:14
1+
# Auto generated from extensions.yaml by pythongen.py version: 0.0.1
2+
# Generation date: 2024-01-29T16:05:53
33
# Schema: extensions
44
#
55
# id: https://w3id.org/linkml/extensions
@@ -50,7 +50,7 @@ class Extension(YAMLRoot):
5050
"""
5151
_inherited_slots: ClassVar[List[str]] = []
5252

53-
class_class_uri: ClassVar[URIRef] = LINKML.Extension
53+
class_class_uri: ClassVar[URIRef] = LINKML["Extension"]
5454
class_class_curie: ClassVar[str] = "linkml:Extension"
5555
class_name: ClassVar[str] = "extension"
5656
class_model_uri: ClassVar[URIRef] = LINKML.Extension
@@ -77,7 +77,7 @@ class Extensible(YAMLRoot):
7777
"""
7878
_inherited_slots: ClassVar[List[str]] = []
7979

80-
class_class_uri: ClassVar[URIRef] = LINKML.Extensible
80+
class_class_uri: ClassVar[URIRef] = LINKML["Extensible"]
8181
class_class_curie: ClassVar[str] = "linkml:Extensible"
8282
class_name: ClassVar[str] = "extensible"
8383
class_model_uri: ClassVar[URIRef] = LINKML.Extensible

linkml_runtime/linkml_model/graphql/meta.graphql

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ type AnonymousSlotExpression implements SlotExpression
160160
recommended: Boolean
161161
inlined: Boolean
162162
inlinedAsList: Boolean
163-
minimumValue: Integer
164-
maximumValue: Integer
163+
minimumValue: Anything
164+
maximumValue: Anything
165165
pattern: String
166166
structuredPattern: PatternExpression
167167
unit: UnitOfMeasure
@@ -190,8 +190,8 @@ type AnonymousTypeExpression implements TypeExpression
190190
equalsString: String
191191
equalsStringIn: [String]
192192
equalsNumber: Integer
193-
minimumValue: Integer
194-
maximumValue: Integer
193+
minimumValue: Anything
194+
maximumValue: Anything
195195
noneOf: [AnonymousTypeExpression]
196196
exactlyOneOf: [AnonymousTypeExpression]
197197
anyOf: [AnonymousTypeExpression]
@@ -210,6 +210,7 @@ type ClassDefinition implements ClassExpression
210210
{
211211
name: String!
212212
idPrefixes: [Ncname]
213+
idPrefixesAreClosed: Boolean
213214
definitionUri: Uriorcurie
214215
localNames: [LocalName]
215216
conformsTo: String
@@ -378,6 +379,7 @@ interface Definition
378379
{
379380
name: String!
380381
idPrefixes: [Ncname]
382+
idPrefixesAreClosed: Boolean
381383
definitionUri: Uriorcurie
382384
localNames: [LocalName]
383385
conformsTo: String
@@ -431,6 +433,7 @@ type Element implements Extensible, Annotatable, CommonMetadata
431433
{
432434
name: String!
433435
idPrefixes: [Ncname]
436+
idPrefixesAreClosed: Boolean
434437
definitionUri: Uriorcurie
435438
localNames: [LocalName]
436439
conformsTo: String
@@ -477,6 +480,7 @@ type EnumDefinition implements EnumExpression
477480
{
478481
name: String!
479482
idPrefixes: [Ncname]
483+
idPrefixesAreClosed: Boolean
480484
definitionUri: Uriorcurie
481485
localNames: [LocalName]
482486
conformsTo: String
@@ -782,6 +786,7 @@ type ReachabilityQuery
782786
type SchemaDefinition
783787
{
784788
idPrefixes: [Ncname]
789+
idPrefixesAreClosed: Boolean
785790
definitionUri: Uriorcurie
786791
localNames: [LocalName]
787792
conformsTo: String
@@ -856,6 +861,7 @@ type SlotDefinition implements SlotExpression
856861
{
857862
name: String!
858863
idPrefixes: [Ncname]
864+
idPrefixesAreClosed: Boolean
859865
definitionUri: Uriorcurie
860866
localNames: [LocalName]
861867
conformsTo: String
@@ -947,8 +953,8 @@ type SlotDefinition implements SlotExpression
947953
recommended: Boolean
948954
inlined: Boolean
949955
inlinedAsList: Boolean
950-
minimumValue: Integer
951-
maximumValue: Integer
956+
minimumValue: Anything
957+
maximumValue: Anything
952958
pattern: String
953959
structuredPattern: PatternExpression
954960
unit: UnitOfMeasure
@@ -977,8 +983,8 @@ interface SlotExpression
977983
recommended: Boolean
978984
inlined: Boolean
979985
inlinedAsList: Boolean
980-
minimumValue: Integer
981-
maximumValue: Integer
986+
minimumValue: Anything
987+
maximumValue: Anything
982988
pattern: String
983989
structuredPattern: PatternExpression
984990
unit: UnitOfMeasure
@@ -1043,6 +1049,7 @@ type SubsetDefinition
10431049
{
10441050
name: String!
10451051
idPrefixes: [Ncname]
1052+
idPrefixesAreClosed: Boolean
10461053
definitionUri: Uriorcurie
10471054
localNames: [LocalName]
10481055
conformsTo: String
@@ -1089,6 +1096,7 @@ type TypeDefinition implements TypeExpression
10891096
{
10901097
name: String!
10911098
idPrefixes: [Ncname]
1099+
idPrefixesAreClosed: Boolean
10921100
definitionUri: Uriorcurie
10931101
localNames: [LocalName]
10941102
conformsTo: String
@@ -1141,8 +1149,8 @@ type TypeDefinition implements TypeExpression
11411149
equalsString: String
11421150
equalsStringIn: [String]
11431151
equalsNumber: Integer
1144-
minimumValue: Integer
1145-
maximumValue: Integer
1152+
minimumValue: Anything
1153+
maximumValue: Anything
11461154
noneOf: [AnonymousTypeExpression]
11471155
exactlyOneOf: [AnonymousTypeExpression]
11481156
anyOf: [AnonymousTypeExpression]
@@ -1158,8 +1166,8 @@ interface TypeExpression
11581166
equalsString: String
11591167
equalsStringIn: [String]
11601168
equalsNumber: Integer
1161-
minimumValue: Integer
1162-
maximumValue: Integer
1169+
minimumValue: Anything
1170+
maximumValue: Anything
11631171
noneOf: [AnonymousTypeExpression]
11641172
exactlyOneOf: [AnonymousTypeExpression]
11651173
anyOf: [AnonymousTypeExpression]

linkml_runtime/linkml_model/jsonld/meta.context.jsonld

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"comments": {
33
"description": "Auto generated by LinkML jsonld context generator",
4-
"generation_date": "2023-09-01T13:19:55",
4+
"generation_date": "2024-01-29T16:06:12",
55
"source": "meta.yaml"
66
},
77
"@context": {
@@ -11,6 +11,10 @@
1111
},
1212
"NCIT": "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",
1313
"OIO": "http://www.geneontology.org/formats/oboInOwl#",
14+
"SIO": {
15+
"@id": "http://semanticscience.org/resource/SIO_",
16+
"@prefix": true
17+
},
1418
"bibo": "http://purl.org/ontology/bibo/",
1519
"cdisc": "http://rdf.cdisc.org/mms#",
1620
"dcterms": "http://purl.org/dc/terms/",
@@ -227,6 +231,9 @@
227231
"id": {
228232
"@type": "@id"
229233
},
234+
"id_prefixes_are_closed": {
235+
"@type": "xsd:boolean"
236+
},
230237
"identifier": {
231238
"@type": "xsd:boolean"
232239
},
@@ -346,7 +353,7 @@
346353
"@type": "xsd:integer"
347354
},
348355
"maximum_value": {
349-
"@type": "xsd:integer"
356+
"@type": "@id"
350357
},
351358
"meaning": {
352359
"@type": "@id"
@@ -355,7 +362,7 @@
355362
"@type": "xsd:integer"
356363
},
357364
"minimum_value": {
358-
"@type": "xsd:integer"
365+
"@type": "@id"
359366
},
360367
"minus": {
361368
"@type": "@id"

0 commit comments

Comments
 (0)