Created
January 20, 2011 22:59
-
-
Save lxbarth/788883 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is a variation of stateDataMeta, closer to JSON Schema spec and using JSON Ref. | |
*/ | |
var stateDataMetaRef = { | |
'type': 'object', | |
'id': 'stateDataMetaRef', | |
'properties': { | |
'stateDataSchema': { // Not sure whether data source is the best name here. | |
'extends': {'$ref': 'stateDataSchema'}, | |
'required': true | |
}, | |
'title': 'State data', | |
'postcode': { | |
'type': 'scalar', // Does this make sense in the context of JSON Schema? | |
'title': 'State code', | |
'extends': {'$ref': '#stateDataSchema.postcode'}, | |
}, | |
'ppexpend_series': { | |
'type': 'series', | |
'granularity': 'year', | |
'title': 'Per Pupil Expenditure', | |
'source': 'National Center for Education Statistics, Common Core of Data, School Year 2005-2006, 2006-2007, 2007-2008 (http://nces.ed.gov/ccd/)', | |
'description': 'Statewide per-pupil expenditure equals the total amount of revenue paid out by school systems in the state divided by total school enrollment. It includes funds from federal, state, and local sources and funds spent on day to day operating expenses, such as teacher salaries. It does not include capital expenses, such as school construction.', | |
'extends': { | |
'2008': {'$ref': '#stateDataSchema.ppexpend08'}, | |
'2007': {'$ref': '#stateDataSchema.ppexpend07'}, | |
'2006': {'$ref': '#stateDataSchema.ppexpend06'}, | |
'2004': {'$ref': '#stateDataSchema.ppexpend04'}, | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment