path queries in sparql

0

DISTINCT PATHS #from urn:stardog:tutorials:paths:1.0:paths-tutorial-data    START ?x {        ?x a dm:Investor ;           dm:name "Wake Finance" .        ?x rdfs:label ?name .    }    END ?y {        ?y rdfs:label "Bob Sawyer" .        ?y rdfs:label ?namey .    }    VIA {        {?x ?p ?y} UNION {?y ?p ?x}        ?p rdfs:label ?title .    } can this query work in aws Neptune using sparql magic command.

asked 8 months ago183 views
1 Answer
1
Accepted Answer

Neptune supports SPARQL via the SPARQL 1.1 w3c specification. As noted here: https://docs.aws.amazon.com/neptune/latest/userguide/feature-sparql-compliance.html

What you're referring to above is not part of the SPARQL 1.1 specification and is something custom within Stardog: https://www.stardog.com/blog/a-path-of-our-own/

Path finding queries are generally easier to express in the Property Graph query languages (Gremlin and openCypher):

If you're use case's primary function requires path finding, then we generally recommend to use Neptune to host a Property Graph instead of an RDF graph.

profile pictureAWS
answered 8 months ago
profile picture
EXPERT
reviewed a month ago
  • Thankyou for providing information.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions