Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

Handle nesting of resources in literal variables #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the following example the variable ?clabel should come before ?icon. 
However, in 0.12 it doesn't; this causes the template engine to fail.

<ul rel="rdf:type">
 <li about="?type" typeof="calli:Creatable" rel="calli:creates" resource="?class">
  <a href="?create={?class}" property="rdfs:label" content="?clabel">
   <img about="?class" rel="calli:icon" resource="?icon" src="{?icon}"/> {?clabel}
  </a>
 </li>
</ul>

  ?this a ?type .
  ?type a calli:Creatable .
  OPTIONAL {
   {
    ?type calli:creates ?class .
    OPTIONAL {
     {
      ?class calli:icon ?icon .
     }
     UNION
     {
      ?class rdfs:label ?clabel .
     }
    }
   }
  }

# @origin icon /1/2/1/2/2/2/1/1/2/1/1/1
# @origin clabel /1/2/1/2/2/2/1/1/2/1/1 !

Original issue reported on code.google.com by ja...@3roundstones.com on 31 Aug 2011 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by ja...@3roundstones.com on 2 Sep 2011 at 4:14

GoogleCodeExporter commented 9 years ago
Updated RDFaReader to output @content properties on start tag, and text content 
properties on the end tag.

Original comment by steven.a...@gmail.com on 5 Sep 2011 at 2:26