From: Alex M. Hendler <amh.public@on...> - 2010-08-04 19:40:12
I have a feature suggestion for SMW for different "classes" of recursion
depth for queries that return embedded content with or without semantic
links, e.g., $maxRecursionDepth = 1, but $maxRecursionDepthNonSemantic =
2. This allows using queries to embed content with clickable links, but
prevents the embedding page from inheriting properties from the embedded
pages. I have a basic static implementation working, i.e., depths are
fixed, but I do not currently have the ability to make the depths
changeable on a per-query basis.
I believe that something similar can be done with <onlyinclude> on the
page to be embedded, or even creating parallel content with inheritable
and non-inheritable versions on different pages, but those are rather
binary solutions that always apply to the content to be embedded (and in
the case of parallel content, could double the content size and at least
double the number of semantic links). The approach I am suggesting would
allow users to specify on a per-query basis whether or not properties will
get inherited and to what depth, without any changes to the content aside
Is there any interest in seeing the full suggestion/justification and the
code (plus outlines for what I have not been able to do), or do I have a
unique use that is more suited to private development?
Please let me know.
Alex M. Hendler