TREEcg / specification

RDF vocabulary and hypermedia specification to publish your Linked Data using search trees
https://w3id.org/tree/specification
27 stars 12 forks source link

Out of band index fragments #23

Open pietercolpaert opened 4 years ago

pietercolpaert commented 4 years ago

Out of band index fragments or TREE overlays could serve the purpose of overlaying an index on another property out of band (thus also allowing third parties to contribute other indexes over the same set of fragments).

Take for example a geospatial TREE where also zip codes are given. A third party may be interested in querying over ZIP codes and may speed up the querying by adding an index.

Example design

<C> a tree:Collection ;
        tree:view <zipcodeOverlay> ;
        tree:relation <R1>, <R2>, <R3> .

<R1> a tree:EqualsRelation ;
        tree:path ex:zipCode ;
        tree:value "8000"^^xsd:string ;
        tree:node <geospatialtree/N1>,<geospatialtree/N2>,<geospatialtree/N3> . #Three nodes from a different tree containing zip codes 8000

Over here, the client needs to also follow all other relations that will be present in the N1, N2 and N3 from the original fragmentation. While this makes sense in this particular example, it may not always make sense to have to rely on the further hypermedia controls from the third party whom you are overlaying. Therefore, we introduce the concept of a tree:Overlay:

<C> a tree:Collection ;
        tree:view <geospatialtree> .
<zipcodeOverlay> a tree:Overlay ;
        tree:overlays <geospatialtree> ;
        tree:relation <R1>, <R2>, <R3> .

<R1> a tree:EqualsRelation ;
        tree:path ex:zipCode ;
        tree:value "8000"^^xsd:string ;
        tree:node <geospatialtree/N1>,<geospatialtree/N2>,<geospatialtree/N3> . #Three nodes containing zip codes 8000
julianrojas87 commented 3 years ago

Could this be related to this LDES issue?

It also seems to have a deprecated use of tree:relation applied to a tree:Collection instead of tree:nodes