Since I am going to need to do this programatically and generate the
sparql query on the fly, it looks like I need to go towards Irene's
suggestion, since the selection of one or more criteria will be done
by a end user on a form.   I do not think that Holger's suggestion
would be a good one for a dynamically built grouping, and building the
multiple combination of possibilities of even three items generate 7
unique combinations (and I have many more than 3 items in my
possibilities list).    It is a very interesting way to deal with it,
and does help me think of other ways of approaching the problem.

I am unsure about the UNION operator Scott suggests, since I can see
how it applies for the single subject case and would be generate the
URIs I needed, but I do not know if or what the syntax would look like
for the additional properties.   Would it be something like:
SELECT *
WHERE {
  {  ?ApplicationUri rdfs:label "forestry" .
?subClass rdfs:subClassOf* ?ApplicationUri
  }
  UNION
  {  ?ApplicationUri rdfs:label "drilling" .
?subClass rdfs:subClassOf* ?ApplicationUri
  }
  UNION
  {  ?ApplicationUri rdfs:label "oceans" .
?subClass rdfs:subClassOf* ?ApplicationUri
  }
}

I appreciate the help from each of you on this, since as I am learning
sparql.  I sometimes still frame it in SQL terms that I am familiar
with, and changing that mindset is sometimes hard.  Thank you for your
help.

Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to