Comments (5)
This looks like a good move, if I'm understanding correctly.
http://elife-converter.herokuapp.com/documents and
http://cdn.elifesciences.org/documents/elife/documents.json
are the same file content.
the _id
elements of each article are only expected to be unique within the context of eLife.
If this goes ahead, it would be handy to specify the default context / repository so we can just skip adding the elife/
portion of the URL on a bespoke installation of lens.
Specifying a JSON document by the url method could maybe put the data into an "anonymous" context.
Extra points if it could be configured with multiple contexts / repositories and was able to merge multiple document indexes into the same lens, as well as locate the individual article JSON files for each.
from lens.
The entities "organisims" "subjects" and "keywords" are very eLife
specific, so if we were to go down this route we should have the least
amount of information required as the base json node for the repository,
with the ability to add enhancements to the information that a repository
cover might display.
If we start to describe repositories and collections of articles we are
starting to enter into the library world where a lot - perhaps too much -
work has gone into trying to understand how to formalise and describe
things.
On Thu, Aug 8, 2013 at 8:14 PM, Michael Aufreiter
[email protected]:
I think it's time to introduce the concept of a content repository to
Lens. We're quite close already, since we have defined a simple index
format that just provides meta information about a set of articles along
with their urls.See: http://elife-converter.herokuapp.com/documents
However currently, one would need to configure Lens to be able to access a
different content repository.Lens.ENV = 'production';
// Can optionally be an array specifying a file extension (we need that for static deployment)
Lens.API_URL_PRODUCTION = ['http://cdn.elifesciences.org/documents/elife', '.js'];Lens.API_URL_DEV = 'http://elife-converter.herokuapp.com';It would be nicer to do that at runtime like so:
http://lens.li/#elife/00654 - for accessing an eLife article
http://lens.li/#plos-one/0048868 - for accessing a plos one article.
(btw. the lens.li domain is free... .li like "literature" ;)
The first part of the url is an alias for the content repo, which is
identified by a URL. In order to allow lens to display any document on the
fly, one could also provide a url to a lens document.E.g. if you wanted to display
http://plos-converter.herokuapp.com/documents/journal_pone_0047695you'd just have to provide the URI-encoded url
http://lens.li/#http%3A%2F%2Fplos-converter.herokuapp.com%2Fdocuments%2Fjournal_pone_0047695
Let's consider making repositories a first-class citizen and introduce the
Lens Library interface. A Library conforms to the JSON serialization format
we have right now.It has an index of article records. One record looks like this:
{
"_id": "00051",
"published_at": "2012-12-13",
"name": "Global divergence in critical income for adult and childhood survival: analyses of mortality using Michaelis–Menten",
"authors": [
"Hum",
"Jha",
"McGahan",
"Cheng"
],
"journal": "eLife",
"article-type": "Research Article",
"keywords": [
"enzyme kinetics",
"adult survival",
"child survival",
"income",
"HIV",
"smoking"
],
"organisms": [
"Human"
],
"subjects": [
"Human biology and medicine",
"Microbiology and infectious disease"
],
"url": "/documents/00051"
}Thoughts?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/40
.
from lens.
Those properties would not be enforced by the library interface. It's totally up to the user which metadata they want to put in. I'd like to keep things simple at first, the main purpose of this discussion is making Lens aware of multiple collections (aka make publishing to Lens really easy, without running your own instance). The faceted browsing part is not that important atm. We can keep using it for eLife as it is...
from lens.
All sorted out. Closing.
from lens.
As a side note... agreeing with @IanMulvany in that we shouldn't enter the library world "yet".
from lens.
Related Issues (20)
- Lens Browser? HOT 3
- Nested Lists with JATS/NLM tags (list and list-item) repeat data in Lens HOT 2
- Support for Video? HOT 2
- export modified JSON as XML HOT 6
- pdf reader powered by LENS HOT 2
- Figure tab not displaying HOT 8
- Internal server error HOT 4
- Incorporating Lens HOT 2
- 2.1.0 version release HOT 2
- Figures in the figure tab are not in order
- Test building Lens with Node version 8.x HOT 2
- error when loading in lens viewer HOT 1
- Can I render it outside the body? HOT 1
- eLife lens on angular 6
- Render a local file? HOT 1
- Lens repeats the superscript number markers for footnotes twice
- Doubled footnotes on Lens
- Problem loading only images (fig) HOT 4
- Displaying footnotes HOT 8
- Enable multilanguage articles with translations in `<sub-article>`s HOT 6
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 lens.