Hi Tim,

such operations are possible in principle, but you need to be careful not to cause side effects. In the example below, the body of the WHERE clauses will be rdf:Lists. While you can introduce another query that points to the same RDF nodes (rdf:List items), you would need to modify the first list so that it continues with the second list. Once you modify one, then the original query will change its meaning too.

You could however create an RDF structure such as

SELECT * {
    {
        ?s rdfs:label ?label .
    }
    {
        ?s a ex:Car .
    }
}

using SPARQL INSERTs and CONSTRUCTs. We have done similar things in the past. Making a deep copy of the RDF nodes would be better to avoid clashes.

HTH
Holger


On 1/15/2014 6:07, Tim Harsch wrote:
I'm wondering if I can use TBC to store a query (as RDF) can I then use TBC library functions or SPIN functions or SPIN API (ie via some Java code) to merge queries?

ie

Say I have two queries and I already know how I want to merge them (a specific case), like:

SELECT * {
?s rdfs:label ?label .
}

and
SELECT * {
?s a ex:Car .
}

and I want to merge these two queries into:
SELECT * {
?s rdfs:label ?label .
?s a ex:Car .
}

Thanks,
Tim
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
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-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL 
Web Pages and SPIN.
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-users?hl=en
--- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to