General concept inclusion (CGI) generator
Instead of generating files that represent "all" combinations of CGIs, implement this as a web service (java servlet, php, ?). The IRI of the service should be similar to the published templates and deliver results that are similar to the templates published as files.
The IRI scheme should follow some terse pattern, e.g,. OI-sub-DU could mean ObjectIntersectionOf SubclassOf DataUnionOf where the resulting template will have the natural set of parameters as indicated by the containing left- and right-hand sides.