Closed nyarly closed 10 years ago
If a list points to a node that has not yet been rendered, the existing HAML templates render the node inline of the
For example, a test I'm working on:
<http://localhost:8778/unresolved_needs> <http://lrdesign.com/vocabularies/logical-construct#needs> _:g91717000 . <http://localhost:8778/needs/one> <http://lrdesign.com/vocabularies/logical-construct#name> "one" . _:g91717000 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://localhost:8778/needs/one> . _:g91717000 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:g91922310 . <http://localhost:8778/needs/two> <http://lrdesign.com/vocabularies/logical-construct#name> "two" . _:g91922310 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://localhost:8778/needs/two> . _:g91922310 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:g91996110 . <http://localhost:8778/needs/three> <http://lrdesign.com/vocabularies/logical-construct#name> "three" . _:g91996110 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://localhost:8778/needs/three> . _:g91996110 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
renders to
<!DOCTYPE html> <html prefix='lc: http://lrdesign.com/vocabularies/logical-construct# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns='ht tp://www.w3.org/1999/xhtml'> <head> <base href='http://localhost:8778/unresolved_needs'> </head> <body> <div resource=''> <div class='property'> <span class='label'> lc:needs </span> <ul> <div rel='lc:needs' resource='http://localhost:8778/needs/one'> <div class='property'> <span class='label'> lc:name </span> <span property='lc:name'>one</span> </div> </div> <div rel='lc:needs' resource='http://localhost:8778/needs/two'> <div class='property'> <span class='label'> lc:name </span> <span property='lc:name'>two</span> </div> </div> <div rel='lc:needs' resource='http://localhost:8778/needs/three'> <div class='property'> <span class='label'> lc:name </span> <span property='lc:name'>three</span> </div> </div> </ul> </div> </div> </body> </html>
Am I missing something about RDFa, or does this a bug?
Yes, this is a bug. I'll add it as a test case and fix it for the 1.1 release.
If a list points to a node that has not yet been rendered, the existing HAML templates render the node inline of the
, and without @inlist. So the result is that the resulting HAML doesn't parse back to the original graph.
For example, a test I'm working on:
renders to
Am I missing something about RDFa, or does this a bug?