XUL Talk:Templates Plan: Difference between revisions

Line 3: Line 3:
Fresnel is SIMILE's RDF query mechanism. It builds on SPARQL or XPath and provides query modularization. To allow for a fully functional Fresnel Query Processor, the builder and result interfaces would have to be enhanced.
Fresnel is SIMILE's RDF query mechanism. It builds on SPARQL or XPath and provides query modularization. To allow for a fully functional Fresnel Query Processor, the builder and result interfaces would have to be enhanced.


Fresnel supports "get-all" where you can get the values of all of the predicates of an object or all but a particular group. I imagine that most query mechanisms have this facility. Problem is that the XUL Builder doesn't support this. It needs explicit names for all the predicate values it receives. It can't just walk a result object using value="?*" of some such wildcard.  
Fresnel supports "get-all" where you can get the values of all of the predicates of an object or all but a particular group. I imagine that most query mechanisms have this facility. Problem is that the XUL Builder doesn't support this. It needs explicit names for all the predicate values it receives. It can't just walk a result object using value="?*" or some such wildcard. I know this one could be troublesome because it breaks the notion that variables are bound in the query and used in the builder.


Fresnel supports label attachment for values so for example, if you get a value for the predicate "http:.../wife" of say "Mary", you can also attach the label "Wife" to Mary for the builder to use. By default that label can come from OWL. The result object (http://wiki.mozilla.org/XULTemplatesAPI#Result_Objects) passed from Query processor to Builder doesn't have a slot for "label". Unless it's added you would loose one of the nicest features of a Fresnel processor.
Fresnel supports label attachment for values so for example, if you get a value for the predicate "http:.../wife" of say "Mary", you can also attach the label "Wife" to Mary for the builder to use. By default that label can come from OWL. The result object (http://wiki.mozilla.org/XULTemplatesAPI#Result_Objects) passed from Query processor to Builder doesn't have a slot for "label". Unless it's added you would loose one of the nicest features of a Fresnel processor.
Add these two facilities and XUL templates become a lot more powerful.


==== Scope: must a Query Processor sort or ensure uniqueness? ====
==== Scope: must a Query Processor sort or ensure uniqueness? ====
40

edits