Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider a Stylesheet to translate EML <-> Google Structured Data Dataset? #274

Open
cboettig opened this issue Jul 17, 2017 · 4 comments
Open

Comments

@cboettig
Copy link
Member

That is, https://developers.google.com/search/docs/data-types/datasets , which is basically http://schema.org/Dataset with some required fields.

Suggesting this mostly as a trial balloon to see what people think; my impression is that if this data were embedded into the metacat webpage for such a dataset (are those actually crawled by Google and returned in search results anyway or do you have to access those pages only by DOI or from the metacat search interface?) that it would (maybe one day) increase their discoverability / placement in Google searches, but maybe that's all nonsense, I dunno.

@mobb
Copy link
Contributor

mobb commented Jul 17, 2017 via email

@mbjones
Copy link
Member

mbjones commented Jul 17, 2017

We've done more than talk about it -- I also implemented a prototype that inserted schema.org tags into the rendered HTML. The problem was that we moved primarily to a single page app for our display, which doesn't load at page load time, but rather afterwards during the JS execution phase. So, for most schema.org parsers, they didn't see them because they don't execute javascript. There are some elaborate ways to get around this, but we haven't dove in yet. This is more of a MetacatUI issue than an EML issue, so probably better to discuss it there (https://github.com/NCEAS/metacatui/issues), (and see our historical issue here: https://projects.ecoinformatics.org/ecoinfo/issues/6032).

@cboettig
Copy link
Member Author

Very cool. Does that mean you have an XSLT stylesheet for this mapping already that you could share? If so, I think that would also be useful to drop into things like emldown.

(Also, opened a new issue in metacatui, as linked above, so feel free to close this one out)

@mbjones
Copy link
Member

mbjones commented Jul 25, 2017

No XSLT -- this was done as a prototype by using JS to inject the DOM changes after the XSLT produced the HTML document. I'll have to poke around to find it. The limiting factor was that most clients that don't execute the JS from metacatui also don't see any of the tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants