buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

using shacl functions #116

Open eroux opened 5 years ago

eroux commented 5 years ago

I think we should replace our template system with shacl functions, it's basically the same, but standard

MarcAgate commented 5 years ago

It looks like shacl sparql based functions are too limited for being used as a template mechanism such as ours. Main issue are : construct queries are not supported and functions returns a single value (no graph returned).

However, we could use shacl to create a TemplateShape (or model) that would defined common structure and constraints for our templates. We could then use that shape file to validate actual templates against it, using a shacl validator instead of a custom parser.

That would be a way to "standardize" our template mechanism.