You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You see that the interesting (custom) prefixes are spread all over the place.
This is IMHO worse than alphabetically sorting all prefixes.
(That ontology doesn't reuse dcat, dct, skos: it just uses them for metadata.)
So my proposal is this:
rename prefixOrder to externalPrefixes
put externalPrefixes last since the interesting stuff should come first.
put a blank line before them
make the default value empty since what should be considered "external" (or "standard") is IMHO ontology-dependent.
The text was updated successfully, but these errors were encountered:
Hi @VladimirAlexiev,
thanks for bringing this up. I agree with you that this features needs to be better configurable. However I don't agree with you on which prefixes are "interesting" or where they should go; I personally prefer standard prefixes at the top, so reading prefixes from top to bottom always starts with the same things across different files. That's the reason I chose those prefixes as the default value.
The idea of prefixOrder therefore is to choose exactly what order you want, including both "standard" and "external" prefixes, so it does not only apply to the latter. The default value just happens to include "standard" prefixes.
By using a prefixOrder of e.g. cim, cims, eq, eu, rdf, rdfs, xsd, owl, dcat, dct, skos, you should be able to achieve what you want.
Allowing (configurable) blank lines to be inserted at certain places in the prefixes list is a nice idea.
https://github.com/atextor/turtle-formatter/?tab=readme-ov-file#nice-and-configurable-formatting says
https://atextor.de/owl-cli/main/snapshot/usage.html#write-command says
But take https://www.entsoe.eu/Documents/CIM_documents/Grid_Model_CIM/IEC61970-600-2_CGMES_3_0_1_ApplicationProfiles.zip
eg this ontology v3.0/RDFSEd2Beta/IEC61970-600-2_CGMES_3_0_0_RDFS_501Ed2CD_EQ.rdf .
Both documents above agree, and the output conforms; the rest of the prefixes are sorted alphabetically.
But I question the usability of the result.
In the result below, I marked the "custom" prefixes with
###
:You see that the interesting (custom) prefixes are spread all over the place.
This is IMHO worse than alphabetically sorting all prefixes.
(That ontology doesn't reuse
dcat, dct, skos
: it just uses them for metadata.)So my proposal is this:
prefixOrder
toexternalPrefixes
externalPrefixes
last since the interesting stuff should come first.The text was updated successfully, but these errors were encountered: