Abstract
Recently, the semantics of the JSON Schema format, a de-facto standard for JSON schema declarations, has been formalized. It turns out that JSON Schema is a surprisingly complex schema language based on an open document semantics. In this paper, we present a first empirical analysis of a curated collection of real-world JSON Schemas. Knowing what real JSON Schemas are like (to borrow from a title of a related study on DTDs) helps practitioners and researchers in making realistic assumptions when building tools for JSON Schema processing.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
- 2.
https://github.com/json-schema-org/JSON-Schema-Test-Suite, as of July 2019.
- 3.
- 4.
While there are daily updates to this collection, our analysis can be reproduced, as the site is managed on GitHub at https://github.com/SchemaStore/schemastore.
- 5.
The fact that not all files are available or can be processed matches the reports of earlier studies on XML and XML schema languages, e.g. [5].
- 6.
- 7.
https://github.com/everit-org/json-schema (Java), https://www.npmjs.com/package/ajv-cli (command-line), https://github.com/Julian/jsonschema (Python).
- 8.
https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/nodemon.json, currently in the version committed back in January 2019.
- 9.
https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/asmdef.jsonf, currently in the version committed back in July 2018.
- 10.
- 11.
- 12.
See https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/lsdlschema.json in the version of March 2018.
- 13.
- 14.
See footnote 16.
- 15.
- 16.
Google BigQuery allows for querying the GitHub open data collection, mostly non-forked projects with an open source license: https://cloud.google.com/bigquery/.
References
Baazizi, M.A., Colazzo, D., Ghelli, G., Sartiani, C.: Schemas and types for JSON data (Tutorial). In: Proceedings of EDBT (2019)
Bex, G.J., Neven, F., den Bussche, J.V.: DTDs versus XML schema: a practical study. In: Proceedings of WebDB 2004 (2004)
Bird, C., Menzies, T., Zimmermann, T.: The Art and Science of Analyzing Software Data, 1st edn. Morgan Kaufmann Publishers Inc., San Francisco (2015)
Bourhis, P., Reutter, J.L., Suárez, F., Vrgoč, D.: JSON: data model, query languages and Schema specification. In: Proceedings of PODS (2017)
Choi, B.: What are real DTDs like? In: WebDB (2002)
Kalliamvakou, E., Gousios, G., Blincoe, K., Singer, L., et al.: The promises and perils of mining GitHub. In: Proceedings of MSR (2014)
Laender, A.H., Moro, M.M., Nascimento, C., Martins, P.: An X-ray on web-available XML schemas. SIGMOD Rec. 38(1), 37–42 (2009)
Martens, W., Neven, F., Schwentick, T., Bex, G.J.: Expressiveness and complexity of XML schema. ACM Trans. Database Syst. 31(3), 770–813 (2006)
Palkar, S., Abuzaid, F., Bailis, P., Zaharia, M.: Filter before you parse: faster analytics on raw data with sparser. Proc. VLDB Endow. 11(11), 1576–1589 (2018)
Pezoa, F., Reutter, J.L., Suarez, F., Ugarte, M., Vrgoč, D.: Foundations of JSON schema. In: Proceedings of WWW (2016)
Sahuguet, A.: Everything you ever wanted to know about DTDs, but were afraid to ask. In: Proceedings of WebDB (2000)
Acknowledgements
This project was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), grant #385808805. We thank Mohamed-Amine Baazizi, Dario Colazzo, Giorgio Ghelli, and Carlo Sartiani for their comprehensive EDBT tutorial [1]. We thank Meike Klettke and Uta Störl for their feedback, and Sebastian Sidortschuck for computing statistics on the JSON Schema Test Suite.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Maiwald, B., Riedle, B., Scherzinger, S. (2019). What Are Real JSON Schemas Like?. In: Guizzardi, G., Gailly, F., Suzana Pitangueira Maciel, R. (eds) Advances in Conceptual Modeling. ER 2019. Lecture Notes in Computer Science(), vol 11787. Springer, Cham. https://doi.org/10.1007/978-3-030-34146-6_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-34146-6_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-34145-9
Online ISBN: 978-3-030-34146-6
eBook Packages: Computer ScienceComputer Science (R0)