Improving ERA SHACL. Alexiev, V. Blog post, June, 2025.
Blog
Website abstract bibtex The ERA KG is the result of a large-scale collaboration between Europe's rail entities and is the foundation of EU rail data interoperability. It is complex and relatively big, and SHACL data validation is used to improve data quality. In this blog we describe Graphwise experience with complex SHACL shapes, show how ERA SHACL shapes can be simplified by a third, how their performance can be optimized (instead of million times, run SPARQL once), and discuss incremental validation scenarios that can further improve performance. In particular, section Constraints for SKOS Properties shows how to replace 73 to 103 enum constraints that run SPARQL over 8M times (per enum prop instance); with 1 constraint that runs SPARQL once (then a few cheap SPARQLs per violation)
@Misc{Alexiev-ERA-SHACL-2025,
author = {Vladimir Alexiev},
title = {Improving ERA SHACL},
howpublished = {Blog post},
month = jun,
year = 2025,
url_Blog = {https://github.com/VladimirAlexiev/RailDataForum2025-SPARQL/blob/main/improving-era-shacl.md},
keywords = {rail, ERA, ERA Vocabulary, ERA KG, SHACL, RDF shapes, data validation, SPARQLConstraint, SPARQLTarget},
url_Website = {https://graphwise.ai/blog/improving-era-shacl-shapes-and-data-flows/},
abstract = {The ERA KG is the result of a large-scale collaboration between Europe's rail entities and is the foundation of EU rail data interoperability. It is complex and relatively big, and SHACL data validation is used to improve data quality. In this blog we describe Graphwise experience with complex SHACL shapes, show how ERA SHACL shapes can be simplified by a third, how their performance can be optimized (instead of million times, run SPARQL once), and discuss incremental validation scenarios that can further improve performance. In particular, section Constraints for SKOS Properties shows how to replace 73 to 103 enum constraints that run SPARQL over 8M times (per enum prop instance); with 1 constraint that runs SPARQL once (then a few cheap SPARQLs per violation)},
}
Downloads: 0
{"_id":"4d6YDWTCBjZQHjMx6","bibbaseid":"alexiev-improvingerashacl-2025","author_short":["Alexiev, V."],"bibdata":{"bibtype":"misc","type":"misc","author":[{"firstnames":["Vladimir"],"propositions":[],"lastnames":["Alexiev"],"suffixes":[]}],"title":"Improving ERA SHACL","howpublished":"Blog post","month":"June","year":"2025","url_blog":"https://github.com/VladimirAlexiev/RailDataForum2025-SPARQL/blob/main/improving-era-shacl.md","keywords":"rail, ERA, ERA Vocabulary, ERA KG, SHACL, RDF shapes, data validation, SPARQLConstraint, SPARQLTarget","url_website":"https://graphwise.ai/blog/improving-era-shacl-shapes-and-data-flows/","abstract":"The ERA KG is the result of a large-scale collaboration between Europe's rail entities and is the foundation of EU rail data interoperability. It is complex and relatively big, and SHACL data validation is used to improve data quality. In this blog we describe Graphwise experience with complex SHACL shapes, show how ERA SHACL shapes can be simplified by a third, how their performance can be optimized (instead of million times, run SPARQL once), and discuss incremental validation scenarios that can further improve performance. In particular, section Constraints for SKOS Properties shows how to replace 73 to 103 enum constraints that run SPARQL over 8M times (per enum prop instance); with 1 constraint that runs SPARQL once (then a few cheap SPARQLs per violation)","bibtex":"@Misc{Alexiev-ERA-SHACL-2025,\n author = {Vladimir Alexiev},\n title = {Improving ERA SHACL},\n howpublished = {Blog post},\n month = jun,\n year = 2025,\n url_Blog = {https://github.com/VladimirAlexiev/RailDataForum2025-SPARQL/blob/main/improving-era-shacl.md},\n keywords = {rail, ERA, ERA Vocabulary, ERA KG, SHACL, RDF shapes, data validation, SPARQLConstraint, SPARQLTarget},\n url_Website = {https://graphwise.ai/blog/improving-era-shacl-shapes-and-data-flows/},\n abstract = {The ERA KG is the result of a large-scale collaboration between Europe's rail entities and is the foundation of EU rail data interoperability. It is complex and relatively big, and SHACL data validation is used to improve data quality. In this blog we describe Graphwise experience with complex SHACL shapes, show how ERA SHACL shapes can be simplified by a third, how their performance can be optimized (instead of million times, run SPARQL once), and discuss incremental validation scenarios that can further improve performance. In particular, section Constraints for SKOS Properties shows how to replace 73 to 103 enum constraints that run SPARQL over 8M times (per enum prop instance); with 1 constraint that runs SPARQL once (then a few cheap SPARQLs per violation)},\n}\n\n","author_short":["Alexiev, V."],"key":"Alexiev-ERA-SHACL-2025","id":"Alexiev-ERA-SHACL-2025","bibbaseid":"alexiev-improvingerashacl-2025","role":"author","urls":{" blog":"https://github.com/VladimirAlexiev/RailDataForum2025-SPARQL/blob/main/improving-era-shacl.md"," website":"https://graphwise.ai/blog/improving-era-shacl-shapes-and-data-flows/"},"keyword":["rail","ERA","ERA Vocabulary","ERA KG","SHACL","RDF shapes","data validation","SPARQLConstraint","SPARQLTarget"],"metadata":{"authorlinks":{}}},"bibtype":"misc","biburl":"https://vladimiralexiev.github.io/my/Alexiev-bibliography.bib","dataSources":["qQ4QyF9WbfwAyRcSb"],"keywords":["rail","era","era vocabulary","era kg","shacl","rdf shapes","data validation","sparqlconstraint","sparqltarget"],"search_terms":["improving","era","shacl","alexiev"],"title":"Improving ERA SHACL","year":2025}