You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that the previous site (based on the version from this archive), and that I've been informed by @nickerso that this is an ongoing problem that is being reported (e.g. #170) such that it should be addressed at some point, I've took a cursory look at the framework being used and found relevant documentation.
Given that the site is powered by wowchemy hugo plugin, I assume the netlify can be enabled such that the redirects may happen (as per documentation).
So if all that works as documented, the following redirect configuration should be used so that requests to the currently dead specification links (which has been undoubtedly used in past citations by various published works - hence this problem) be redirected to the intended version on identifiers.org:
Note the beginning of the file - there are specifications that do not seem to map to a corresponding specification as per that repository, so that's been left alone for now, but the rest should work. The above file was produced using this hacked together Python script:
frombs4importBeautifulSoupfromosimportlistdirimportrequestsspec_id_fix= {
'sbol-visual.version-2.0': 'sbol-visual.version-2.0.0',
'sbml.level-3.version-2.': 'sbml.level-3.version-2.core',
}
defnormlink(link):
spec_id=link.split('/', 2)[2].replace('/', '.')
returnspec_id_fix.get(spec_id, spec_id)
r=requests.get("http://old_co.mbine.org/standards/specifications")
soup=BeautifulSoup(r.content, features="lxml")
anchors=soup.select("div#content table td a.freelinking")
# prepared using:# git clone https://github.com/combine-org/combine-specificationsfiles=set(listdir("combine-specifications/specifications/"))
# not found in the github repomissing_spec= []
redirect_map= []
new_prefix='https://identifiers.org/combine.specifications:'maxlen=0foranchorinanchors:
link=anchor['href']
normalised=normlink(link)
ifnormalised+'.md'notinfiles:
missing_spec.append(anchor.text)
else:
maxlen=max(maxlen, len(link))
redirect_map.append((link, new_prefix+normalised))
print(f"""# This is a redirect file generated for the Netlify wowchemy plugin for# the co.mbine.org website. The following is a list of specifications# that do not have a corresponding new destination at the GitHub repo:#{chr(10).join('# %s'%targetfortargetinmissing_spec) }## The redirects follow{chr(10).join(orig.ljust(maxlen+4) +destfororig, destinredirect_map) }""")
Hopefully this gets far enough for whoever that has the ability to build/deploy the website to generate those redirects.
The text was updated successfully, but these errors were encountered:
Given that the previous site (based on the version from this archive), and that I've been informed by @nickerso that this is an ongoing problem that is being reported (e.g. #170) such that it should be addressed at some point, I've took a cursory look at the framework being used and found relevant documentation.
Given that the site is powered by wowchemy hugo plugin, I assume the netlify can be enabled such that the redirects may happen (as per documentation).
So if all that works as documented, the following redirect configuration should be used so that requests to the currently dead specification links (which has been undoubtedly used in past citations by various published works - hence this problem) be redirected to the intended version on identifiers.org:
Note the beginning of the file - there are specifications that do not seem to map to a corresponding specification as per that repository, so that's been left alone for now, but the rest should work. The above file was produced using this hacked together Python script:
Hopefully this gets far enough for whoever that has the ability to build/deploy the website to generate those redirects.
The text was updated successfully, but these errors were encountered: