I have a convoluted search request. Lets say that I am searching for an URI pattern. I do know the scheme and the authority. Lets say http://mycompany.com.
After this URI pattern, ideally most of the URI in my search domain have two path variable.
/Context/Resource. Although it could have more. But it will always have a context.
I would like to find the distinct set of first path variable. I do not mind about the second and subsequent path variable.So if I have this.Lets use a qname is myc.
myc:/context1/resource1
myc:/context1/resource2
myc:/context2/resource1
myc:/context3/resource1
myc:/context4/resource8
myc:/context1/resource12
I will have to get context1..4. Thank You for your time.
If I understand you correctly,