Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Order of Spatial Constraints

$
0
0
After experimenting with the spatial constraints (like withinCircle), I've noticed that I must have the spatial constraint FIRST in my set of constraints. Is this by design?

If I do this query it works (withinCircle is first in my set of constraints):

SELECT DISTINCT ?Event1 ?Event1_inCountry WHERE {
?Event1 <http://jena.apache.org/spatial#withinCircle> (38.8633 -104.7919 700 'miles') .
?Event1 <http://issinc.com/test#inCountry> ?Event1_inCountry .
?Event1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://issinc.com/test#Event> .

If I move the spatial constraint further down the list, it fails:

SELECT DISTINCT ?Event1 ?Event1_inCountry WHERE {
?Event1 <http://issinc.com/test#inCountry> ?Event1_inCountry .
?Event1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://issinc.com/test#Event> .
?Event1 <http://jena.apache.org/spatial#withinCircle> (38.8633 -104.7919 700 'miles') .

warning I see is:
10:04:58 WARN Fuseki :: [68] RC = 500 : Attempt to reassign '?Event1' from '<http://issinc.com/test#event_901112280020>' to '<http://issinc.com/test#event_901112280020>'

thanks,
-heidi

Viewing all articles
Browse latest Browse all 5648

Trending Articles