Skip to main content

ProGS: Property Graph Shapes Language

  • Conference paper
  • First Online:
The Semantic Web – ISWC 2021 (ISWC 2021)

Abstract

Knowledge graphs such as Wikidata are created by a diversity of contributors and a range of sources leaving them prone to two types of errors. The first type of error, falsity of facts, is addressed by property graphs through the representation of provenance and validity, making triples occur as first-order objects in subject position of metadata triples. The second type of error, violation of domain constraints, has not been addressed with regard to property graphs so far. In RDF representations, this error can be addressed by shape languages such as SHACL or ShEx, which allow for checking whether graphs are valid with respect to a set of domain constraints. Borrowing ideas from the syntax and semantics definitions of SHACL, we design a shape language for property graphs, ProGS, which allows for formulating shape constraints on property graphs including their specific constructs, such as edges with identities and key-value annotations to both nodes and edges. We define a formal semantics of ProGS, investigate the resulting complexity of validating property graphs against sets of ProGS shapes, compare with corresponding results for SHACL, and implement a prototypical validator that utilizes answer set programming.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • 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

Notes

  1. 1.

    https://arxiv.org/abs/2107.05566.

  2. 2.

    https://potassco.org/clingo/.

  3. 3.

    https://neo4j.com/.

  4. 4.

    https://github.com/softlang/progs.

References

  1. Angles, R.: The property graph database model. In: Proceedings of International Workshop on Foundations of Data Management. CEUR, vol. 2100 (2018). http://ceur-ws.org/Vol-2100/paper26.pdf

  2. Angles, R., et al.: G-CORE: a core for future graph query languages. In: Proceedings of SIGMOD, pp. 1421–1432. ACM (2018). https://doi.org/10.1145/3183713.3190654

  3. Angles, R., Thakkar, H., Tomaszuk, D.: Mapping RDF databases to property graph databases. IEEE Access 8, 86091–86110 (2020). https://doi.org/10.1109/ACCESS.2020.2993117

    Article  Google Scholar 

  4. Apache: Gremlin Property Graph Model (2016). https://github.com/tinkerpop/blueprints/wiki/Property-Graph-Model

  5. Corman, J., Florenzano, F., Reutter, J.L., Savković, O.: Validating shacl constraints over a sparql endpoint. In: Ghidini, C., et al. (eds.) ISWC 2019. LNCS, vol. 11778, pp. 145–163. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-30793-6_9

    Chapter  Google Scholar 

  6. Corman, J., Reutter, J.L., Savković, O.: Semantics and validation of recursive SHACL. In: Vrandečić, D., et al. (eds.) ISWC 2018. LNCS, vol. 11136, pp. 318–336. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-00671-6_19

    Chapter  Google Scholar 

  7. Deutsch, A., Xu, Y., Wu, M., Lee, V.E.: TigerGraph: a native MPP graph database. CoRR abs/1901.08248 (2019)

    Google Scholar 

  8. Facebook: GraphQL Spec. (2018). https://graphql.github.io/graphql-spec/

  9. Francis, N., et al.: Cypher: an evolving query language for property graphs. In: Proceedings of SIGMOD, pp. 1433–1445. ACM (2018). https://doi.org/10.1145/3183713.3190657

  10. Hartig, O.: Rdf* and sparql*: an alternative approach to annotate statements in RDF. In: Proceedings of ISWC, Posters & Demonstrations and Industry Tracks. CEUR Workshop Proceedings, vol. 1963. CEUR-WS.org (2017). http://ceur-ws.org/Vol-1963/paper593.pdf

  11. Hartig, O., Hidders, J.: Defining schemas for property graphs by using the graphql schema definition language. In: GRADES/NDA@SIGMOD/PODS, pp. 6:1–6:11. ACM (2019). https://doi.org/10.1145/3327964.3328495

  12. ISO/IEC JTC1 SC32 WG3: GQL Standardization Project (2020). https://www.gqlstandards.org/

  13. Knublauch, H.: DASH Reification Support for SHACL (2021). http://datashapes.org/reification.html

  14. Neo4j: Neo4j Constraints (2020). https://neo4j.com/docs/cypher-manual/4.2/administration/constraints/

  15. Neosemantics: Neo4j Neosemantics Validation (2020). https://neo4j.com/labs/neosemantics/4.0/validation/

  16. openCypher: openCypher Project (2020). http://www.opencypher.org/

  17. Oracle: PGQL 1.3 Specification (2020). https://pgql-lang.org/spec/1.3/

  18. Seifer, P., Härtel, J., Leinberger, M., Lämmel, R., Staab, S.: Empirical study on the usage of graph query languages in open source Java projects. In: Proceedings of Software Language Engineering, pp. 152–166. ACM (2019). https://doi.org/10.1145/3357766.3359541

  19. Udrea, O., Recupero, D.R., Subrahmanian, V.S.: Annotated RDF. ACM Trans. Comput. Log. 11(2), 10:1–10:41 (2010). https://doi.org/10.1145/1656242.1656245

  20. Vrandecic, D., Krötzsch, M.: Wikidata: a free collaborative knowledgebase. Commun. ACM 57(10), 78–85 (2014). https://doi.org/10.1145/2629489

    Article  Google Scholar 

  21. W3C: RDF Concepts and Abstract Syntax (2014). https://www.w3.org/TR/rdf11-concepts/

  22. W3C: Shapes constraint language (SHACL) (2017). https://www.w3.org/TR/shacl/

  23. W3C: Shapes expressions language (ShEx) (2019). http://shex.io/shex-semantics/

  24. WESO: Shaclex (2021). https://github.com/weso/shaclex

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Philipp Seifer .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Seifer, P., Lämmel, R., Staab, S. (2021). ProGS: Property Graph Shapes Language. In: Hotho, A., et al. The Semantic Web – ISWC 2021. ISWC 2021. Lecture Notes in Computer Science(), vol 12922. Springer, Cham. https://doi.org/10.1007/978-3-030-88361-4_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-88361-4_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-88360-7

  • Online ISBN: 978-3-030-88361-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics