IPIF / prosopogrAPhI

Tentative way towards a shared API for prosopographical data based on the factoid model (Bradley/Short 2005)
24 stars 6 forks source link

factoids-ref in Person schema serialized object rather than pointer #19

Closed sennierer closed 4 years ago

sennierer commented 4 years ago

Is it intended that here: https://github.com/GVogeler/prosopogrAPhI/blob/1e9534ee1d43f9bdb5afce731e18ad3d94367966/prosopogrAPhI.yaml#L756-L759 we do not point to the factoids (like we do it normally), but rather include a serialization of them?

GVogeler commented 4 years ago

Well, not really serialising them, but using them as a container for further pointers. This would make clear, that these pointers are not affected by the filter of the original resource (/person/?filter=X returns a list of persons filtered by X and the factoids refering to the persons. These factoids are entities independent from the original resource. Does this make sense?

GVogeler commented 4 years ago

and it would spare us one additional call for retrieving the identifiers of the resources linked to the original resource via the factoid intermediate.

sennierer commented 4 years ago

yes, my fault, thought it was a full serialization.