# Stardog 5.0.5.1 and PATH Queries

**URL:** <https://community.stardog.com/t/stardog-5-0-5-1-and-path-queries/768>\
**Category:** Support\
**Created:** [January 15, 2018, 9:53am UTC](https://community.stardog.com/t/stardog-5-0-5-1-and-path-queries/768 "2018-01-15T09:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Fabian](https://community.stardog.com/u/Fabian)\
**Post date:** [January 15, 2018, 9:53am UTC](https://community.stardog.com/t/stardog-5-0-5-1-and-path-queries/768/1 "2018-01-15T09:53:08Z")

</div>

Hi,

Does Stardog 5.0.5.1 support Path Queries [1] ?

In the webconsole I this kind of error (but those queries might not be available from the web console) :  
Parse error on line 4:  
...00/01/rdf-schema#\>PATHS START ?x = \<ht

From CLI I get those errors with the documentation example (that would of course not return any result)  
/home/project/stardog/bin/stardog query projectDB "PATHS START ?x = :Alice END ?y VIA ?p"  
Encountered " \<FUNCTION\_NAME\> "START "" at line 1, column 7.  
Was expecting one of:  
"from" ...  
"shortest" ...  
"cyclic" ...  
"all" ...

Thank you for any help  
Fabian

[1][Home | Stardog Documentation Latest](https://www.stardog.com/docs/#_path_queries_2)

---

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [January 15, 2018, 10:01am UTC](https://community.stardog.com/t/stardog-5-0-5-1-and-path-queries/768/2 "2018-01-15T10:01:51Z")

</div>

Hi Fabian,

Path queries were in beta prior to 5.1 and their syntax changed (based on feedback) in 5.1. So while it’s possible to run (a subset of) path query functionality with 5.0.5.1 it’s much better to upgrade.

I think the syntax was like this back then:

```auto
PATHS FROM (:Alice AS ?x) TO ?y MAX DEPTH 2 { 
  ?x ?p ?y 
}

```

It wasn’t possible to use SPARQL patterns to define sets of start and end nodes. It’s likely there was no Webconsole support at that point, too but CLI and Java/HTTP APIs should work.

Cheers,  
Pavel

---

<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 29, 2018, 10:05am UTC](https://community.stardog.com/t/stardog-5-0-5-1-and-path-queries/768/3 "2018-01-29T10:05:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
