just published an update to my HyperCLI utility (https://www.npmjs.com/package/@mamund/hyper).

updated the OAUTH plugin to support mastodon.

still some work to do to clear up app vs user authorization but now the fun continues.

#API360 #MastoAPI #HyperCLI

@mamund/hyper

Sample project to explore an interactive shell for hypermedia services. Latest version: 1.12.0, last published: 3 minutes ago. Start using @mamund/hyper in your project by running `npm i @mamund/hyper`. There is 1 other project in the npm registry using @mamund/hyper.

npm
@mamund that's really interesting! Wonder how applicable it could be with TREE hypermedia https://tree.linkeddatafragments.org
TREE

@pietercolpaert i wonder, too.

i scanned the docs and i couldn't find an example of a TREE hypermedia response anywhere. can you point me in the right direction?

there isn't any useful documentation yet for HyperLANG/HyperCLI (working on it right now) but authoring a plug-in that supports additional hypermedia formats is relatively simple, too.

i see Linked Data Event Streams referenced here. i doubt the CLI would work for a streaming service.

#hypermedia #linkedData #jsonld #hyper

@mamund Linked Data Event Streams are actually just a TREE hypermedia document structure with immutable members. So the event stream is published using HTTP responses with hypermedia controls that indicate what part of the collection you can find when following the link ↓

Examples:
* In the repo: https://github.com/TREEcg/specification/tree/master/examples
* A live one with substring relations for municipalities: https://ddvlanck.github.io/Republish-LDES/gemeente-substrings/root.ttl

#knowledgegraphs

specification/examples at master · TREEcg/specification

RDF vocabulary and specification. Contribute to TREEcg/specification development by creating an account on GitHub.

GitHub

@pietercolpaert thanks for the pointers.

Hyper relies quite a bit on "structural hypermedia" in the responses. See https://github.com/webapicookbook/hyper/blob/main/scripts/cj-support.txt and https://github.com/webapicookbook/hyper/blob/main/scripts/siren-support.txt

when i scan the municipalities example, i cannot find the hypermedia -- IIRC, RDF foramts don't have structural hypermedia elements (like HTML, SIREN, etc.) but can have them added via applied vocabularies (ala Hydra).

so ..

hyper/cj-support.txt at main · webapicookbook/hyper

sample project for an interactive hypermedia shell - hyper/cj-support.txt at main · webapicookbook/hyper

GitHub

@pietercolpaert

i suspect that Hyper would need to support SPARQL or some other query language (to mirror Hyper's JPATH and XPATH support) as a start.

then, in order to find & use the hypermedia, Hyper needs (at least one) plug-in that understands response structures -- including the ability to find, fill, and activate hypermedia in the responses.

these steps are beyond my skills and i'd be happy to explore what it would take to help someone else bring these to the project.

#rdf #hydra

@mamund TREE was inspired by Hydra indeed. Going to look into how we can make this work when I find the time!

@pietercolpaert all sounds good.

my sked is tight, too.

when i finally get around to considering RDF support, i might ping you for some advice/assistance.

cheers.

@mamund happy to answer any question you may have about hypermedia in RDF. I'm pretty enthusiastic about the topic 😅
#knowledgegraphs day 5 is about Linked Data Event Streams! LDES combines the power of the event sourcing architectural pattern with Linked Data publishing. Check the post this post is a reply to! ☝️