ali1k / ld-r

Linked Data Reactor (LD-R)
http://ld-r.org
Other
127 stars 30 forks source link

Question on setting base URI when creating a new resource #70

Closed charlie42 closed 4 years ago

charlie42 commented 4 years ago

When I create a new resource its URI looks like this: http://<MY IP>:7200/c1585313868, instead of the base URI set in GraphDB. Is it possible to configure the base URL for the new resources in ld-r?

ali1k commented 4 years ago

You can set thebaseResourceDomain in configs/general.js

see more at http://ld-r.org/docs/configGeneral.html

charlie42 commented 4 years ago

Thanks for quick reply. This didn't work, I still have new resources created with the IP based URI.

charlie42 commented 4 years ago

I found that replacing the name of the endpoint in configs/server.js works somewhat, like this: 'http://<BASE URL>#': { host: '<IP>', port: 7200, path: '/repositories/test', graphName: 'default', endpointType: 'graphdb' }, but now I get an unnecessary / between the ID and the #. Any idea how to work around this?

ali1k commented 4 years ago

Normally the baseResourceDomain should do the trick. I tried to fix the issue. Can you do a git pull and try again.

charlie42 commented 4 years ago

It works, thank you so much!