Skip to main content

What Are Real JSON Schemas Like?

An Empirical Analysis of Structural Properties

  • Conference paper
  • First Online:
Advances in Conceptual Modeling (ER 2019)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 11787))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (Canada)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (Canada)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (Canada)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://github.com/json-schema-org.

  2. 2.

    https://github.com/json-schema-org/JSON-Schema-Test-Suite, as of July 2019.

  3. 3.

    www.schemastore.org/json.

  4. 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. 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. 6.

    https://github.com/miniHive/schemastore-analysis.

  7. 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. 8.

    https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/nodemon.json, currently in the version committed back in January 2019.

  9. 9.

    https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/asmdef.jsonf, currently in the version committed back in July 2018.

  10. 10.

    http://json.schemastore.org/avro-avsc.

  11. 11.

    http://json.schemastore.org/ansible-stable-2.5.

  12. 12.

    See https://github.com/SchemaStore/schemastore/commits/master/src/schemas/json/lsdlschema.json in the version of March 2018.

  13. 13.

    http://json.schemastore.org/jdt.

  14. 14.

    See footnote 16.

  15. 15.

    https://github.com/ebdrup/json-schema-benchmark/.

  16. 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

  1. Baazizi, M.A., Colazzo, D., Ghelli, G., Sartiani, C.: Schemas and types for JSON data (Tutorial). In: Proceedings of EDBT (2019)

    Google Scholar 

  2. Bex, G.J., Neven, F., den Bussche, J.V.: DTDs versus XML schema: a practical study. In: Proceedings of WebDB 2004 (2004)

    Google Scholar 

  3. Bird, C., Menzies, T., Zimmermann, T.: The Art and Science of Analyzing Software Data, 1st edn. Morgan Kaufmann Publishers Inc., San Francisco (2015)

    Google Scholar 

  4. Bourhis, P., Reutter, J.L., Suárez, F., Vrgoč, D.: JSON: data model, query languages and Schema specification. In: Proceedings of PODS (2017)

    Google Scholar 

  5. Choi, B.: What are real DTDs like? In: WebDB (2002)

    Google Scholar 

  6. Kalliamvakou, E., Gousios, G., Blincoe, K., Singer, L., et al.: The promises and perils of mining GitHub. In: Proceedings of MSR (2014)

    Google Scholar 

  7. 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)

    Article  Google Scholar 

  8. Martens, W., Neven, F., Schwentick, T., Bex, G.J.: Expressiveness and complexity of XML schema. ACM Trans. Database Syst. 31(3), 770–813 (2006)

    Article  Google Scholar 

  9. 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)

    Article  Google Scholar 

  10. Pezoa, F., Reutter, J.L., Suarez, F., Ugarte, M., Vrgoč, D.: Foundations of JSON schema. In: Proceedings of WWW (2016)

    Google Scholar 

  11. Sahuguet, A.: Everything you ever wanted to know about DTDs, but were afraid to ask. In: Proceedings of WebDB (2000)

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Stefanie Scherzinger .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics