Files are graph values alongside strings, dates, and numbers. Legra's extended value model works with RDF and labelled property graphs (LPG).
Cypher and GQL
A vertex (node) can have a property whose value is an entire file. For a meeting recording:
| Vertex | Property | Value |
|---|---|---|
| A meeting | Recording | An audio file |
If the recording has its own author, date, or other metadata, give it a separate vertex with a content property. Connect that vertex to the meeting with a has-recording edge.
RDF and SPARQL
An RDF triple expresses the same example as a subject, predicate, and object. Legra's extended RDF literals let the object contain the audio file:
| Subject | Predicate | Object |
|---|---|---|
| A meeting | Has recording | An audio file literal |
Both views use the same file content and media type.