buda-base / lds-queries

A repository for BUDA Linked Data Server
Apache License 2.0
0 stars 1 forks source link

ResInfo query won't return 404 for a non-existing resource #91

Closed berger-n closed 2 years ago

berger-n commented 2 years ago

see https://library.bdrc.io/show/bdr:MW2PD17457_4E416A no data returned by https://ldspdi.bdrc.io/query/graph/ResInfo-SameAs?R_RES=bdr%3AMW2PD17457_4E416A&format=json not even inRootInstance

eroux commented 2 years ago

strange, where did you see a reference to bdr:MW2PD17457_4E416A ?

berger-n commented 2 years ago

in the logs

same for https://library.bdrc.io/show/bdr:MW22339 https://ldspdi.bdrc.io/query/graph/ResInfo-SameAs?R_RES=bdr%3AMW22339&format=json

but there's also this strange url! https://library.bdrc.io/show/bdrc:bdr:MW486_8978DF seems to have been typed by the user himself...

berger-n commented 2 years ago

regarding MW22339 it can be related to https://library.bdrc.io/show/bdr:WA22339

image

which seems to have only etext instances: https://ldspdi.bdrc.io/resource/WA22339.ttl

bdo:workHasInstance bdr:IE0GR0165 , bdr:IE0GR0166 , bdr:IE0GR0167 ;

berger-n commented 2 years ago

same error in logs: https://library.bdrc.io/show/bdr:MW7075

berger-n commented 2 years ago

actually I think issue here is that ResInfo query won't return 404 for a non-existing resource see https://ldspdi.bdrc.io/query/graph/ResInfo-SameAs?R_RES=bdr%3AP1234567890 or https://ldspdi.bdrc.io/query/graph/ResInfo-SameAs?R_RES=bdr%3AWA1234567890 [renaming and moving to lds-queries]

berger-n commented 2 years ago

perfect, thanks!