Re: is there a standard way to describe a "parametrized" url ? Future

On Jan 8, 2025, at 12:57 PM, Nicolas Chauvat <nicolas.chauvat@logilab.fr> wrote:
> 
> Hi List,
> 
> In the documentation about the RDF graphs we build in one of our
> projects, we put the pattern that the URLs generated by the different
> applications are expected to follow, as in:
> 
> """
> For instances of the class Bar that belong to the group Foo please
> use URLs that follow the pattern
> https://data.mycompany.com/resource/foo/bar/<identifier> and more
> generally, try to use the pattern
> https://data.mycompany.com/resource/<group>/<class>/<identifier>
> """
> 
> Here, I am using <variable_name> as many web frameworks do, but I am
> looking for a "standard way", possibly RDF-related but not
> necessarily, to describe such patterns for URLs.
> 
> Would you happen to know one ?


URI Templates (RFC 6570) may be what you’re looking for:

https://www.rfc-editor.org/rfc/rfc6570

thanks,
.greg

Received on Friday, 17 January 2025 16:27:26 UTC