smithsonian / edan-schemas Goto Github PK
View Code? Open in Web Editor NEWJSON schemas for EDAN
JSON schemas for EDAN
After issue #6
Discuss w/team- consistency with other definitions and content types
Update schemas as necessary
Outside of this repo:
Update existing records to conform
Modify 3DSI modules to use new schemas
Re-validate records
Note tool/s that work for referenced schema files/schemas.
3D content types:
3d_article
3d_model
3d_snapshot
3d_tour
We need a base path for our URNs/IDs, it should be a "safe" namespace that wouldn't collide with a potential EDAN application or API. One option would be /schemastore or maybe something like /STUFF where STUFF is something awesome.
http://edan.si.edu/STUFF/schemas
See:
http://some.site.somewhere/entry-schema#
http://json-schema.org/latest/json-schema-core.html#rfc.section.8.2
in online_media, where we currently have this:
"$ref": "media-element.json#/edanMediaElement"
we should instead have this:
"$ref": "media-element.json#/definitions/edanMediaElement"
and in something like si-unit, we are re-using our "efs" like this:
"$ref": "field-object.json#/fieldObject"
but it should be like:
"$ref": "definitions/field-object.json#/definitions/fieldObject"
See this example below. We should relabel /atoms to /definitions to avoid overlap with "atom" in the context of atomic content in the EDAN repo.
http://json-schema.org/example2.html
{
"id": "http://some.site.somewhere/entry-schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "schema for an fstab entry",
"type": "object",
"required": [ "storage" ],
"properties": {
"storage": {
"type": "object",
"oneOf": [
{ "$ref": "#/definitions/diskDevice" },
{ "$ref": "#/definitions/diskUUID" },
{ "$ref": "#/definitions/nfs" },
{ "$ref": "#/definitions/tmpfs" }
]
}
},
"definitions": {
"diskDevice": {},
"diskUUID": {},
"nfs": {},
"tmpfs": {}
}
}
JSON file, and content within EDAN <- careful, need to work with si.edu on templates.
Also: "unit" records should supersede si-unit data eventually- again, requires collaboration with si.edu team.
There are a few types:
should we allow users to input undisclosed fields into their content?
After issue #5:
Validate existing data conforms
(need to check w/PD) Delete test recs (QUOTIENTPROD)
Can these be merged? What records are using eresource.json? I think it's the "original" type LASSB defined but was renamed to ecr.json by OCIO.
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.