bbcarchdev / spindle

RES Linked Open Data aggregation engine
https://bbcarchdev.github.io/spindle/
Apache License 2.0
2 stars 1 forks source link

Quilt module: add sub-graphs for collection members, collections a proxy is part of, related media, and related topics #109

Closed nevali closed 6 years ago

nevali commented 7 years ago
/UUID/members
/UUID/collections
/UUID/media
/UUID/related

Internal tracking: RESDATA-1124

nevali commented 7 years ago

Quilt should take the following approach:

  1. Only used cached data when not fetching a sub-graph; just generate summary information (as per #106)
  2. If the request is for a sub-graph (e.g., explicit request for members) or the sub-graph is not present in the cache (because it's not been generated by Twine [yet]), perform a SQL query as appropriate.

Sub-graphs are modelled along the lines of (formatted as TriG):


</479a591a520942dd8f0845b3123fdf07> {
  </479a591a520942dd8f0845b3123fdf07>
    a foaf:Document ;
    rdfs:seeAlso </479a591a520942dd8f0845b3123fdf07/media> .

  </479a591a520942dd8f0845b3123fdf07#id>
    a frbr:Work ;
    rdfs:label "The Foundation of the National Health Service"@en ;
    mrss:player <https://www.youtube.com/embed/0pnEMBgEG24?list=PLcvEcrsF_9zI2dNGU9uUOWo9tenQi93UG> ;
    wrds:isDescribedBy </479a591a520942dd8f0845b3123fdf07/media> .

}

</479a591a520942dd8f0845b3123fdf07/media> {

  <479a591a520942dd8f0845b3123fdf07/media>
    a void:Dataset ;
    dct:isPartOf </479a591a520942dd8f0845b3123fdf07> ;
    rdfs:label "Media related to the creative work 'The Foundation of the National Health Service'"@en .

  </479a591a520942dd8f0845b3123fdf07#id>
    a frbr:Work ;
    rdfs:label "The Foundation of the National Health Service"@en ;
    olo:Slot </479a591a520942dd8f0845b3123fdf07/media#a7a764527fbc45daa68c79220f867684> .

}
nevali commented 6 years ago

Superseded by patchwork issue.