Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified project/excel/opencloning_linkml.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion project/graphql/opencloning_linkml.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ type SEVASource
databaseId: Integer
input: [SourceInput]
repositoryName: RepositoryName!
sequenceFileUrl: String!
sequenceFileUrl: String
repositoryId: String!
}

Expand Down
2 changes: 1 addition & 1 deletion project/jsonld/opencloning_linkml.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2025-11-17T18:53:28",
"generation_date": "2025-11-26T10:36:02",
"source": "opencloning_linkml.yaml"
},
"@context": {
Expand Down
7 changes: 3 additions & 4 deletions project/jsonld/opencloning_linkml.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,6 @@
"is_usage_slot": true,
"usage_slot_name": "sequence_file_url",
"range": "string",
"required": true,
"pattern": "^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)$",
"@type": "SlotDefinition"
},
Expand Down Expand Up @@ -3542,9 +3541,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "opencloning_linkml.yaml",
"source_file_date": "2025-11-17T18:34:01",
"source_file_size": 26051,
"generation_date": "2025-11-17T18:53:29",
"source_file_date": "2025-11-26T10:35:56",
"source_file_size": 26028,
"generation_date": "2025-11-26T10:36:03",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/opencloning_linkml.context.jsonld",
Expand Down
6 changes: 4 additions & 2 deletions project/jsonschema/opencloning_linkml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,10 @@
"sequence_file_url": {
"description": "The URL of the sequence file, which can refer to a a gb file hosted on the SEVA website or an entry in the NCBI.",
"pattern": "^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)$",
"type": "string"
"type": [
"string",
"null"
]
},
"type": {
"description": "Designates the class",
Expand All @@ -2635,7 +2638,6 @@
}
},
"required": [
"sequence_file_url",
"repository_id",
"repository_name",
"id"
Expand Down
934 changes: 467 additions & 467 deletions project/owl/opencloning_linkml.owl.ttl

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions project/python/opencloning_linkml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto generated from opencloning_linkml.yaml by pythongen.py version: 0.0.1
# Generation date: 2025-11-17T18:53:30
# Generation date: 2025-11-26T10:36:04
# Schema: OpenCloning_LinkML
#
# id: https://opencloning.github.io/OpenCloning_LinkML
Expand Down Expand Up @@ -908,25 +908,23 @@ class SEVASource(RepositoryIdSource):

id: Union[int, SEVASourceId] = None
repository_name: Union[str, "RepositoryName"] = None
sequence_file_url: str = None
repository_id: str = None
sequence_file_url: Optional[str] = None

def __post_init__(self, *_: str, **kwargs: Any):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, SEVASourceId):
self.id = SEVASourceId(self.id)

if self._is_empty(self.sequence_file_url):
self.MissingRequiredField("sequence_file_url")
if not isinstance(self.sequence_file_url, str):
self.sequence_file_url = str(self.sequence_file_url)

if self._is_empty(self.repository_id):
self.MissingRequiredField("repository_id")
if not isinstance(self.repository_id, str):
self.repository_id = str(self.repository_id)

if self.sequence_file_url is not None and not isinstance(self.sequence_file_url, str):
self.sequence_file_url = str(self.sequence_file_url)

super().__post_init__(**kwargs)
self.type = str(self.class_name)

Expand Down Expand Up @@ -2970,7 +2968,7 @@ class slots:
curie=OPENCLONING_LINKML.curie("sequence_file_url"),
model_uri=OPENCLONING_LINKML.SEVASource_sequence_file_url,
domain=SEVASource,
range=str,
range=Optional[str],
pattern=re.compile(
r"^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$"
),
Expand Down
1,621 changes: 810 additions & 811 deletions project/shacl/opencloning_linkml.shacl.ttl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion project/shex/opencloning_linkml.shex
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ linkml:Sparqlpath xsd:string
<SEVASource> CLOSED {
( $<SEVASource_tes> ( &<RepositoryIdSource_tes> ;
rdf:type [ <RepositoryIdSource> ] ? ;
<sequence_file_url> @linkml:String ;
<sequence_file_url> @linkml:String ? ;
<repository_id> @linkml:String
) ;
rdf:type [ <SEVASource> ]
Expand Down
2 changes: 1 addition & 1 deletion project/sqlschema/opencloning_linkml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ CREATE TABLE "WekWikGeneIdSource" (
PRIMARY KEY (id)
);
CREATE TABLE "SEVASource" (
sequence_file_url TEXT NOT NULL,
sequence_file_url TEXT,
repository_id TEXT NOT NULL,
repository_name VARCHAR(20) NOT NULL,
type TEXT,
Expand Down
5 changes: 2 additions & 3 deletions src/opencloning_linkml/datamodel/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,14 +1382,13 @@ class SEVASource(RepositoryIdSource):
"the SEVA website or an "
"entry in the NCBI.",
"name": "sequence_file_url",
"required": True,
},
},
}
)

sequence_file_url: str = Field(
default=...,
sequence_file_url: Optional[str] = Field(
default=None,
description="""The URL of the sequence file, which can refer to a a gb file hosted on the SEVA website or an entry in the NCBI.""",
json_schema_extra={
"linkml_meta": {
Expand Down
1 change: 0 additions & 1 deletion src/opencloning_linkml/schema/opencloning_linkml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ classes:
description: >-
The URL of the sequence file, which can refer to a a gb file hosted on the SEVA website or an
entry in the NCBI.
required: true

BenchlingUrlSource:
is_a: RepositoryIdSource
Expand Down