# Access SD endpoint in federated query with authentication

**URL:** <https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731>\
**Category:** Support\
**Created:** [May 11, 2022, 6:31pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731 "2022-05-11T18:31:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![feickertmd](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@feickertmd](https://community.stardog.com/u/feickertmd)\
**Post date:** [May 11, 2022, 6:31pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/1 "2022-05-11T18:31:06Z")

</div>

Hi, I am trying ot run a query against a SD Studio endpoint. This is with a client who has it set up for me to authenticate from my computer only by recognizing my home IP address.

There are two things I want to accomplish

1. I want to just run a simple query against the endpoint and get results back. So far, when i do so via URL or Python script, to "http://:/{db}/query" (for my db), all i can get back is a standard response with stuff like this in it:

```auto
_:bnode_6b71d726_d06c_42d5_9453_2f9eb87fa0f9_1672 <http://www.w3.org/ns/sparql-service-description#supportsVgPlatform> _:bnode_6b71d726_d06c_42d5_9453_2f9eb87fa0f9_1673 .
_:bnode_6b71d726_d06c_42d5_9453_2f9eb87fa0f9_1673 <http://www.w3.org/ns/sparql-service-description#vgPlatformName> "DERBY" ;
   <http://www.w3.org/ns/sparql-service-description#vgPlatformLabel> "Apache Derby" ;

```

1. I want to run a federated query from a different local tool (GraphDB) against the stardog instance. Since the endpoint requires authentication, I am entering the SERVICE command like this:

```auto
SERVICE <http://USERNAME:PWD@<server>:<port>/{db}/query> {

```

In that case, I am getting nothing back.

Any advice on how I can at least query and get results? Bonus if you can tell me how to do it form a SERVICE command!

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 11, 2022, 8:08pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/2 "2022-05-11T20:08:19Z")

</div>

Your url `http://:/{db}/query` looks a little wonky. The results you're getting back are the sparql service description that provides a description of the sparql endpoint suggesting that you're hitting the wrong endpoint. Given that it's not too surprising that your service query is not returning anything. You can either tackle the problem of the correct endpoint first or you can try modifying your service query to return data from the sparql service description data to confirm that the service query is working. Luckily Stardog is standards-compliant!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 16, 2022, 8:54pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/3 "2022-05-16T20:54:00Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 22, 2022, 3:11pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/4 "2022-05-22T15:11:49Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 29, 2022, 9:52am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/5 "2022-05-29T09:52:45Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 7, 2022, 5:16am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/6 "2022-06-07T05:16:57Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 17, 2022, 12:21am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/7 "2022-06-17T00:21:28Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 27, 2022, 8:18pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/8 "2022-06-27T20:18:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [July 9, 2022, 1:15am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/9 "2022-07-09T01:15:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [July 20, 2022, 4:38am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/10 "2022-07-20T04:38:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [August 1, 2022, 9:43am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/11 "2022-08-01T09:43:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [August 14, 2022, 10:09pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/12 "2022-08-14T22:09:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [August 28, 2022, 6:58pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/13 "2022-08-28T18:58:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 11, 2022, 3:43pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/14 "2022-09-11T15:43:37Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 25, 2022, 8:16pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/15 "2022-09-25T20:16:55Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [October 10, 2022, 12:28am UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/16 "2022-10-10T00:28:06Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [October 23, 2022, 9:51pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/17 "2022-10-23T21:51:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [November 8, 2022, 12:26pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/18 "2022-11-08T12:26:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [November 30, 2022, 1:14pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/19 "2022-11-30T13:14:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 24, 2022, 10:23pm UTC](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731/20 "2022-12-24T22:23:29Z")

</div>



[Next page](https://community.stardog.com/t/access-sd-endpoint-in-federated-query-with-authentication/3731.md?page=2)
