CSIRO-enviro-informatics / loci-integration-api

This application provides a convenient interface for executing common functions across the whole LOCI system.
0 stars 3 forks source link

/location/overlaps for 2020-Q1-cache returns error #58

Closed jyucsiro closed 4 years ago

jyucsiro commented 4 years ago

Query using loci-integration-api on the new cache data returns an error for /location/overlaps using http://linked.data.gov.au/dataset/asgs2016/statisticalarealevel1/20604112235

This query is used in excelerator and is currently not working with some test data.

API may need refactoring to use new RDF predicates.

Details below to reproduce error....

Query parameters:

{  
   uri: 'http://linked.data.gov.au/dataset/asgs2016/statisticalarealevel1/20604112235',
   areas: true,
   proportion: true,
   contains: false,
   within: false,
   crosswalk: true,
   output_type: 'http://linked.data.gov.au/def/gnaf#Address',
   output_dataset: 'http://linked.data.gov.au/dataset/gnaf-2016-05' 
}

curl

curl -X GET "https://test-api.loci.cat/api/v1/location/overlaps?uri=http%3A%2F%2Flinked.data.gov.au%2Fdataset%2Fasgs2016%2Fstatisticalarealevel1%2F20604112235&areas=true&proportion=true&contains=false&within=false&output_type=http%3A%2F%2Flinked.data.gov.au%2Fdef%2Fgnaf%23Address&crosswalk=true&count=1000&offset=0" -H "accept: application/json"

http

https://test-api.loci.cat/api/v1/location/overlaps?uri=http%3A%2F%2Flinked.data.gov.au%2Fdataset%2Fasgs2016%2Fstatisticalarealevel1%2F20604112235&areas=true&proportion=true&contains=false&within=false&output_type=http%3A%2F%2Flinked.data.gov.au%2Fdef%2Fgnaf%23Address&crosswalk=true&count=1000&offset=0
jyucsiro commented 4 years ago

PR #60 part of the solution...