Skip to content

Commit

Permalink
update url to iri icon
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Dec 8, 2023
1 parent 529d5e6 commit f80b51c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions docs/conventions/ontologies.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 1,
"id": "5461f257-da95-4b16-a6ee-193f4c4a2b25",
"metadata": {},
"outputs": [],
Expand All @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"id": "762de5c8-46a1-4dc1-8b42-c90fb9c6c919",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -61,7 +61,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 3,
"id": "6fa4a3fd-fd92-419d-8fb6-a0c43b6cbcf4",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -256,19 +256,19 @@
"\n",
" <ul style=\"list-style-type: none;\" class=\"h5grp-sections\">\n",
" <li>\n",
" <input id=\"group-ds--75960529258400\" type=\"checkbox\" checked>\n",
" <label style=\"font-weight: bold\" for=\"group-ds--75960529258400\">\n",
" <input id=\"group-ds--79771024876400\" type=\"checkbox\" checked>\n",
" <label style=\"font-weight: bold\" for=\"group-ds--79771024876400\">\n",
" /<span>(1)</span></label>\n",
" \n",
"\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">__h5rdmtoolbox_version__ : 0.13.0</li><li style=\"list-style-type: none; font-style: italic\">contact_person<a href=\"http://w3id.org/nfdi4ing/metadata4ing#ContactPerson\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a></li><li style=\"list-style-type: none; font-style: italic\">title : test file</li>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">__h5rdmtoolbox_version__ : 0.13.0</li><li style=\"list-style-type: none; font-style: italic\">contact_person<a href=\"http://w3id.org/nfdi4ing/metadata4ing#ContactPerson\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a></li><li style=\"list-style-type: none; font-style: italic\">title : test file</li>\n",
" </ul>\n",
"\n",
" <ul id=\"ds-1-/vel-75960530580100\" class=\"h5tb-var-list\">\n",
" <input id=\"ds-2-/vel-75960530583700\" class=\"h5tb-varname-in\" type=\"checkbox\" checked>\n",
" <label class='h5tb-varname' for=\"ds-2-/vel-75960530583700\">vel</label>\n",
" <ul id=\"ds-1-/vel-79771029154000\" class=\"h5tb-var-list\">\n",
" <input id=\"ds-2-/vel-79771029158700\" class=\"h5tb-varname-in\" type=\"checkbox\" checked>\n",
" <label class='h5tb-varname' for=\"ds-2-/vel-79771029158700\">vel</label>\n",
" <span class=\"h5tb-dims\">(3) [int32]</span>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">creator<a href=\"http://w3id.org/nfdi4ing/metadata4ing#DataCollector\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a><a href=\"http://w3id.org/nfdi4ing/metadata4ing#orcidId\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a></li><li style=\"list-style-type: none; font-style: italic\">long_name : my velocity dataset</li><li style=\"list-style-type: none; font-style: italic\">random_attr : 1</li><li style=\"list-style-type: none; font-style: italic\">units<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : m/s</li>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">creator<a href=\"http://w3id.org/nfdi4ing/metadata4ing#DataCollector\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a><a href=\"http://w3id.org/nfdi4ing/metadata4ing#orcidId\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a></li><li style=\"list-style-type: none; font-style: italic\">long_name : my velocity dataset</li><li style=\"list-style-type: none; font-style: italic\">random_attr : 1</li><li style=\"list-style-type: none; font-style: italic\">units<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : m/s</li>\n",
" </ul>\n",
" </ul>\n",
"</li>\n",
Expand Down Expand Up @@ -492,19 +492,19 @@
"\n",
" <ul style=\"list-style-type: none;\" class=\"h5grp-sections\">\n",
" <li>\n",
" <input id=\"group-ds--75502167402900\" type=\"checkbox\" checked>\n",
" <label style=\"font-weight: bold\" for=\"group-ds--75502167402900\">\n",
" <input id=\"group-ds--79771044823500\" type=\"checkbox\" checked>\n",
" <label style=\"font-weight: bold\" for=\"group-ds--79771044823500\">\n",
" /<span>(1)</span></label>\n",
" \n",
"\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">__h5rdmtoolbox_version__ : 0.13.0</li><li style=\"list-style-type: none; font-style: italic\">contact_person<a href=\"http://w3id.org/nfdi4ing/metadata4ing#ContactPerson\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a></li><li style=\"list-style-type: none; font-style: italic\">title : test file</li>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">__h5rdmtoolbox_version__ : 0.13.0</li><li style=\"list-style-type: none; font-style: italic\">contact_person<a href=\"http://w3id.org/nfdi4ing/metadata4ing#ContactPerson\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : <a href=\"https://orcid.org/0000-0001-8729-0482\"><img alt=\"ORCID logo\" src=\"https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png\" width=\"16\" height=\"16\" />https://orcid.org/0000-0001-8729-0482</a></li><li style=\"list-style-type: none; font-style: italic\">title : test file</li>\n",
" </ul>\n",
"\n",
" <ul id=\"ds-1-/vel-75502168540900\" class=\"h5tb-var-list\">\n",
" <input id=\"ds-2-/vel-75502168545200\" class=\"h5tb-varname-in\" type=\"checkbox\" checked>\n",
" <label class='h5tb-varname' for=\"ds-2-/vel-75502168545200\">vel</label>\n",
" <ul id=\"ds-1-/vel-79771045570500\" class=\"h5tb-var-list\">\n",
" <input id=\"ds-2-/vel-79771045573800\" class=\"h5tb-varname-in\" type=\"checkbox\" checked>\n",
" <label class='h5tb-varname' for=\"ds-2-/vel-79771045573800\">vel</label>\n",
" <span class=\"h5tb-dims\">(3) [int32]</span>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">long_name : my velocity dataset</li><li style=\"list-style-type: none; font-style: italic\">random_attr : 1</li><li style=\"list-style-type: none; font-style: italic\">units<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : m/s<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a></li>\n",
" <ul class=\"h5tb-attr-list\"><li style=\"list-style-type: none; font-style: italic\">long_name : my velocity dataset</li><li style=\"list-style-type: none; font-style: italic\">random_attr : 1</li><li style=\"list-style-type: none; font-style: italic\">units<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a> : m/s<a href=\"https://qudt.org/schema/qudt/Unit\"><img src=\"https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true\" alt=\" [IRI]\" width=\"16\" height=\"16\" /></a></li>\n",
" </ul>\n",
" </ul>\n",
"</li>\n",
Expand Down
2 changes: 1 addition & 1 deletion h5rdmtoolbox/_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def process_string_for_link(string: str) -> typing.Tuple[str, bool]:

def get_iri_icon_href(iri: str) -> str:
"""get html representation of an IRI with icon"""
return f'<a href="{iri}"><img src="https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev-PIDattr/h5rdmtoolbox/data/iri_icon.png?raw=true" alt=" [IRI]" width="16" height="16" /></a>'
return f'<a href="{iri}"><img src="https://github.com/matthiasprobst/h5RDMtoolbox/blob/dev/h5rdmtoolbox/data/iri_icon.png?raw=true" alt=" [IRI]" width="16" height="16" /></a>'


class _HDF5StructureRepr:
Expand Down

0 comments on commit f80b51c

Please sign in to comment.