- Newest
- Most votes
- Most comments
Based on the current Amazon Neptune documentation, RDF-star is not mentioned as a supported feature in Neptune's SPARQL implementation. Neptune complies with the SPARQL 1.1 Query Language and SPARQL 1.1 Update specification from the W3C, but RDF-star (which extends the RDF data model to allow triples as subjects or objects) is not part of the standard SPARQL 1.1 specification.
For modeling edge-level or statement-level properties in Neptune RDF graphs, the recommended approach is to use named graphs for reification-like patterns or consider alternative modeling strategies:
Named Graphs Approach: Neptune associates every triple with a named graph, and you can use named graphs to provide context or metadata about relationships. When loading or inserting triples, you can specify a named graph using the GRAPH keyword in your SPARQL INSERT statements. This allows you to group related triples together and query them as a unit.
Alternative Modeling: You could model edge properties by creating intermediate resources that represent the relationship itself, then attach properties to those intermediate resources. This is similar to traditional RDF reification but can be implemented in various ways depending on your specific use case.
Consider Property Graphs: If your use case heavily relies on edge properties, you might want to evaluate whether Neptune's property graph model using Gremlin would be more suitable. In the property graph model, edges are first-class citizens that can have properties directly attached to them. Edge properties are natively supported, where you can add properties to edges using the edge identifier.
Regarding a public roadmap or timeline for RDF-star support, this information is not available in the current Neptune documentation. For the most up-to-date information about feature availability and future enhancements, I recommend checking the AWS Neptune service updates or contacting AWS Support through the AWS Support Center at https://console.aws.amazon.com/support/.
Sources
SPARQL standards compliance in Amazon Neptune - Amazon Neptune
Neptune Graph Data Model - Amazon Neptune
Pool model for RDF - AWS Prescriptive Guidance
Loading data into Amazon Neptune using queries - Amazon Neptune
answered 2 months ago
RDF-star (or now the RDF 1.2 draft - not yet fully ratified), is not currently supported in any Neptune engine. Neptune only supports RDF / SPARQL 1.1 as of today. If you're attempting to model "edge properties" in RDF in Neptune, you can use named graphs instead:
GRAPH :statement_1 {
:subject :predicate :object .
}
# Metadata about the named graph
:statement_1 :property1 :value1
:property2 :value2 .
Neptune does not have a public roadmap. If interested in future support for RDF 1.2, please reach out to AWS Support or your AWS account team for them to file a feature request on your behalf.
Relevant content
asked 4 years ago
asked 3 years ago
asked 3 years ago
asked 8 years ago
- AWS OFFICIALUpdated 2 years ago
