webofdata / specification-archived

WebOfData specification document.
Apache License 2.0
1 stars 0 forks source link

describe reference semantics for embedded subjects #8

Open gra-moore opened 7 years ago

gra-moore commented 7 years ago

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.