Skip to content

Commit 0b132ae

Browse files
committed
fix regex
1 parent 99f4bdf commit 0b132ae

File tree

8 files changed

+1285
-1285
lines changed

8 files changed

+1285
-1285
lines changed
0 Bytes
Binary file not shown.

project/jsonld/opencloning_linkml.context.jsonld

Lines changed: 1 addition & 1 deletion
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": "2025-11-27T13:06:42",
4+
"generation_date": "2025-11-27T13:28:24",
55
"source": "opencloning_linkml.yaml"
66
},
77
"@context": {

project/jsonld/opencloning_linkml.jsonld

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@
20212021
"usage_slot_name": "repository_id",
20222022
"range": "string",
20232023
"required": true,
2024-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
2024+
"pattern": "^[^/]*\\/[^/]$",
20252025
"@type": "SlotDefinition"
20262026
},
20272027
{
@@ -2100,7 +2100,7 @@
21002100
"usage_slot_name": "repository_id",
21012101
"range": "string",
21022102
"required": true,
2103-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
2103+
"pattern": "^[^/]*\\/[^/]$",
21042104
"@type": "SlotDefinition"
21052105
},
21062106
{
@@ -3542,9 +3542,9 @@
35423542
],
35433543
"metamodel_version": "1.7.0",
35443544
"source_file": "opencloning_linkml.yaml",
3545-
"source_file_date": "2025-11-27T13:06:37",
3546-
"source_file_size": 26125,
3547-
"generation_date": "2025-11-27T13:06:42",
3545+
"source_file_date": "2025-11-27T13:26:30",
3546+
"source_file_size": 26121,
3547+
"generation_date": "2025-11-27T13:28:24",
35483548
"@type": "SchemaDefinition",
35493549
"@context": [
35503550
"project/jsonld/opencloning_linkml.context.jsonld",

project/jsonschema/opencloning_linkml.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@
18951895
},
18961896
"repository_id": {
18971897
"description": "Subpath of the sequence in the Open DNA collections repository",
1898-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
1898+
"pattern": "^[^/]*\\/[^/]$",
18991899
"type": "string"
19001900
},
19011901
"repository_name": {
@@ -2837,7 +2837,7 @@
28372837
},
28382838
"repository_id": {
28392839
"description": "The subpath of the plasmid in the SnapGene plasmid library. Requesting the plasmid is possible with https://www.snapgene.com/local/fetch.php?set={category_path}&plasmid={plasmid['subpath']} where category_path is the left part of the subpath before the first / and plasmid is the subpath after the /.",
2840-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
2840+
"pattern": "^[^/]*\\/[^/]$",
28412841
"type": "string"
28422842
},
28432843
"repository_name": {

project/owl/opencloning_linkml.owl.ttl

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

project/python/opencloning_linkml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Auto generated from opencloning_linkml.yaml by pythongen.py version: 0.0.1
2-
# Generation date: 2025-11-27T13:06:42
2+
# Generation date: 2025-11-27T13:28:24
33
# Schema: OpenCloning_LinkML
44
#
55
# id: https://opencloning.github.io/OpenCloning_LinkML
@@ -2991,7 +2991,7 @@ class slots:
29912991
model_uri=OPENCLONING_LINKML.SnapGenePlasmidSource_repository_id,
29922992
domain=SnapGenePlasmidSource,
29932993
range=str,
2994-
pattern=re.compile(r"^[^\\]*\\[^\\]$"),
2994+
pattern=re.compile(r"^[^/]*\/[^/]$"),
29952995
)
29962996

29972997
slots.EuroscarfSource_repository_id = Slot(
@@ -3030,7 +3030,7 @@ class slots:
30303030
model_uri=OPENCLONING_LINKML.OpenDNACollectionsSource_repository_id,
30313031
domain=OpenDNACollectionsSource,
30323032
range=str,
3033-
pattern=re.compile(r"^[^\\]*\\[^\\]$"),
3033+
pattern=re.compile(r"^[^/]*\/[^/]$"),
30343034
)
30353035

30363036
slots.RestrictionAndLigationSource_restriction_enzymes = Slot(

project/shacl/opencloning_linkml.shacl.ttl

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

src/opencloning_linkml/datamodel/_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ class SnapGenePlasmidSource(RepositoryIdSource):
15971597
"plasmid is the subpath after "
15981598
"the /.",
15991599
"name": "repository_id",
1600-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
1600+
"pattern": "^[^/]*\\/[^/]$",
16011601
}
16021602
},
16031603
}
@@ -1661,7 +1661,7 @@ class SnapGenePlasmidSource(RepositoryIdSource):
16611661

16621662
@field_validator("repository_id")
16631663
def pattern_repository_id(cls, v):
1664-
pattern = re.compile(r"^[^\\]*\\[^\\]$")
1664+
pattern = re.compile(r"^[^/]*\/[^/]$")
16651665
if isinstance(v, list):
16661666
for element in v:
16671667
if isinstance(element, str) and not pattern.match(element):
@@ -1886,7 +1886,7 @@ class OpenDNACollectionsSource(RepositoryIdSource):
18861886
"repository_id": {
18871887
"description": "Subpath of the sequence in " "the Open DNA collections " "repository",
18881888
"name": "repository_id",
1889-
"pattern": "^[^\\\\]*\\\\[^\\\\]$",
1889+
"pattern": "^[^/]*\\/[^/]$",
18901890
}
18911891
},
18921892
}
@@ -1981,7 +1981,7 @@ def pattern_sequence_file_url(cls, v):
19811981

19821982
@field_validator("repository_id")
19831983
def pattern_repository_id(cls, v):
1984-
pattern = re.compile(r"^[^\\]*\\[^\\]$")
1984+
pattern = re.compile(r"^[^/]*\/[^/]$")
19851985
if isinstance(v, list):
19861986
for element in v:
19871987
if isinstance(element, str) and not pattern.match(element):

0 commit comments

Comments
 (0)