# Geof:relate boolean function returns incosistent results compared to the predicate form (BGP)

**URL:** <https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778>\
**Category:** Support\
**Created:** [May 26, 2022, 7:17am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778 "2022-05-26T07:17:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theofilos\_Ioannidis](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/theofilos_ioannidis/32/1914_2.png) [@Theofilos\_Ioannidis](https://community.stardog.com/u/Theofilos_Ioannidis)\
**Post date:** [May 26, 2022, 7:17am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/1 "2022-05-26T07:17:57Z")

</div>

Hi, I am trying to use the geof:relate to simulate the GeoSPARQL geof:sfIntersects.

I created a repo "basic1" from the following N-Triples file:  
[basic1.nt](https://community.stardog.com/uploads/short-url/syHwbUP8kxlxZSIPuXO4Zjli998.nt) (3.3 KB)

It contains 5 features with their geometries. The following picture depicts the geometries in a map:

 ![Basic1_Map.PNG](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/6/6dac7c4abcb88c51dce855549dff9e6254482bab.jpeg)

The same data file was used to create a similar repo with GraphDB v9.11.1.

The GeoSPARQL query that needs to run is the following and the expected answer should contain all 5 geometries. The following picture for reference is from GraphDB UI:

 ![GraphDB_Query_Ans](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ec06e9b535e9650e4a17fd5b0b9d857f5ae2b597.png)

Stardog does not support the GeoSPARQL geof:sfIntersects and I used geof:relate both as a boolean function and as the predicate in BGP to simulate it. I had to replace WKT serialization literals with the geometries as well. The BGP form returns the correct number of solutions while the functional form returns only one!

Below you can see the query and result for the BGP form which is correct:

 ![Stardog_Pred_Query_Ans](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/4/4176a754223cc6432c4fafb1b47e64ddcda1e5f4.png)

Here you can see the query and result for the functional form which returns 1 out of 5 results:

 ![Stardog_Func_Query_Ans](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/f/fc33127bc3422dca6c50ec9b8492863374636d45.png)

Shouldn't both forms return the same result set?

Regards

---

<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 3, 2022, 12:11pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/2 "2022-06-03T12:11:36Z")

</div>

Automatically bumped on June 3, 2022, 12:11pm UTC



---

<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 12, 2022, 11:02pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/3 "2022-06-12T23:02:47Z")

</div>

Automatically bumped on June 12, 2022, 11:02pm UTC



---

<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 23, 2022, 10:40am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/4 "2022-06-23T10:40:26Z")

</div>

Automatically bumped on June 23, 2022, 10:40am UTC



---

<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 4, 2022, 3:18pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/5 "2022-07-04T15:18:47Z")

</div>

Automatically bumped on July 4, 2022, 3:18pm UTC



---

<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 16, 2022, 3:03am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/6 "2022-07-16T03:03:50Z")

</div>

Automatically bumped on July 16, 2022, 3:03am UTC



---

<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 27, 2022, 3:40pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/7 "2022-07-27T15:40:43Z")

</div>

Automatically bumped on July 27, 2022, 3:40pm UTC



---

<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 10, 2022, 4:51am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/8 "2022-08-10T04:51:37Z")

</div>

Automatically bumped on August 10, 2022, 4:51am UTC



---

<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 24, 2022, 12:55am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/9 "2022-08-24T00:55:17Z")

</div>

Automatically bumped on August 24, 2022, 12:55am UTC



---

<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 6, 2022, 10:24pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/10 "2022-09-06T22:24:43Z")

</div>

Automatically bumped on September 6, 2022, 10:24pm UTC



---

<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 20, 2022, 6:40pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/11 "2022-09-20T18:40:32Z")

</div>

Automatically bumped on September 20, 2022, 6:40pm UTC



---

<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 4, 2022, 2:49pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/12 "2022-10-04T14:49:41Z")

</div>

Automatically bumped on October 4, 2022, 2:49pm UTC



---

<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 18, 2022, 7:58pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/13 "2022-10-18T19:58:10Z")

</div>

Automatically bumped on October 18, 2022, 7:58pm UTC



---

<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 3, 2022, 11:23am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/14 "2022-11-03T11:23:07Z")

</div>

Automatically bumped on November 3, 2022, 11:23am UTC



---

<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 22, 2022, 1:24am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/15 "2022-11-22T01:24:12Z")

</div>

Automatically bumped on November 22, 2022, 1:24am UTC



---

<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 15, 2022, 10:36am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/16 "2022-12-15T10:36:27Z")

</div>

Automatically bumped on December 15, 2022, 10:36am UTC



---

<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:** [January 11, 2023, 4:25am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/17 "2023-01-11T04:25:32Z")

</div>

Automatically bumped on January 11, 2023, 4:25am UTC



---

<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:** [February 7, 2023, 2:53pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/18 "2023-02-07T14:53:51Z")

</div>

Automatically bumped on February 7, 2023, 2:53pm UTC



---

<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:** [March 7, 2023, 6:17pm UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/19 "2023-03-07T18:17:25Z")

</div>

Automatically bumped on March 7, 2023, 6:17pm UTC



---

<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:** [April 5, 2023, 5:07am UTC](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778/20 "2023-04-05T05:07:31Z")

</div>

Automatically bumped on April 5, 2023, 5:07am UTC



[Next page](https://community.stardog.com/t/geof-relate-boolean-function-returns-incosistent-results-compared-to-the-predicate-form-bgp/3778.md?page=2)
