buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

possibility to query by actual URI (not local name) #22

Closed eroux closed 6 years ago

eroux commented 6 years ago

I think it would be helpful to allow users to query resources with their actual ID instead of hardcoding the bdr: prefix. So the query would be

{
  "R_RES": "http://purl.bdrc.io/resource/I29329_I001"
}

instead of I29329_I001 in this query (or maybe having some prefixes in the configuration so that bdr:I29329_I001 works too?). It's not really an emergency but we want to allow federation in the future, which means dealing with URLs not in our usual zone.

(note that this would obviously not affect the /resource endpoint which would still serve urls like http://purl.bdrc.io/resource/I29329_I001 and not http://purl.bdrc.io/resource/bdr:I29329_I001, nor the ontology endpoints)

MarcAgate commented 6 years ago

ldspdi now supports resource param of the form prefix:resourceID or full_URI/resource_ID. The /resource endpoint remains as is.

eroux commented 6 years ago

looks good! I didn't test but let's close it, I'll reopen it if some bugs appear