Open wwelling opened 2 months ago
The plan to solve the bug is to ensure that the XSLT transformation is correctly selecting the ldp:contains
property from the RDF+XML data. The reasoning behind this solution is based on the assumption that the XSLT file is correctly written and the namespaces are properly declared. The solution involves verifying the input data, testing the transformation, and potentially adding diagnostic output to the XSLT to troubleshoot the issue.
The bug is likely caused by one of the following:
ldp:contains
elements where expected.ldp:contains
elements not having an rdf:resource
attribute.The XSLT selector appears to be correctly written, given that the namespaces are properly declared. Therefore, the issue may be with the input data or the environment in which the XSLT is executed.
To troubleshoot the issue, the following diagnostic output can be added to the XSLT file:
<!-- Diagnostic output to log the input data -->
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
<!-- Diagnostic output to log the results of the selection -->
<xsl:template match="rdf:RDF/rdf:Description">
<xsl:copy-of select="ldp:contains/@rdf:resource"/>
</xsl:template>
This code will output the entire input data and the results of the ldp:contains
selection, which can help identify where the transformation is failing.
To replicate the bug, the following steps should be taken:
ldp:contains
elements within rdf:Description
elements.default_transform.xsl
file.contains
field in the Solr index contains the expected rdf:resource
attribute values from the ldp:contains
elements.If the contains
field is not populated as expected, the bug is replicated.
Click here to create a Pull Request with the proposed solution
Files used for this task:
What - description of what you me to do
Fix the SolrRouter to be able to select ldp:contains during XSLT.
Why - explain why this is important
This is important to resolve an inability of the XSLT of RDF+XML with the XSL is not able to select
rdf:RDF/rdf:Description/ldp:contains/@rdf:resource
.