{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,21]],"date-time":"2026-07-21T14:41:10Z","timestamp":1784644870214,"version":"3.55.0"},"reference-count":52,"publisher":"SAGE Publications","license":[{"start":{"date-parts":[[2024,8,23]],"date-time":"2024-08-23T00:00:00Z","timestamp":1724371200000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SW"],"published-print":{"date-parts":[[2024,8,23]]},"abstract":"<jats:p>In this paper, we delve into the crucial role of constraints in maintaining data integrity in knowledge graphs with a specific focus on Wikidata, one of the most extensive collaboratively maintained open data knowledge graphs on the Web. The World Wide Web Consortium (W3C) recommends the Shapes Constraint Language (SHACL) as the constraint language for validating Knowledge Graphs, which comes in two different levels of expressivity, SHACL-Core, as well as SHACL-SPARQL. Despite the availability of SHACL, Wikidata currently represents its property constraints through its own RDF data model, which relies on Wikidata\u2019s specific reification mechanism based on authoritative namespaces, and\u00a0\u2013 partially ambiguous\u00a0\u2013 natural language definitions. In the present paper, we investigate whether and how the semantics of Wikidata property constraints, can be formalized using SHACL-Core, SHACL-SPARQL, as well as directly as SPARQL queries. While the expressivity of SHACL-Core turns out to be insufficient for expressing all Wikidata property constraint types, we present SPARQL queries to identify violations for all 32 current Wikidata constraint types. We compare the semantics of this unambiguous SPARQL formalization with Wikidata\u2019s violation reporting system and discuss limitations in terms of evaluation via Wikidata\u2019s public SPARQL query endpoint, due to its current scalability. Our study, on the one hand, sheds light on the unique characteristics of constraints defined by the Wikidata community, in order to improve the quality and accuracy of data in this collaborative knowledge graph. On the other hand, as a \u201cbyproduct\u201d, our formalization extends existing benchmarks for both SHACL and SPARQL with a challenging, large-scale real-world use case.<\/jats:p>","DOI":"10.3233\/sw-243611","type":"journal-article","created":{"date-parts":[[2024,8,23]],"date-time":"2024-08-23T11:36:48Z","timestamp":1724413008000},"page":"1-48","source":"Crossref","is-referenced-by-count":7,"title":["Formalizing and validating Wikidata\u2019s property constraints using SHACL and SPARQL"],"prefix":"10.1177","author":[{"given":"Nicolas","family":"Ferranti","sequence":"first","affiliation":[{"name":"Department of Information Systems and Operations Management, Vienna University of Economics and Business, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jairo Francisco","family":"De Souza","sequence":"additional","affiliation":[{"name":"Department of Computer Science, Federal University of Juiz de Fora, Brazil"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shqiponja","family":"Ahmetaj","sequence":"additional","affiliation":[{"name":"Vienna University of Technology, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Axel","family":"Polleres","sequence":"additional","affiliation":[{"name":"Department of Information Systems and Operations Management, Vienna University of Economics and Business, Austria"},{"name":"Complexity Science Hub Vienna, Austria"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"179","reference":[{"key":"10.3233\/SW-243611_ref1","doi-asserted-by":"publisher","DOI":"10.1145\/3297280.3297509"},{"key":"10.3233\/SW-243611_ref2","unstructured":"S.\u00a0Abiteboul, P.\u00a0Buneman and D.\u00a0Suciu, Data on the Web: From Relations to Semistructured Data and XML, Morgan Kaufmann, 1999. ISBN 1-55860-622-X."},{"key":"10.3233\/SW-243611_ref3","unstructured":"S.\u00a0Abiteboul, R.\u00a0Hull and V.\u00a0Vianu, Foundations of Databases, Addison-Wesley, 1995, http:\/\/webdam.inria.fr\/Alice\/. ISBN 0-201-53771-0."},{"key":"10.3233\/SW-243611_ref4","doi-asserted-by":"publisher","DOI":"10.24963\/KR.2021\/2"},{"key":"10.3233\/SW-243611_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-19433-7_22"},{"key":"10.3233\/SW-243611_ref6","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-19433-7_41"},{"key":"10.3233\/SW-243611_ref7","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457561"},{"key":"10.3233\/SW-243611_ref8","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-88564-1_8"},{"key":"10.3233\/SW-243611_ref9","doi-asserted-by":"crossref","unstructured":"F.\u00a0Baader, I.\u00a0Horrocks, C.\u00a0Lutz and U.\u00a0Sattler, An Introduction to Description Logic, Cambridge University Press, 2017. ISBN 978-0-521-69542-8.","DOI":"10.1017\/9781139025355"},{"key":"10.3233\/SW-243611_ref11","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-11964-9_37"},{"key":"10.3233\/SW-243611_ref12","unstructured":"I.\u00a0Boneva, J.\u00a0Dusart, D.\u00a0Fern\u00e1ndez-\u00c1lvarez and J.E.L.\u00a0Gayo, Shape designer for ShEx and SHACL constraints, in: Proceedings of the ISWC 2019 Satellite Tracks (Posters & Demonstrations, Industry, and Outrageous Ideas) Co-Located with 18th International Semantic Web Conference (ISWC 2019), Auckland, New Zealand, October 26\u201330, 2019, CEUR Workshop Proceedings, Vol.\u00a02456, CEUR-WS.org, 2019, pp.\u00a0269\u2013272, https:\/\/ceur-ws.org\/Vol-2456\/paper70.pdf."},{"key":"10.3233\/SW-243611_ref13","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-68288-4_7"},{"key":"10.3233\/SW-243611_ref14","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-33223-5_37"},{"key":"10.3233\/SW-243611_ref16","unstructured":"D.\u00a0Calvanese, G.D.\u00a0Giacomo, D.\u00a0Lembo, M.\u00a0Lenzerini and R.\u00a0Rosati, Path-based identification constraints in description logics, in: Principles of Knowledge Representation and Reasoning: Proceedings of the Eleventh International Conference, KR 2008, Sydney, Australia, September 16\u201319, 2008, G.\u00a0Brewka and J.\u00a0Lang, eds, AAAI Press, 2008, pp.\u00a0231\u2013241, http:\/\/www.aaai.org\/Library\/KR\/2008\/kr08-023.php."},{"key":"10.3233\/SW-243611_ref17","unstructured":"D.\u00a0Calvanese, G.D.\u00a0Giacomo and M.\u00a0Lenzerini, Identification constraints and functional dependencies in description logics, in: Proceedings of the Seventeenth International Joint Conference on Artificial Intelligence, IJCAI 2001, Seattle, Washington, USA, August 4\u201310, 2001, B.\u00a0Nebel, ed., Morgan Kaufmann, 2001, pp.\u00a0155\u2013160."},{"issue":"4","key":"10.3233\/SW-243611_ref18","doi-asserted-by":"publisher","first-page":"247","DOI":"10.1016\/J.WEBSEM.2005.09.001","article-title":"Named graphs","volume":"3","author":"Carroll","year":"2005","journal-title":"Journal of Web Semantics"},{"key":"10.3233\/SW-243611_ref20","unstructured":"J.\u00a0Corman, F.\u00a0Florenzano, J.L.\u00a0Reutter and O.\u00a0Savkovic, SHACL2SPARQL: Validating a SPARQL endpoint against recursive SHACL constraints, in: Proceedings of the ISWC 2019 Satellite Tracks (Posters & Demonstrations, Industry, and Outrageous Ideas) Co-Located with 18th International Semantic Web Conference (ISWC 2019), Auckland, New Zealand, October 26\u201330, 2019, M.C.\u00a0Su\u00e1rez-Figueroa, G.\u00a0Cheng, A.L.\u00a0Gentile, C.\u00a0Gu\u00e9ret, C.M.\u00a0Keet and A.\u00a0Bernstein, eds, CEUR Workshop Proceedings, Vol.\u00a02456, CEUR-WS.org, 2019, pp.\u00a0165\u2013168, http:\/\/ceur-ws.org\/Vol-2456\/paper43.pdf."},{"key":"10.3233\/SW-243611_ref21","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-00671-6_19"},{"key":"10.3233\/SW-243611_ref22","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-00671-6_19"},{"key":"10.3233\/SW-243611_ref23","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-88361-4_37"},{"key":"10.3233\/SW-243611_ref24","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-11964-9_4"},{"key":"10.3233\/SW-243611_ref25","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2013.01.002"},{"key":"10.3233\/SW-243611_ref26","unstructured":"N.\u00a0Ferranti, A.\u00a0Polleres, J.F.\u00a0de\u00a0Souza and S.\u00a0Ahmetaj, Formalizing property constraints in Wikidata, in: Proceedings of the 3rd Wikidata Workshop 2022 Co-Located with the 21st International Semantic Web Conference (ISWC2022), Virtual Event, Hanghzou, China, October 2022, L.\u00a0Kaffee, S.\u00a0Razniewski, G.\u00a0Amaral and K.S.\u00a0Alghamdi, eds, CEUR Workshop Proceedings, Vol.\u00a03262, CEUR-WS.org, 2022."},{"key":"10.3233\/SW-243611_ref27","doi-asserted-by":"publisher","DOI":"10.1145\/3442381.3449877"},{"key":"10.3233\/SW-243611_ref28","unstructured":"J.E.L.\u00a0Gayo, WShEx: A language to describe and validate Wikibase entities, in: Proceedings of the 3rd Wikidata Workshop 2022 Co-Located with the 21st International Semantic Web Conference (ISWC2022), Virtual Event, Hanghzou, China, October 2022, L.\u00a0Kaffee, S.\u00a0Razniewski, G.\u00a0Amaral and K.S.\u00a0Alghamdi, eds, CEUR Workshop Proceedings, Vol.\u00a03262, CEUR-WS.org, 2022, https:\/\/ceur-ws.org\/Vol-3262\/paper3.pdf."},{"key":"10.3233\/SW-243611_ref29","doi-asserted-by":"publisher","DOI":"10.2200\/S00786ED1V01Y201707WBE016"},{"key":"10.3233\/SW-243611_ref30","doi-asserted-by":"publisher","DOI":"10.1007\/11431053_7"},{"key":"10.3233\/SW-243611_ref31","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-06981-9_2"},{"key":"10.3233\/SW-243611_ref33","unstructured":"O.\u00a0Hartig, Foundations of RDF\u22c6 and SPARQL\u22c6 (an alternative approach to statement-level metadata in RDF), in: Proceedings of the 11th Alberto Mendelzon International Workshop on Foundations of Data Management and the Web, Montevideo, Uruguay, June 7\u20139, 2017, J.L.\u00a0Reutter and D.\u00a0Srivastava, eds, CEUR Workshop Proceedings, Vol.\u00a01912, CEUR-WS.org, 2017, https:\/\/ceur-ws.org\/Vol-1912\/paper12.pdf."},{"key":"10.3233\/SW-243611_ref36","unstructured":"D.\u00a0Hern\u00e1ndez, A.\u00a0Hogan and M.\u00a0Kr\u00f6tzsch, Reifying RDF: What works well with Wikidata? in: Proceedings of the 11th International Workshop on Scalable Semantic Web Knowledge Base Systems, CEUR Workshop Proceedings, Vol.\u00a01457, CEUR-WS.org, 2015, pp.\u00a032\u201347, http:\/\/ceur-ws.org\/Vol-1457\/SSWS2015_paper3.pdf."},{"key":"10.3233\/SW-243611_ref37","unstructured":"P.\u00a0Hitzler, M.\u00a0Kr\u00f6tzsch, P.F.P.-S.\u00a0Bijan Parsia and S.\u00a0Rudolph, OWL 2 Web Ontology Language Primer, 2nd edn, 2012, http:\/\/www.w3.org\/TR\/owl-primer\/."},{"key":"10.3233\/SW-243611_ref38","doi-asserted-by":"publisher","DOI":"10.3233\/978-1-61499-383-4-I"},{"key":"10.3233\/SW-243611_ref39","doi-asserted-by":"publisher","first-page":"42","DOI":"10.1016\/J.WEBSEM.2014.06.004","article-title":"Everything you always wanted to know about blank nodes","volume":"27\u201328","author":"Hogan","year":"2014","journal-title":"Journal of Web Semantics"},{"issue":"4","key":"10.3233\/SW-243611_ref40","doi-asserted-by":"publisher","first-page":"71:1","DOI":"10.1145\/3447772","volume":"54","author":"Hogan","year":"2022","journal-title":"Knowledge Graphs, ACM Comput. Surv."},{"key":"10.3233\/SW-243611_ref42","unstructured":"J.E.\u00a0Labra Gayo and J.M.\u00a0Alvarez Rodr\u00edguez, Validating statistical index data represented in RDF using SPARQL queries, in: RDF Validation Workshop. Practical Assurances for Quality RDF Data, Cambridge, Ma, Boston, Citeseer, 2013."},{"key":"10.3233\/SW-243611_ref44","unstructured":"D.L.\u00a0Martin and P.F.\u00a0Patel-Schneider, Wikidata constraints on MARS, in: Proceedings of the 1st Wikidata Workshop (Wikidata 2020) Co-Located with 19th International Semantic Web Conference(OPub 2020), Virtual Conference, November 2\u20136, 2000, L.\u00a0Kaffee, O.\u00a0Tifrea-Marciuska, E.\u00a0Simperl and D.\u00a0Vrandecic, eds, CEUR Workshop Proceedings, Vol.\u00a02773, CEUR-WS.org, 2020, https:\/\/ceur-ws.org\/Vol-2773\/paper-12.pdf."},{"key":"10.3233\/SW-243611_ref45","doi-asserted-by":"publisher","DOI":"10.1145\/1242572.1242681"},{"key":"10.3233\/SW-243611_ref46","doi-asserted-by":"publisher","DOI":"10.1145\/2566486.2567973"},{"key":"10.3233\/SW-243611_ref47","unstructured":"P.F.\u00a0Patel-Schneider and D.\u00a0Martin, EXISTStential aspects of SPARQL, in: Proceedings of the ISWC 2016 Posters & Demonstrations Track Co-Located with 15th International Semantic Web Conference (ISWC 2016), Kobe, Japan, October 19, 2016, T.\u00a0Kawamura and H.\u00a0Paulheim, eds, CEUR Workshop Proceedings, Vol.\u00a01690, CEUR-WS.org, 2016, http:\/\/ceur-ws.org\/Vol-1690\/paper72.pdf."},{"key":"10.3233\/SW-243611_ref48","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-25007-6_11"},{"key":"10.3233\/SW-243611_ref49","doi-asserted-by":"publisher","DOI":"10.1145\/1567274.1567278"},{"issue":"CSCW","key":"10.3233\/SW-243611_ref50","doi-asserted-by":"publisher","first-page":"141:1","DOI":"10.1145\/3274410","article-title":"Who models the world?: Collaborative ontology creation and user roles in Wikidata","volume":"2","author":"Piscopo","year":"2018","journal-title":"Proc. ACM Hum. Comput. Interact."},{"issue":"1\u20132","key":"10.3233\/SW-243611_ref51","doi-asserted-by":"publisher","first-page":"159","DOI":"10.1080\/11663081.2013.798992","article-title":"On the relation between SPARQL1.1 and answer set programming","volume":"23","author":"Polleres","year":"2013","journal-title":"Journal of Applied Non-Classical Logics (JANCL)"},{"issue":"5","key":"10.3233\/SW-243611_ref52","doi-asserted-by":"publisher","first-page":"1023","DOI":"10.14778\/3579075.3579078","article-title":"Extraction of validating shapes from very large knowledge graphs","volume":"16","author":"Rabbani","year":"2023","journal-title":"Proc. VLDB Endow."},{"key":"10.3233\/SW-243611_ref53","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-57977-7_6"},{"key":"10.3233\/SW-243611_ref55","doi-asserted-by":"publisher","DOI":"10.1016\/J.WEBSEM.2021.100679"},{"key":"10.3233\/SW-243611_ref56","doi-asserted-by":"publisher","DOI":"10.4230\/LIPICS.ICDT.2015.195"},{"key":"10.3233\/SW-243611_ref57","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ICDT.2015.195"},{"key":"10.3233\/SW-243611_ref58","doi-asserted-by":"crossref","unstructured":"J.\u00a0Tao, E.\u00a0Sirin, J.\u00a0Bao and D.L.\u00a0McGuinness, Integrity constraints in OWL, in: AAAI, 2010, http:\/\/www.aaai.org\/ocs\/index.php\/AAAI\/AAAI10\/paper\/view\/1931.","DOI":"10.1609\/aaai.v24i1.7525"},{"key":"10.3233\/SW-243611_ref59","doi-asserted-by":"publisher","DOI":"10.7717\/PEERJ-CS.1085"},{"key":"10.3233\/SW-243611_ref60","unstructured":"F.\u00a0Vargas-Rojas, A.\u00a0Polleres, L.\u00a0Cabrera-Bosquet and D.\u00a0Symeonidou, PhyQus: Automatic unit conversions for Wikidata physical quantities, in: Proceedings of the Wikidata Workshop 2023 Co-Located with 22nd International Semantic Web Conference (ISWC 2023), Athens, Greece, November 13, 2023, L.\u00a0Kaffee, S.\u00a0Razniewski, K.\u00a0Alghamdi and H.\u00a0Arnaout, eds, CEUR Workshop Proceedings, Vol.\u00a03640, CEUR-WS.org, 2023, https:\/\/ceur-ws.org\/Vol-3640\/paper9.pdf."},{"key":"10.3233\/SW-243611_ref61","doi-asserted-by":"publisher","first-page":"72","DOI":"10.1016\/J.WEBSEM.2011.08.006","article-title":"A general framework for representing, reasoning and querying with annotated Semantic Web data","volume":"11","author":"Zimmermann","year":"2012","journal-title":"J. Web Semant."}],"container-title":["Semantic Web"],"original-title":[],"link":[{"URL":"https:\/\/content.iospress.com\/download?id=10.3233\/SW-243611","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,1]],"date-time":"2026-05-01T05:27:30Z","timestamp":1777613250000},"score":1,"resource":{"primary":{"URL":"https:\/\/journals.sagepub.com\/doi\/full\/10.3233\/SW-243611"}},"subtitle":[],"editor":[{"given":"Lucie-Aim\u00e9e","family":"Kaffee","sequence":"additional","affiliation":[{"name":"Applied Policy Researcher at Hugging Face, Berlin, Germany"}],"role":[{"vocabulary":"crossref","role":"editor"}]},{"given":"Simon","family":"Razniewski","sequence":"additional","affiliation":[{"name":"Institute for Artificial Intelligence, Dresden, Germany"}],"role":[{"vocabulary":"crossref","role":"editor"}]},{"given":"Pavlos","family":"Vougiouklis","sequence":"additional","affiliation":[{"name":"Huawei Technologies, Edinburgh, United Kingdom"}],"role":[{"vocabulary":"crossref","role":"editor"}]}],"short-title":[],"issued":{"date-parts":[[2024,8,23]]},"references-count":52,"URL":"https:\/\/doi.org\/10.3233\/sw-243611","relation":{},"ISSN":["2210-4968","1570-0844"],"issn-type":[{"value":"2210-4968","type":"electronic"},{"value":"1570-0844","type":"print"}],"subject":[],"published":{"date-parts":[[2024,8,23]]}}}