gfbio / bioschemas.org_interest_group

A repository for documents and files related the the bioschemas.org interest group within NFDI4Biodiversity
Mozilla Public License 2.0
3 stars 0 forks source link

Add ./DirectAccessURI and ./IconURI mapping #4

Open airnst opened 1 month ago

airnst commented 1 month ago

Description

While abcd:DirectAccessURI can be mapped to Dataset:distribution (type: DataDownload, abcd:IconURI can be mapped to Dataset:image (type: URL in case of included http, or schema:identifier of a schema:ImageObject in case of non-URL identifier). In addition, the example XML file must be extended by the respective information.

Files

XSLT file XML file

Open questions

  1. abcd:DirectAccessURI may refer to a website query form instead of a direct download, which would clash with the definition of Dataset:distribution. It should be discussed whether this case could cause subsequent problems.

Tasks

Solution

For abcd:DirectAccessURI, if the URL contains a file format (currently only ZIP), it is mapped to DataDownload:contentURL with additional information in DataDownload:encodingFormat. If not, the URL is simply assigned to DataDownload:url.

airnst commented 1 month ago

Concerning the open question: In case the link contains a file extension such as .zip, it can be used as schema:distribution value. The current implementation already contains this checking, but must be adapted so that no distribution is added if the link does not contain a format specification.

airnst commented 1 week ago

A solution has been added for the problem if icon URIs are not URLs. See ticket description.