metadatacenter / cedar-openview Goto Github PK
View Code? Open in Web Editor NEWFAIR Data Frontend
License: Other
FAIR Data Frontend
License: Other
Support editing of OpenView instances
Using the previously developed open artifact functionality, extend Open Server using the new standalone Metadata Editor in read-only mode to display templates and instances.
Figure out how to publish the Angular 7-based open frontend as an nmp package and add to release script.
Also needed for Docker deployment.
Produce Docker version of open frontend.
Is Angular 7 based so requires different approach than current editor frontend.
Related task for backend: metadatacenter/cedar-project#960
Requires #2]
Currently, the cedar-openview application pulls the cedar-metadata-form component from CEDAR's component server via an entry in its index.html file:
<script src="https://component.metadatacenter.orgx/cedar-form/cedar-form-2.4.4-SNAPSHOT.js" type="text/javascript"></script>
The cedar-metadata-form component is first built in the cedar-metadata-form repo and copied to the cedar-component-server repo as follows:
ng build --prod --output-hashing=none
cat dist/cedar-form/{runtime,polyfills,main}.js > custom-elements.js
cp custom-elements.js /Users/dwillrett/Development/git_repos/CEDAR/cedar-component-server/cedar-form/cedar-form-0.0.1.js
We would prefer a more automated process, where the cedar-metadata-form component is published as a library using NPM and imported by the cedar-openview application as a library. The release process would build these components and publish as usual via NPM.
We would also like a development-friendly approach that would allow changes in the component to be picked up by the cedar-openview application witthout going through the library build and reimportation cycle.
We have convenience endpoints to support retrieving the JSON representation of open resources. For templates, it's https://open.metadatacenter.org/templates/ and for instances it's https://open.metadatacenter.org/templates-instances/
So for example, if you have an OpenView template instance with the following URL:
The actual (non URL-encoded) ID of the template instance is:
https://repo.metadatacenter.org/template-instances/5a3d43cc-2b28-437d-bcc1-6a22e11ab281
You can use the https://open.metadatacenter.org/templates-instances/ endpoint followed by the (URL-encoded) ID to get the JSON-LD representation:
Perhaps a nicer convenience IRI would be:
https://open.metadatacenter.org/template-instances/5a3d43cc-2b28-437d-bcc1-6a22e11ab281
(Replace 'repo' with 'open'.)
Can possibly be done with Nginx URL rewriting.
This would also be a nice landing page for artifacts when requesting DataCite DOIs.
When modifying a template on CEDAR, if I change the "type" to be, for instance, the Dataset type from the SCHEMA ontology, and then I "populate" the template to get my JSON-LD output, I get this as my @type value: http://data.bioontology.org/ontologies/SCHEMA/classes/http%3A%2F%2Fschema.org%2FDataset, when the @type value should ideally be https://schema.org/dataset.
Without an API key, the http://data.bioontology.org/ontologies/SCHEMA/classes/http%3A%2F%2Fschema.org%2FDataset link does not resolve, so the JSON-LD output object is not technically valid.
Annotate the HTML wrapper of OpenView pages with Schema.org metadata.
May also need a page elsewhere that links to all OpenView pages so that search engines can find these pages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.