path queries in sparql


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 10 months ago228 views
1 Answer
Accepted Answer

Neptune supports SPARQL via the SPARQL 1.1 w3c specification. As noted here:

What you're referring to above is not part of the SPARQL 1.1 specification and is something custom within Stardog:

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 10 months ago
profile picture
reviewed 3 months 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