Skip to content

Instantly share code, notes, and snippets.

Created February 6, 2017 17:03
Show Gist options
  • Save anonymous/9b4a4307e6f189db5f156e0036e146a5 to your computer and use it in GitHub Desktop.
Save anonymous/9b4a4307e6f189db5f156e0036e146a5 to your computer and use it in GitHub Desktop.
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
{
"_schema": "ddi2 codebook",
"_title": "DDI2 IHSN template",
"_description": "Template for Survey data type based on DDI 2.5",
"type": "fieldset",
"htmlClass": "form_fieldset form-fieldset-toggle",
"title": "Document",
"onClick": "toggle()",
"items": [
"docDscr.idno",
"docDscr.titl"
]
},
{
"type": "fieldset",
"htmlClass": "form_fieldset form-fieldset-toggle",
"title": "Identification",
"onClick": "toggle()",
"items": [
{
"key":"stdyDscr.titl",
"copyValueTo": ["docDscr.titl"]
},
"stdyDscr.subTitl",
"stdyDscr.altTitl",
"stdyDscr.serStmt.serName",
{
"key": "stdyDscr.serStmt.serInfo",
"type": "textarea"
}
]
}, {
"type": "fieldset",
"title": "Version",
"htmlClass": "form_fieldset",
"items": [
"stdyDscr.verStmt.version",
"stdyDscr.verStmt.date",
{
"key": "stdyDscr.verStmt.notes",
"type": "textarea"
}
]
}, {
"type": "fieldset",
"title": "Overview",
"htmlClass": "form_fieldset",
"items": [
"stdyDscr.studyInfo.abstract",
"stdyDscr.studyInfo.dataKind",
"stdyDscr.studyInfo.anlyUnit"
]
}, {
"type": "fieldset",
"title": "Scope",
"htmlClass": "form_fieldset",
"items": [
"stdyDscr.studyInfo.notes"
]
}, {
"type": "fieldset",
"title": "Coverage",
"htmlClass": "form_fieldset",
"items": [{
"key": "stdyDscr.studyInfo.nation",
"type": "arrayedit",
"title": "Country"
},
"stdyDscr.geogCover",
"stdyDscr.universe"
]
}, {
"type": "fieldset",
"title": "Producers and Sponsors",
"htmlClass": "form_fieldset",
"items": [{
"key": "stdyDscr.authEnty",
"htmlClass": "form_array_field",
"type": "arrayedit"
}, {
"key": "stdyDscr.producer",
"htmlClass": "form_array_field",
"type": "arrayedit"
}, {
"key": "stdyDscr.fundAg",
"htmlClass": "form_array_field",
"type": "arrayedit"
}, {
"key": "stdyDscr.othId",
"htmlClass": "form_array_field",
"type": "arrayedit"
}]
},{
"type": "fieldset",
"title": "Sampling",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.method.sampProc",
"type":"textarea"
},
{
"key":"stdyDscr.method.deviat",
"type":"textarea"
},
{
"key":"stdyDscr.method.respRate",
"type":"textarea"
},
{
"key":"stdyDscr.method.weight",
"type":"textarea"
}
]
},{
"type": "fieldset",
"title": "Data Collection",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.studyInfo.collDate",
"type":"arrayedit"
},
{
"key":"stdyDscr.studyInfo.timePrd",
"type":"arrayedit"
},
{
"key":"stdyDscr.method.collMode",
"type":"select",
"titleMap": [
{ "value": "capi", "name": "Computer assisted personal interview" },
{ "value": "cati", "name": "Computer assisted telephone interview" },
{ "value": "f2f", "name": "Face-to-face" },
{ "value": "mail", "name": "Mail questionnaire" },
{ "value": "foc", "name": "Focus group" },
{ "value": "int", "name": "Internet" },
{ "value": "oth", "name": "Other" }
]
},
{
"key":"stdyDscr.method.collSitu",
"title":"Notes on data collection",
"type":"textarea"
},
{
"key":"stdyDscr.method.resInstru",
"title":"Questionnaires",
"type":"textarea"
},
{
"key":"stdyDscr.method.dataCollector",
"title":"Data collectors",
"type":"arrayedit"
},
{
"key":"stdyDscr.method.actMin",
"title":"Supervision",
"type":"textarea"
}
]
},{
"type": "fieldset",
"title": "Data Processing",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.method.cleanOps",
"type":"textarea"
},
{
"key":"stdyDscr.method.notes",
"type":"textarea"
}
]
},{
"type": "fieldset",
"title": "Data Appraisal",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.method.EstSmpErr",
"type":"textarea"
},
{
"key":"stdyDscr.method.dataAppr",
"type":"textarea"
}
]
},{
"type": "fieldset",
"title": "Data Access",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.dataAccess_useStmt.contact",
"type":"arrayedit",
"title":"Access Authority"
},
{
"key":"stdyDscr.dataAccess_useStmt.confDec",
"type":"textarea"
}
,
{
"key":"stdyDscr.dataAccess_useStmt.Conditions",
"type":"textarea"
}
,
{
"key":"stdyDscr.dataAccess_useStmt.citReq",
"type":"textarea"
}
]
},{
"type": "fieldset",
"title": "Disclaimer and Copyright",
"htmlClass": "form_fieldset",
"items": [
{
"key":"stdyDscr.dataAccess_useStmt.disclaimer",
"type":"textarea"
},
{
"key":"stdyDscr.copyright",
"type":"textarea"
}
]
}
]
{
"stdyDscr": {
"authEnty": [
{}
],
"sponsor": [
{}
],
"producer": [
{}
],
"fundAg": [
{}
],
"otherId": [
{}
],
"dataAccsContact": [
{}
],
"topics": [
{}
],
"timePrd": [
{}
],
"collDate": [
{}
],
"nation": [
{}
],
"dataCollector": [
{}
],
"othId": [
{}
],
"distStmt": {
"fundAg": [
{}
],
"c": [
{}
],
"con": [
{}
],
"conta": [
{}
],
"contac": [
{}
],
"contact": [
{}
],
"d": [
{}
],
"de": [
{}
],
"dep": [
{}
],
"depos": [
{}
],
"deposit": [
{}
],
"depositr": [
{}
]
},
"s": {
"contact": [
{}
],
"depositr": [
{}
]
},
"ser": {
"contact": [
{}
],
"depositr": [
{}
]
},
"serS": {
"contact": [
{}
],
"depositr": [
{}
]
},
"serSt": {
"contact": [
{}
],
"depositr": [
{}
]
},
"serStmt": {
"contact": [
{}
],
"depositr": [
{}
]
},
"holdings": [
{}
],
"studyInfo": {
"keywords": [
{}
],
"t": [
{}
],
"topc": [
{}
],
"topcCla": [
{}
],
"topcClass": [
{}
],
"topcClas": [
{}
],
"timePrd": [
{}
],
"collDate": [
{}
],
"nation": [
{}
],
"extent": {
"geographicBoundingBox": [
{}
]
},
"g": {
"geographicBoundingBox": [
{}
]
},
"geoB": {
"geographicBoundingBox": [
{}
]
},
"geoBndBox": {
"geographicBoundingBox": [
{}
]
},
"boundPoly": [
{}
]
},
"m": {
"geoBndBox": [
{}
],
"boundPoly": [
{}
]
},
"method": {
"geoBndBox": [
{}
],
"boundPoly": [
{}
],
"d": [
{}
],
"data": [
{}
],
"dataCollec": [
{}
],
"dataCollector": [
{}
]
},
"useStmt": {
"contact": [
{}
]
}
},
"dataFiles": {
"fileDscr": [
{}
]
},
"variables": {
"variable": [
{
"catgry": [
{}
]
}
]
},
"resources": {
"resource": [
{}
]
},
"stdDscr": {
"authEnty": [
{}
],
"othId": [
{}
],
"producer": [
{}
],
"fundAg": [
{}
],
"holdings": [
{}
],
"distStmt": {
"contact": [
{}
],
"depositr": [
{}
]
}
},
"Dscr": {
"authEnty": [
{}
],
"othId": [
{}
],
"producer": [
{}
],
"fundAg": [
{}
],
"holdings": [
{}
],
"distStmt": {
"contact": [
{}
],
"depositr": [
{}
]
}
},
"doDscr": {
"authEnty": [
{}
],
"othId": [
{}
],
"producer": [
{}
],
"fundAg": [
{}
],
"holdings": [
{}
],
"distStmt": {
"contact": [
{}
],
"depositr": [
{}
]
}
},
"docDscr": {
"authEnty": [
{}
],
"othId": [
{}
],
"producer": [
{}
],
"fundAg": [
{}
],
"holdings": [
{}
],
"distStmt": {
"contact": [
{}
],
"depositr": [
{}
]
}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Survey Microdata Schema [DRAFT]",
"description": "Schema for Survey data type based on DDI 2.5",
"type": "object",
"properties": {
"docDscr": {
"type": "object",
"description": "Study Description",
"properties": {
"titl": {
"type": "string",
"title": "Title",
"description": "Title"
},
"subTitl": {
"type": "string",
"title": "Subtitle",
"description": "Subtitle"
},
"altTitl": {
"type": "string",
"title": "Alternative title"
},
"parTitl": {
"title": "Parallel Title",
"type": "string"
},
"idno": {
"title": "Unique Identifier",
"type": "string"
},
"authEnty": {
"type": "array",
"title": "Primary Investigators",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Agency name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
}
}
},
"required": [
"name"
]
},
"othId": {
"type": "array",
"title": "Other Identifications /Acknowledgments",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
}
}
},
"required": [
"name"
]
},
"producer": {
"type": "array",
"title": "Producers",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
},
"affiliation": {
"type": "string",
"title": "Affiliation"
}
}
},
"required": [
"name"
]
},
"copyright": {
"title": "Copyrights",
"type": "string"
},
"prodDate": {
"title": "Date of Production",
"type": "string"
},
"prodPlac": {
"title": "Place of production",
"type": "string"
},
"software": {
"title": "Software used in production",
"type": "string"
},
"fundAg": {
"type": "array",
"title": "Funding agency/sponsor",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
}
}
},
"required": [
"name",
"role"
]
},
"grantNo": {
"title": "Grant number",
"type": "string"
},
"distStmt": {
"type": "object",
"title": "Distributor Statement",
"properties": {
"contact": {
"type": "array",
"description": "Contact",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"email": {
"title": "Email",
"type": "string"
}
}
},
"required": [
"name"
]
},
"depositr": {
"type": "array",
"description": "Depositor",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
}
}
},
"required": [
"name"
]
},
"depDate": {
"title": "Date of deposit",
"type": "string"
},
"distDate": {
"title": "Date of distribution",
"type": "string"
}
}
},
"serStmt": {
"type": "object",
"title": "Series Statement",
"properties": {
"serName": {
"title": "Series name",
"type": "string"
},
"serInfo": {
"title": "Series information",
"type": "string"
}
}
},
"verStmt": {
"type": "object",
"title": "Version Statement",
"properties": {
"version": {
"title": "Version",
"type": "string"
},
"date": {
"title": "Version date",
"type": "string"
},
"verResp": {
"title": "Version responsibility statement",
"type": "string"
},
"notes": {
"title": "Version notes",
"type": "string"
}
}
},
"biblCit": {
"type": "string",
"title": "Bibliographic Citation"
},
"holdings": {
"type": "array",
"description": "Holdings information",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"location": {
"title": "Location",
"type": "string"
},
"callno": {
"title": "Callno",
"type": "string"
},
"uri": {
"title": "URI",
"type": "string"
}
}
},
"required": [
"name"
]
}
}
},
"stdyDscr": {
"type": "object",
"description": "Study Description",
"properties": {
"titl": {
"type": "string",
"title": "Title",
"description": "Title"
},
"subTitl": {
"type": "string",
"title": "Subtitle",
"description": "Subtitle"
},
"altTitl": {
"type": "string",
"title": "Alternative title"
},
"parTitl": {
"title": "Parallel Title",
"type": "string"
},
"idno": {
"title": "Unique Identifier",
"type": "string"
},
"authEnty": {
"type": "array",
"title": "Primary Investigators",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Agency name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
}
}
},
"required": [
"name"
]
},
"othId": {
"type": "array",
"description": "Other Identifications /Acknowledgments",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
}
}
},
"required": [
"name"
]
},
"producer": {
"type": "array",
"description": "Producers",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
},
"affiliation": {
"type": "string",
"title": "Affiliation"
}
}
},
"required": [
"name"
]
},
"copyright": {
"title": "Copyrights",
"type": "string"
},
"prodDate": {
"title": "Date of Production",
"type": "string"
},
"prodPlac": {
"title": "Place of production",
"type": "string"
},
"software": {
"title": "Software used in production",
"type": "string"
},
"fundAg": {
"type": "array",
"description": "Funding agency/sponsor",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
}
}
},
"required": [
"name",
"role"
]
},
"grantNo": {
"title": "Grant number",
"type": "string"
},
"distStmt": {
"type": "object",
"title": "Distributor Statement",
"properties": {
"contact": {
"type": "array",
"description": "Contact",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"email": {
"title": "Email",
"type": "string"
}
}
},
"required": [
"name"
]
},
"depositr": {
"type": "array",
"description": "Depositor",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
}
}
},
"required": [
"name"
]
},
"depDate": {
"title": "Date of deposit",
"type": "string"
},
"distDate": {
"title": "Date of distribution",
"type": "string"
}
}
},
"serStmt": {
"type": "object",
"title": "Series Statement",
"properties": {
"serName": {
"title": "Series name",
"type": "string"
},
"serInfo": {
"title": "Series information",
"type": "string"
}
}
},
"verStmt": {
"type": "object",
"title": "Version Statement",
"properties": {
"version": {
"title": "Version",
"type": "string"
},
"verResp": {
"title": "Version responsibility statement",
"type": "string"
},
"notes": {
"title": "Version notes",
"type": "string"
}
}
},
"biblCit": {
"type": "string",
"title": "Bibliographic Citation"
},
"holdings": {
"type": "array",
"description": "Holdings information",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"location": {
"title": "Location",
"type": "string"
},
"callno": {
"title": "Callno",
"type": "string"
},
"uri": {
"title": "URI",
"type": "string"
}
}
},
"required": [
"name"
]
},
"studyInfo": {
"type": "object",
"title": "Study scope",
"properties": {
"keywords": {
"type": "array",
"description": "Keywords",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Keyword",
"type": "string"
}
}
}
},
"topcClas": {
"type": "array",
"description": "Topic classification",
"items": {
"type": "object",
"properties": {
"topic": {
"title": "Topic",
"type": "string"
},
"vocab": {
"title": "Vocab",
"type": "string"
},
"vocabURI": {
"title": "VocabURI",
"type": "string"
}
}
}
},
"abstract": {
"title": "Abstract",
"type": "string"
},
"timePrd": {
"type": "array",
"description": "Time periods (YYYY/MM/DD)",
"items": {
"type": "object",
"properties": {
"date": {
"title": "Date",
"type": "string"
},
"event": {
"title": "Event",
"type": "string"
},
"cycle": {
"title": "Cycle",
"type": "string"
}
}
},
"required": [
"date"
]
},
"collDate": {
"type": "array",
"description": "Dates of data collection (YYYY/MM/DD)",
"items": {
"type": "object",
"properties": {
"date": {
"title": "Date",
"type": "string"
},
"event": {
"title": "Event",
"type": "string"
},
"cycle": {
"title": "Cycle",
"type": "string"
}
}
},
"required": [
"date"
]
},
"nation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbreviation": {
"title": "Abbreviation",
"type": "string"
}
}
},
"required": [
"name"
]
},
"geogCover": {
"description": "Geographic coverage",
"type": "string"
},
"geogUnit": {
"description": "Geographic coverage",
"type": "string"
},
"geoBndBox": {
"title": "Geographic bounding box",
"type": "array",
"items": {
"type": "object",
"properties": {
"west": {
"title": "West",
"type": "string"
},
"east": {
"title": "East",
"type": "string"
},
"south": {
"title": "South",
"type": "string"
},
"north": {
"title": "North",
"type": "string"
}
}
}
},
"boundPoly": {
"title": "Geographic bounding polygon",
"type": "array",
"items": {
"type": "object",
"properties": {
"gringLat": {
"title": "Latitude",
"type": "string"
},
"gringLon": {
"title": "Longitude",
"type": "string"
}
}
}
},
"anlyUnit": {
"title": "Unit of analysis",
"type": "string"
},
"universe": {
"title": "Universe",
"type": "string"
},
"dataKind": {
"title": "Kind of data",
"type": "string"
},
"notes": {
"title": "Study notes",
"type": "string"
}
}
},
"method": {
"type": "object",
"title": "Methodology and Processing",
"properties": {
"timeMeth": {
"description": "Time method",
"type": "string"
},
"dataCollector": {
"title": "Data collector",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"abbr": {
"title": "Abbreviation",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
}
}
}
},
"frequenc": {
"title": "Frequency of data collection",
"type": "string"
},
"sampProc": {
"title": "Sampling Procedure",
"type": "string"
},
"deviat": {
"title": "Major Deviations from the Sample Design",
"type": "string"
},
"collMode": {
"title": "Mode of Data Collection",
"type": "string"
},
"resInstru": {
"title": "Type of Research Instrument",
"type": "string",
"description": "The type of data collection instrument used. \"Structured\" indicates an instrument in which all respondents are asked the same questions/tests, possibly with precoded answers. If a small portion of such a questionnaire includes open-ended questions, provide appropriate comments. \"Semi-structured\" indicates that the research instrument contains mainly open-ended questions. \"Unstructured\" indicates that in-depth interviews were conducted. "
},
"dataSrc": {
"title": "Data sources",
"type": "string"
},
"srcOrig": {
"title": "Origins of Sources",
"type": "string"
},
"srcChar": {
"title": "Characteristics of Source Noted",
"type": "string"
},
"srcDocu": {
"title": "Documentation and Access to Sources",
"type": "string"
},
"collSitu": {
"title": "Characteristics of Data Collection Situation",
"type": "string"
},
"actMin": {
"title": "Actions to Minimize Losses",
"type": "string"
},
"ConOps": {
"title": "Control Operations",
"type": "string"
},
"weight": {
"title": "Weighting",
"type": "string"
},
"cleanOps": {
"title": "Cleaning Operations",
"type": "string"
},
"notes": {
"title": "Notes",
"type": "string"
},
"respRate": {
"title": "Response Rate",
"type": "string"
},
"EstSmpErr": {
"title": "Estimates of Sampling Error",
"type": "string"
},
"dataAppr": {
"title": "Other Forms of Data Appraisal",
"type": "string"
},
"stdyClas": {
"title": "Class of the Study",
"type": "string"
}
}
},
"dataAccess": {
"type": "object",
"title": "Methodology and Processing",
"properties": {
"accsPlac": {
"title": "Location of Data Collection",
"type": "string"
},
"origArch": {
"title": "Archive Where Study Originally Stored",
"type": "string"
},
"avlStatus": {
"title": "Availability Status",
"type": "string"
},
"collSize": {
"title": "Extent of Collection",
"type": "string"
},
"complete": {
"title": "Completeness of Study Stored",
"type": "string"
},
"fileQnty": {
"title": "Number of Files",
"type": "string"
}
}
},
"dataAccess_useStmt": {
"type": "object",
"title": "Use Statement",
"properties": {
"confDec": {
"title": "Confidentiality Declaration",
"type": "string"
},
"specPerm ": {
"title": "Special Permissions",
"type": "string"
},
"restrctn": {
"title": "Restrictions",
"type": "string"
},
"contact": {
"type": "array",
"title": "Data access contact",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"affiliation": {
"title": "Affiliation",
"type": "string"
},
"email": {
"title": "Email",
"type": "string"
}
}
},
"required": [
"name"
]
},
"citReq": {
"title": "Citation Requirement",
"type": "string"
},
"deposReq": {
"title": "Deposit Requirement",
"type": "string"
},
"Conditions": {
"title": "Conditions",
"type": "string"
},
"disclaimer": {
"title": "Disclaimer",
"type": "string"
}
}
}
}
},
"fileDscr": {
"description": "todo",
"type": "string"
},
"variables": {
"description": "todo",
"type": "string"
},
"otehrMat": {
"description": "todo",
"type": "string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment