SelectBuilder gives you more control because you are building the query 
directly.  The downside is that this requires you to understand how SPARQL 
queries get translated into ARQs internal AST in order to be able to build 
queries.

Also with SelectBuilder you don't have to parse the query so building a query 
with SelectBuilder may be more performant depending on the complexity of your 
queries.

So I would say ParameterizedSparqlString is better for simple queries but 
provides less control and performance than SelectBuilder.

Rob

On 25/03/2021, 23:13, "graham" <gra...@orangedogsoftware.com> wrote:

    I have a question on ParameterizedSparqlString. I have been using 
    SelectBuilder to build select queries. Is ParameterizedSparqlString any 
    better or worse than SelectBuilder since they seem to do roughly the 
    same thing.

    thanks

    graham

    On 25/03/21 10:05 pm, Rob Vesse wrote:
    > ParameterizedSparqlString works by simple textual substitution into the 
provided query string so you get a more specific query with your parameters
    >
    > It does not have any relationship to joins.
    >
    > I guess what you may be asking is how it compares to other methods for 
providing initial bindings e.g. adding VALUES to a query which would be 
evaluated as a Join?  The answer there is that it isn't really a fair 
comparison, a parameterized query vs one using VALUES might yield very 
different query execution plans so perform very differently.  As with all 
queries it's going to depend on both your queries and your data
    >
    > Rob
    >
    > On 25/03/2021, 08:31, "Samita Bai  / PhD CS Scholar @ City Campus" 
<s...@iba.edu.pk> wrote:
    >
    >      Hello everyone,
    >
    >      I have used Parameterized SPARQL String for providing initial 
solution bindings for query execution. I need to document my technique; can 
anyone help me how can we compare Parameterized SPARQL String with joins?
    >
    >      Is Parameterized SPARQL string type of join or its entirely 
different?
    >
    >      Please someone help me out.
    >
    >
    >      Regards,
    >      Samita Bai
    >
    >
    >      P : Please consider the environment before printing this e-mail
    >
    >      ________________________________
    >
    >      CONFIDENTIALITY / DISCLAIMER NOTICE: This e-mail and any attachments 
may contain confidential and privileged information. If you are not the 
intended recipient, please notify the sender immediately by return e-mail, 
delete this e-mail and destroy any copies. Any dissemination or use of this 
information by a person other than the intended recipient is unauthorized and 
may be illegal.
    >
    >      ________________________________
    >
    >
    >
    >
    -- 
            The Electric Monk was a labour-saving device, like a dish
          washer or a video recorder. Dishwashers washed tedious dishes
           for you, ... video recorders watched tedious television for
                you, ... Electric Monks believed things for you.





Reply via email to