SolidBench / rdf-dataset-fragmenter.js

Fragments an RDF dataset into multiple parts
MIT License
3 stars 7 forks source link

What does "grouping triples" mean? #34

Open pchampin opened 3 months ago

pchampin commented 3 months ago

The README says:

Resource Object Fragmentation Strategy

A fragmentation strategy that groups triples by (subject) resources, and places quads into the document identified by the given predicate value.

I don't understand what "groups triples" means in this sentence. It seems to mean something different than "placed in separate files", but it also does not seem to mean "grouped in the output" (if the subject with a given subject are separated in the input, they are still separated in the output).

So this sentence should probably be rephrased to be more explicit about what exactly this strategy does.

rubensworks commented 3 months ago

For all triples that match the given predicate, files will be created for all matching object values. But it will go one step further, and also include all triples into that file that share the same subject of that matched triple.

pchampin commented 3 months ago

Ah... got it! May I suggest then to rephrase to:

A fragmentation strategy that groups triples/quads by (subject) resources, and places each group into the document identified by the given predicate value for this group.

rubensworks commented 3 months ago

Yes, that definitely makes sense!