hbz / lobid-resources

Transformation, web frontend, and API for the hbz catalog as LOD
http://lobid.org/resources
Eclipse Public License 2.0
7 stars 7 forks source link

Make statistics of all fields transformed in ALMA-Fix #1509

Open dr0i opened 1 year ago

dr0i commented 1 year ago

We need some statisctics, e.g. if all of the fields denoted in Fix really exist. This is an incomplete snippet which may help to do this:

| decode-json(recordPath="$.data", arrayname="*")
| flatten
| stream-to-triples
| count-triples(countBy="PREDICATE")
| sort-triples(By="subject")
| template("${s}")
| write("stdout")
;
TobiasNx commented 5 months ago

We can use list-fix-paths for this.

dr0i commented 5 months ago

Good hint :) btw, the example to PG is missing in de docu - can you provide one? I opened https://github.com/metafacture/metafacture-documentation/issues/40 for this.