bio-guoda / preston

a biodiversity dataset tracker
MIT License
26 stars 1 forks source link

no results for [preston cat] when streaming hasVersion statement with composite content id (e.g., cut:hash://md5/abc...!/b1-2) #288

Closed jhpoelen closed 3 months ago

jhpoelen commented 6 months ago

when feeding version statements into [preston cat],

echo -e\
'<cut:hash://sha256/a54fbd3bc1eba272cdba5ba4f4c121c1ee45eee62252f8b1a7afda75c1545c7c!/b7-2980> <http://purl.org/pav/hasVersion> <cut:hash://sha256/a54fbd3bc1eba272cdba5ba4f4c121c1ee45eee62252f8b1a7afda75c1545c7c!/b7-2980> .'\
 | preston cat 

produced no output, whereas

preston cat 'cut:hash://sha256/a54fbd3bc1eba272cdba5ba4f4c121c1ee45eee62252f8b1a7afda75c1545c7c!/b7-2980'\
 | head

produced:

{
        "key": "STX9TZD9",
        "version": 5,
        "library": {
            "type": "group",
            "id": 5532807,
            "name": "preston",
            "links": {
                "alternate": {
                    "href": "https://www.zotero.org/groups/preston",

Suggest to make preston cat return the content when streaming the version statements via stdin.

jhpoelen commented 3 months ago

issues appears to have been fixed -

I was able to

echo -e '<cut:hash://sha256/a54fbd3bc1eba272cdba5ba4f4c121c1ee45eee62252f8b1a7afda75c1545c7c!/b7-2980> <http://purl.org/pav/hasVersion> <cut:hash://md5/f7f2888fbe120cd78c6e6c9e23fc1109!/b7-2980> .' | preston cat --remote https://linker.bio

and

preston\
 cat 'cut:hash://md5/f7f2888fbe120cd78c6e6c9e23fc1109!/b7-2980'\
 --remote https://linker.bio

produced the same content:

ctReviewCommentCount    type    comment
102 issue   found unsupported interaction type with name: [shady gully bottom near perennial stream. Vegetation]
102 issue   invalid date string [13-09-1961]
105 issue   found unsupported interaction type with name: [Associated Plants]
105 issue   found unsupported interaction type with name: [primary vegetation]
107 issue   found unsupported interaction type with name: [Previous Crop]
107 issue   found unsupported interaction type with name: [relative abundance]
108 issue   found unsupported interaction type with name: [Stunted `ohi`a wetland dieback. Assoc. spp.]
109 issue   found unsupported interaction type with name: [substrate unknown. Primary vegetation]
109 issue   found unsupported interaction type with name: [Temp(C)]
10  issue   found unsupported interaction type with name: [20 degree aspect. Vegetation]
10  issue   found unsupported interaction type with name: [5 m `Ohi`a Montane Wet Forest. Assoc. veg.]
10  issue   found unsupported interaction type with name: [75% closed. Vegetation associates]
10  issue   found unsupported interaction type with name: [about 30 plants observed vertical slopes     Vegetation]
10  issue   found unsupported interaction type with name: [Along a steep slope. Specimen was situated near the gulch bottom in alien dominated forest. Associated vegetation]
10  issue   found unsupported interaction type with name: [and Oxalis gagneorus.  Threats]
10  issue   found unsupported interaction type with name: [and Oxalis gagneorus.  Threts]
10  issue   found unsupported interaction type with name: [Begeitpflanzen]
10  issue   found unsupported interaction type with name: [Branches hanging over bank above stream bed. Associated plants]
10  issue   found unsupported interaction type with name: [bryophytes common in understory. Major Threats]
10  issue   found unsupported interaction type with name: [Chamaesycem and Ixakus gagneorum. Threats]
10  issue   found unsupported interaction type with name: [climbing surrounding vegetation & sprawling on ground. Assoc. veg.]
10  issue   found unsupported interaction type with name: [colonizing area burned about one year ago. Vegetation]
10  issue   found unsupported interaction type with name: [Common in 4m Metrosideros montane wet forest. Assoc. veg.]
10  issue   found unsupported interaction type with name: [Dense forest. Assoc. veg.]
10  issue   found unsupported interaction type with name: [Dense healthy. Soils deep and moderately drained ash type. Pocket of poorly drained soils. Substrate unknown. Primary vegetation]
10  issue   found unsupported interaction type with name: [Dicranopteris linearis. Threats]
10  issue   found unsupported interaction type with name: [distribution]
10  issue   found unsupported interaction type with name: [growing in open to shady places. Associated vegetation]
10  issue   found unsupported interaction type with name: [Growing in semi-dry gulch. Associates]
10  issue   found unsupported interaction type with name: [Growing on a windy ridge. Associated vegetation]