Of course!
- RDF has an XML representation
- XQuery is a Turing-complete language
But some ways are better than others...
- Use an XML representation of RDF data model
- Merging descriptions means a lot fewer joins
- Function libraries make it more convenient
- Functions may be external or in XQuery