Is it possible to expose my stardog cloud database and be able to query SPARQL by connecting to the endpoint?
Yes, you can access your Stardog Cloud endpoint using the Stardog CLI tools and also via an HTTPS API. See Accessing API Endpoint | Stardog Documentation Latest for more details.
am trying to connect to the SPARQL endpoint of my database
I created a user called root and password and gave it all the required permissions
Yet i am getting 401 error due to authentication
How to fix it?
Hi,
On top of specifying the remote server in the CLI command, you also need to ensure that you're passing in -u root
and either -P
or -p password
, otherwise the CLI will use the default admin/admin.
Sorry for interrupting this thread with a neighbouring question. I am wondering if there is a way to specify the database in the Stardog endpoint uri (e.g. through query parameters) for remote SPARQL access. E.g. I have the endpoint https://xx-yyyyyyyy.stardog.cloud:5820 and the database "zzzzzz" (plus user/pwd handled separately). E.g. corresponding way in GraphDB is base-uri/repositories/my-repo.
Hi Lars,
https://xx-yyyyyyyy.stardog.cloud:5820/{db}/query would be your endpoint for read SPARQL queries, see the HTTP API at API Reference | ReDoc
Cheers,
Pavel