Update on RDF XSLT stylesheet

It's been a gruelling trek through the RDF XML syntax and test cases documentation but I feel near the end of the tunnel. The greatest problem I have faced is distinguishing between rdf:ID attributes on subjects, objects and predicates - on subjects and objects the ID relates to the resource, whereas on the predicate element the ID refers to a statement (arc) that is reified. Unfortunately you can't tell from within the context of an element whether it is a predicate or not, and because I was being clever in reusing templates I was processing the same element in as both a subject, object and predicate. This is the case where, for example, the predicate points to a blank resource which has only string literal properties. Tricky. It has made me realise that a simpler RDF syntax, with no abbreviations or deviance from a pure striping model, would certainly be easier to process. It takes RDF XML syntax away from looking like "regular" XML, though.

Comments

No comments yet.

Leave a comment

Sorry, the comment form is closed at this time.