renderFragmentsAsPrefixed property
final
Controls how fragment IRIs are rendered in the output.
When set to true
(default), fragment IRIs from the current document are rendered
as prefixed IRIs using an empty prefix declaration. For example:
http://example.org/document#fragment
becomes:fragment
- Requires an empty prefix declaration:
@prefix : <http://example.org/document#> .
When set to false
, fragment IRIs are rendered as relative IRIs when they belong
to the current document's namespace. For example:
http://example.org/document#fragment
becomes#fragment
- No empty prefix declaration is generated
This setting only affects IRIs that have fragments and belong to a namespace that ends with '#'. Non-fragment IRIs are processed according to other compaction rules.
Example with renderFragmentsAsPrefixed: true
(default):
@prefix : <http://example.org/doc#> .
:subject :property :object .
Example with renderFragmentsAsPrefixed: false
:
@base <http://example.org/doc> .
<#subject> <#property> <#object> .
Implementation
final bool renderFragmentsAsPrefixed;