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.

gefragt vor 8 Monaten194 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
  • Thankyou for providing information.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen