kasei / attean

A Perl Semantic Web Framework
19 stars 10 forks source link

Attribute to omit base to have all relative URIs #135

Closed kjetilk closed 5 years ago

kjetilk commented 5 years ago

When rereading the Design Issue on relative URIs, I realized that we have the same problem as Jena, even for the abbrieviating serializer, as it will end up putting a @base in the file.

Then, I figured, it should be easy to solve at the API level, just not print the @base if URIs have been made relative to them. So, even thought we haven't got any serializers that do this now, having a boolean attribute for it makes sense, so that's what this patch adds.

kasei commented 5 years ago

I think this is fine, but am not sure about merging it without support in any of the implemented serializers.

kjetilk commented 5 years ago

Yeah, I can see that, but I feel it is nice to show there is support for it in the API. I guess the API has to come before actual implementation anyway.