the @ indicates a reference to a subject from another subject. It is possible to query the inverse of these references, but are there cases when those references should not define an inverse? The case I am thinking about is when a subject representation embeds another subject representation.
the @ indicates a reference to a subject from another subject. It is possible to query the inverse of these references, but are there cases when those references should not define an inverse? The case I am thinking about is when a subject representation embeds another subject representation.
e.g.
{ "_id" : "people:gra", "city" : {
"_id" : "cities:Oslo", "@country" : "countries:Norway" } }
In this example does the query:
connected-to("countries:Norway") return "people:gra", "cities:Oslo", neither or both?
We might need to introduce more details on the conceptual data model to make this a bit more robust.