Open Rcaschultz opened 9 months ago
@Rcaschultz, no I don't think it's possible to hide the IRIs at the moment, sorry.
The IRI generation from the xsl transformation sheet is exactly here
It could be enhanced and add a Widoco ontology data property widoco:DoNotDisplayIRI with value xsd:boolean. Then in the xsl transformation just adding a second condition and looking if this data property is true or false here:
As I am not an xsl transformation expert I asked our overlord AI Chatgpt and this is something that could be tested to check if works
<xsl:template name="get.ontology.url">
<xsl:if test="exists((@*:about|@*:ID)[normalize-space() != '']) and not(exists(//widoco:DoNotDisplayIRI[text()='true']))">
<dl>
<dt>IRI:</dt>
<dd>
<xsl:value-of select="@*:about|@*:ID"/>
</dd>
<xsl:if test="exists(owl:versionIRI)">
<dt>Version IRI:</dt>
<dd>
<xsl:value-of select="owl:versionIRI/@*:resource"/>
</dd>
</xsl:if>
</dl>
</xsl:if>
</xsl:template>
Thanks @vChavezB. The only thing I am a little hesitant is that your ontology ends up with Widoco configuration parameters. We can do something similar under the hood: accept a parameter for the tool, then annotate the ontology and use the xslt.
But I don't understand very well why would you want to remove the class URI from the documentation, since that's kind of the main thing to know which property you are dealing with. For example, 2 properties/Classes could have the same label. How would you distinguish theM
Do not want to display the IRI for each item in the export.
Regards,