Hi Alison,
magic properties always have to use sp:arg1, sp:arg2 etc, so please
replace sp:arg with sp:arg1 (and use ?arg1) instead.
HTH
Holger
On 6/14/2013 0:32, Alison Callahan wrote:
Hello all,
I am using TopBraid Composer 4.2.0 Free Edition, installed using these
instructions: http://www.topquadrant.com/products/TB_EUM.html
I have created a magic property, let's call it :returnAB, that has
spin:constraint sp:arg and a spin:body like this:
SELECT ?a ?b
WHERE {
SERVICE <http://example.org/sparql> {
?thing :isLinkedTo *?arg* .
?thing :propertyA ?a .
?thing :propertyB ?b .
}
}
When I use this magic property in a SPARQL query in the TBC query
editor like this:
SELECT ?a ?b
WHERE {
<http://example.org/specificResource> :returnAB (?a ?b) .
}
it returns ALL ?a ?b for ALL resources, even though I restricted my
query to the URI <http://example.org/specificResource>.
When I copy the SPARQL query from the spin:body of :returnAB, restrict
it to <http://example.org/specificResource>, and execute it using the
query editor in TBC as follows:
SELECT ?a ?b
WHERE {
SERVICE <http://example.org/sparql> {
?thing :isLinkedTo <http://example.org/specificResource> .
?thing :propertyA ?a .
?thing :propertyB ?b .
}
}
I get the expected results just for things linked to
<http://example.org/specificResource>.
Why is the magic property not restricting ?a ?b results when a
resource URI is specified?
Thanks,
Alison
--
-- 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 Ensemble, 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 Ensemble, 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.