Open turbomam opened 1 year ago
actions:
default_prefix
in all of the schema's YAML files to 'MIXS'The homepage for the MIxS autogenerated documentation can be reached through https://w3id.org/mixs or https://genomicsstandardsconsortium.github.io/mixs/
One can return to the home page by clicking the "person reading a book" button in the upper left, or the Reference link on most or all other pages
examples of reported broken links:
related problems:
depth
term doesn't appear at all, although soil_depth
does appear at the top.Might be able to solve the over-sized search index file by reading https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-search/
I have eliminated the use of the mixs.vocab prefix
If it's really important to restore it, I would ask someone else to
Note that I made edits directly to the YAML files in model/schema
, so they would be overwritten if anybody ran gsctools/mixs_converter.py
again. I presume it would be possible to edit that script to generate YAML files like those included in this PR, but I think finishing the scheasheets implementation is better investment, That will allow for declaring the prefixes and their expansions outside code.
Note: some of the broken example URLs above included the .md
extension. Did that ever work? It doesn't now, and that makes sense because .md
files aren't/never were being served.
https://genomicsstandardsconsortium.github.io/mixs/Soil/ is the correct path to learn about the MIxS Soil package/extension. When a user requests that page, the server knows to return the index.html page within that path, i.e. https://genomicsstandardsconsortium.github.io/mixs/Soil/index.html
@JKoehorst's
accurately points out that https://genomicsstandardsconsortium.github.io/mixs/terms/ChecklistClass does not resolve.
That's because there is no ChecklistClass
in the release model
ChecklistClass
is defined in the schemasheets branch but that's going to require some work before it can replace the current release. I can provide assistance with the technical implementation, but I don't think I should be making the judgement calls regarding things like
id
sid
s that point to multiple different classes@turbomam Thank you so much for providing such extensive background and explanations of this issue. I am very grateful.
I would like to suggest (and work on, with your help) a few changes regarding the namespace.
- @ramonawalls has suggested that 'gensc' was supposed to be part of the URLs, but it don't think that's ever true
The decision to include "gensc" in the namespace was decided over several discussions, and documented in issue #233. The reason to include it is that GSC has other projects besides MIxS (e.g., genomic observatories). Even though those projects aren't to the point of us publishing documentation for them yet, we want to allow for the possibility. The plan was for the MIxS namespace to be https://w3id.org/gensc/mixs/. I think that should be easy enough to do through w3id.
- 'terms' shouldn't be a part of the URL
Per issue #233, we had decided that all GSC terms, whether part of MIxS or not, would be under the same namespace. I am open to reconsidering this choice if it causes problems with using LinkML. We have no imminent plans to release any terms outside MIxS, so it should be fine to just put all mixs terms under the https://w3id.org/gensc/mixs/ namespace.
The homepage for the MIxS autogenerated documentation can be reached through https://w3id.org/mixs or https://genomicsstandardsconsortium.github.io/mixs/
This brings up another issue, which is the need to change our github organization name. GSC is spelled wrong (it should be "genomic" not "genomics". I have been unable to change it in the past, but I think I can get Volker to make the change. While we are changing it, I would like to suggest that we change the org name to "gensc" to be consistent with our website and easier to type. I will create a separate issue.
OK,I apologize for jumping to conclusions.
I can help with most of these tasks if technical requirements are written out.
@cmungall do prefer for these additional changes to be made before of after your upcoming presentations?
@ramonawalls' requests above are all doable, but have to be implemented in at least three places, all in coordination (and preferably with an understanding of the timing)
the name of the organization that "owns" the MIxS repo is GenomicsStandardsConsortium
what should the new GitHub org name be?
do we understand the potential costs of changing the org name?
gensc
is already registered, so we own the path https:/w3id.org/gensc, but that currently gives a "Internal Server Error" with Chrome on Ubuntu 22. Is it supposed to redirect to https://gensc.org/? The madewithlove htaccess tester says that it is being rewritten as https://gensc.org/w3id.org/gensc
the path https:/w3id.org/gensc/mixs/0000010, which presumably should redirect to to the geo_loc_name instead redirects to https://gensc.org/w3id.org/gensc/mixs/0000010
here are the current redirection rules:
Options +FollowSymLinks
RewriteEngine on
<!-- gensc/mixs ednpoint route -->
RewriteRule ^mixs$ https://genomicsstandardsconsortium.github.io/mixs/$1 [R=302,L]
<!-- TODO: gensc/terms endpoint -->
<!-- Rewrite Base URL -->
RewriteRule ^(.*)$ https://gensc.org/$1 [R=302,L]
I'm not great with htaccess, but I recommend these instead:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^gensc/mixs/(.*)$ https://genomicsstandardsconsortium.github.io/mixs/$1/ [R=301,L]
RewriteRule ^gensc(.*)$ https://gensc.org/$1 [R=301,L]
If we decided to go with the rewrite rules above, then the MIXS prefix should be expanded in LinkML as
prefixes:
MIXS: https://w3id.org/gensc/mixs/terms/
I have updated the owner/manager roles. Lynn
From: Mark A. Miller @.> Sent: Monday, February 13, 2023 10:35 AM To: GenomicsStandardsConsortium/mixs @.> Cc: genomicstandardsconsortium @.>; Mention @.> Subject: Re: [GenomicsStandardsConsortium/mixs] fix broken links for autogenerated documentation pages (Issue #530)
Org name
the name of the organization that "owns" the MIxS repo is GenomicsStandardsConsortium
what should the new GitHub org name be?
do we understand the potential costs of changing the org name?
w3id prefix and redirection rules
gensc is already registered, so we own the path https:/w3id.org/gensc, but that currently gives a "Internal Server Error" with Chrome on Ubuntu 22. Is it supposed to redirect to https://gensc.org/https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgensc.org%2F&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CTlwDIrZQ0jv0UO%2BZTxfwgC554%2BNPJaAnoh34YByC7E%3D&reserved=0? The madewithlove htaccess testerhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhtaccess.madewithlove.com%2F&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=y9922otRD%2FkpsFPu%2FvupQ3Sx3h4eeIEDJeSGKoEsLxg%3D&reserved=0 says that it is being rewritten as https://gensc.org/w3id.org/genschttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgensc.org%2Fw3id.org%2Fgensc&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aCit%2BQ2hFXMc6EQ22s036%2BpcPORa3H2dUnkB4DKccBs%3D&reserved=0
the path https:/w3id.org/gensc/mixs/0000010, which presumably should redirect to to the geo_loc_namehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgenomicsstandardsconsortium.github.io%2Fmixs%2F0000010%2F&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dZDNqaPLhrET5C9Ov5o7zoAdq8g64ZqJ%2FltwWq1jYjI%3D&reserved=0 instead redirects to https://gensc.org/w3id.org/gensc/mixs/0000010https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgensc.org%2Fw3id.org%2Fgensc%2Fmixs%2F0000010&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EQFBOj9Ce6MwdgZK%2FBuXWyO5uoks%2FmaEivCUXMaGt%2F8%3D&reserved=0
here are the redirection rules:
Options +FollowSymLinks RewriteEngine on
RewriteRule ^mixs$ https://genomicsstandardsconsortium.github.io/mixs/$1 [R=302,L]
RewriteRule ^(.*)$ https://gensc.org/$1 [R=302,L]
— Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGenomicsStandardsConsortium%2Fmixs%2Fissues%2F530%23issuecomment-1428151323&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306297529%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jk42OhoTO6AwysPjDKUHkKLenYfqb3XhXDNQPmMtr4s%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAG6AETZT5RQXO6IXYSLMSB3WXJID3ANCNFSM6AAAAAAUWZPXLM&data=05%7C01%7Clschriml%40som.umaryland.edu%7C91701c4b0a5c4e38aa4b08db0dd7ef24%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638118993306453766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p0G7lnULu7%2BthxJcAccScalltq%2FonGaEFVvokznxv0A%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
Thanks @Lynn. Can you say some more about your decision to remove @cmungall as an owner?
Hello Mark, yes, only GSC board members should be owners. Lynn
Background
Prefix/URL definitions in the schema
MIxS asserts it's own prefix as 'MIXS' in terms.yaml and provides the expansion of
https://w3id.org/mixs/terms/
w3id mixs namespace
The 'mixs' namespace has been reserved in the w3id system
RewriteRule
, https://genomicsstandardsconsortium.github.io/mixs, does not agree with the 'terms' part of the expanded default prefix, https://w3id.org/mixs/terms/Documentation build process overview:
generated/docs/index.md
uses LinkMLgen-doc
to convert the schema into Markdown pages. Those are saved locally in thegenerated/docs
path. They are not pushed to GitHub, so you won't see them in the web interface.generated/docs/introduction/%.md
is invoked whengenerated/docs/introduction/background.md
is requested. It copies some static Markdown files fromstatic_md/
intogenerated/docs/
mkdocs_html/index.html
uses mkdocs to convert the Markdown files to HTML. Those aren't pushed either.gh_docs
deploys the HTML files to GitHub pages.Syntax of schema documentation web site URLs
The path to the MIxS GitHub repo is https://github.com/GenomicsStandardsConsortium/mixs. The path to the GitHub pages site is https://genomicsstandardsconsortium.github.io/mixs/, as far as GitHub is concerned. GitHub isn't aware that we are using w3id redirection to map http://w3id.org/mixs to https://genomicsstandardsconsortium.github.io/mixs/.
When we mention our schema documentation website to the public, we should always use the shorter http://w3id.org/mixs URL.
mkdocs.yml asserts that the base URL of each autogenerated documentation pages should be the GitHub pages path mentioned above, https://genomicsstandardsconsortium.github.io/mixs/
Numerical term identifiers as used as the right-hand portion of each term page's URLs. Numerical identifiers haven't been assigned to the EnvironmentalPackages, Checklists and CombinationClasses in the current release, so those pages end in the textual name of those elements.
Numerical identifiers have been assigned to EnvironmentalPackages, Checklists and CombinationClasses in the schemasheets branch, but that branch still require work before it can become the next release.
Manually maintained URL assertions in the GitHub repo
The About section in the upper right of the MIxS repo's home page recommends this documentation link: https://genomicsstandardsconsortium.github.io/mixs/. That should probably be replaced with a w3id-based link.
See also MIxS issues labeled
w3id
anddocumentation
: