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

Proposal for tree:import or a tree:conditionalImport on a tree:Node #17

Closed pietercolpaert closed 3 years ago

pietercolpaert commented 4 years ago

This came up in the Linked Connections 2.0 discussion today: we need to be able to describe when a collection fragments based on a type of entity. Therefore we propose to have a tree:embed on a tree:Node, where other files can be embedded when a client is looking for an entity on a certain property path.

For example:

<currentpage> a tree:Node ;
    tree:qualifiedImport [
        tree:path lc:departureStop ;
        tree:import <stops> 
],[
        tree:path lc:arrivalStop ;
        tree:import <stops> 
],[
        tree:path (gtfs:trip gtfs:route ) ;
        tree:import <routes> 
]  .

This leaves the stops and routes out of a connections collection, and instead tells a client, when interested in these entities, to discover them at another location.

When you always need to import a file with a certain view, you can simply use:

<currentpage> a tree:Node ;
    tree:import <stops> .
hdelva commented 4 years ago

I think that so far tree:path has mostly been a filter on which triples to consider from an external resource, right? Because it seems like in this context, it's the other way around, and it describes where to find more information about the current resource.

Apart from that, I like it!

pietercolpaert commented 4 years ago

@hdelva Good point! So tree:path gets a different meaning in a tree:Embedding than in a tree:Relation. I don’t think this is a huge issue though. Or should we consider different predicates?

pietercolpaert commented 4 years ago

tree:embed → tree:qualifiedImport?

pietercolpaert commented 3 years ago

import and conditionalImport added to the spec.