[ 
https://issues.apache.org/jira/browse/JENA-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178820#comment-14178820
 ] 

Andy Seaborne commented on JENA-802:
------------------------------------

The code wasn't treating bNodes correctly.

I have fixed an issue with encoding bnodes into the spatial index and it'll be 
in the next overnight build (check the build succeeds).

All data using bnodes will have to be reloaded I'm afraid.

Please could you confirm it now works for you? Thanks.


> wrong identifiers returned by spatial:nearby when using bnodes
> --------------------------------------------------------------
>
>                 Key: JENA-802
>                 URL: https://issues.apache.org/jira/browse/JENA-802
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Spatial
>    Affects Versions: Fuseki 1.0.1, Fuseki 1.1.1
>         Environment: Linux Ubuntu 12:10. JVM 1.7.0_09
>            Reporter: Luigi Selmi
>            Assignee: Andy Seaborne
>             Fix For: Jena 2.12.2
>
>         Attachments: jena-spatial-assembler.ttl
>
>
> I had to use blank nodes for objects that do not have a public http uri. I 
> imported a data set with geo:lat and geo:long coordinates in Fuseki 1.1.1 
> then I created the Lucence index as described in the doc about Jena Spatial. 
> An example sub set I used is the following
> {noformat}
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> @prefix airports_sc: <http://airports.dataincubator.org/schema/> .
> @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
> _:node1 rdf:type airports_sc:LargeAirport ;
>     geo:lat "52.4539"^^xsd:float ;
>     geo:long "-1.74803"^^xsd:float ;
>     rdfs:label "Birmingham International Airport" 
>   . 
> {noformat}
> Then I run the following query
> {noformat}
> PREFIX spatial: <http://jena.apache.org/spatial#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> SELECT * 
> FROM <http://test.org/1/>
> {
>   ?airport spatial:nearby (52.45 -1.74 10 'km') .
>   ?airport rdfs:label ?placeName .
> }
> {noformat}
> The returned result was empty, then I removed the clause with the rdfs:label 
> predicate and Fuseki returned a value for ?airport. This values is different  
> from the bnode assigned by Fuseki during the import and that is why the above 
> query returned no results. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to