Comments (7)
Perhaps just a stylesheet?
Tim,
Sent from my iPhone (which makes terrible auto-correct spelling mistakes)
On 5 Nov 2014, at 17:35, Peter Desmet [email protected] wrote:
Move code to GitHub (#16)
Create a single normative RDF document (including current terms and history)
Develop a Python(?) script to generate the HTML term page(s) from the normative document. The pages are: http://rs.tdwg.org/dwc/terms/index.htm and http://rs.tdwg.org/dwc/terms/history/index.htm (and maybe others).
Generate document and see if it provides the same functionality as the current page
Test by making a change to the normative document and see if the page creates correctly. The script should throw relevant error messages.
Document how to use the script (including requirements).
—
Reply to this email directly or view it on GitHub.
from dwc.
I definitely want a stylesheet, but I'm not sure I understand you completely: do you think the rdf document + stylesheet would be enough to render it in a browser? I know nothing about RDF.
from dwc.
It should be enough to render part of some pages, with the rest of the page
wrapped around it. There are two pages that need this kind of automated
rendering from the RDF:
http://rs.tdwg.org/dwc/terms/index.htm
http://rs.tdwg.org/dwc/terms/history/index.htm
On Wed, Nov 5, 2014 at 8:30 PM, Peter Desmet [email protected]
wrote:
I definitely want a stylesheet, but I'm not sure I understand you
completely: do you think the rdf document + stylesheet would be enough to
render it in a browser? I know nothing about RDF. [image:😊 ]—
Reply to this email directly or view it on GitHub
#17 (comment).
from dwc.
we could use an XSLT as it is XML based rdf, but honestly I found that harder to read, maintain and Im not convinced it works fine on all browsers. A simple example are the IPT extensions which reference an XSLT for rendering: http://rs.gbif.org/core/dwc_occurrence.xml
I would go for a python script that uses an html template for rendering
from dwc.
Fair enough - was just a suggestion.
There are some fairly mature static site generators now, which might be worth considering (e.g. they let you do common headers, footers, menus, static pages in MD syntax, and then plug in bits like a transformation of RDF-XML -> HTML). I haven't been involved in the design discussions, so I don't know how much of github TDWG plan to use (e.g. relying on the built in readme.MD transformations) versus just hosting of HTML on pages.github.io . If it is the later, a simple SSG might help, as you're likely to grow your own anyway (e.g. stitching in common headers and basic scaffolding stuff).
Disclosure: I've tinkered with SSGs, but not extensively so can't actually point at a preferred one. I'd like to explore assemble.io at some point though, and it looks like a good framework and build pipeline. No RDF->HTML support, but supports handlebar templating so I'd expect a simple template and grunt transformation would be very clean solution.
from dwc.
FYI, I've listed some SSGs that could be useful in the documentation repository: https://github.com/tdwg/dwc-documentation/issues/3. My preference would go to something simple and not reinventing the wheel.
from dwc.
A new https://github.com/tdwg/dwc/tree/dwc_cleanup/build folder was created that contains artifacts like yaml files, a cheetah template and the main update_terms.py script. That script now generates the terms/index.html file and all resource files (former downloads). See #68
The term version history is not maintained any longer as an RDF file and will be manually curated as the final html
from dwc.
Related Issues (20)
- Change term - earliestEpochOrLowestSeries
- Change term - earliestEraOrLowestErathem
- Change term - earliestGeochronologicalEra
- Change term - earliestPeriodOrLowestSystem
- Change term - formation
- Change term - group
- Change term - highestBiostratigraphicZone
- Change term - latestAgeOrHighestStage
- Change term - latestEonOrHighestEonothem
- Change term - latestEpochOrHighestSeries
- Change term - latestEraOrHighestErathem
- Change term - latestGeochronologicalEra
- Change term - latestPeriodOrHighestSystem
- Change term - lowestBiostratigraphicZone
- Change term - member
- Explain "dwc:" in preamble to Quick Reference Guide HOT 1
- Make Release 2023-06-28 HOT 4
- Change term - superfamily HOT 1
- Write script to produce Darwin Core extensions for GBIF HOT 2
- Term provenance broken? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwc.