Re: library to convert shacl property paths to sparql property paths

Hello Niels

I have implemented the SHACL-SPARQL direction in https://www.npmjs.com/package/clownface-shacl-path
More recently, I implemented a SPARQL Property Paths parser using antl4r: https://www.npmjs.com/package/sparql-path-parser

IIRC, there is no conversion back to SHACL Property Path triples (JS representation is used) but that would be easy to add.

Best,
Tom

From: Niels Vandekeybus <niels@vandekeybus.eu>
Date: Tuesday, 4 February 2025 at 13:30
To: public-shacl@w3.org <public-shacl@w3.org>
Subject: library to convert shacl property paths to sparql property paths

Hi everyone,

I hope this is the right channel to ask. For a project I need to convert shacl property paths to sparql property paths (and back). I was wondering if anyone knows of a library to do this? For my use case javascript would be ideal.  If none exists I could write my own (the spec explains the conversion quite well), but I'm a bit surprised this doesn't exist yet. Hoping for some pointers that I missed :).

Kind regards,

Niels

Received on Tuesday, 4 February 2025 12:42:28 UTC