Paul; I just wanted to make sure there aren't some latent
misconceptions here.  In particular, I'm not sure what you meant by
stating that ?var is bound to the "object of the statement".  In my
thinking, ?var is bound to the subject of triples matching the triple
pattern "?var ?prop ?value".

Also, the query that you have will get all triples in your model then
compare each of the ?value bindings (the object) against the string
"rdf".  When the FILTER statement evaluates to true, the query stops
processing and returns true.  For this query, it will go through all
triples in the model before returning a false.

So you probably want to narrow the query down a bit.  For example, if
the "rdf" string is part of a specific property, then something like "?
var :myFileTypeProp ?value" would be a good idea.  Generally you want
to cut down to the minimal number of triples before doing expensive
operations like string comparison.

This may be obvious, but I thought it would be a good idea to clarify.

-- Scott

On Jun 19, 2:47 am, PaulZH <[email protected]> wrote:
> Scott,
>
> >I wonder if what you really
> > want is to compare the user input directly in a FILTER, i.e.:
> >   FILTER regex(?ext = "rdf")
>
> After the additional input of Holger I understand now your suggestion.
> Indeed this is what I was after.
>
> Paul
>
> On Jun 17, 4:59 pm, Scott Henninger <[email protected]>
> wrote:
>
> > Paul;  For the most part his looks OK.  I wonder if what you really
> > want is to compare the user input directly in a FILTER, i.e.:
> >   FILTER regex(?ext = "rdf")
>
> > By "nothing is happening", do you mean that neither the 'if' or 'else'
> > branches are executing (confirmed via console)?
> > -- Scott
--~--~---------~--~----~------------~-------~--~----~
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