core.xref¶
Cross references to database entries.
A cross reference points at one database entry for a term, e.g., the ChEBI web
page for CHEBI:33699. RDFAnnotationData creates one cross reference per
provider registered for a collection in the identifiers.org registry.
CrossReference
dataclass
¶
A database cross reference.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
name of the resource, e.g., |
accession |
str
|
term in the resource, e.g., |
url |
str
|
url of the entry in the resource |
is_url
¶
Check if a string is a valid http(s) or ftp url.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
string to check |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the string is a valid url. |