OCaml-RDF 1.2.0 is out (and soon in opam)
https://www.good-eris.net/ocaml-rdf/posts/ocaml-rdf-1.2.0.html

Two main additions in this release:
- A #rdfa processor
- a new Igraph module for immutable graphs (for functional style).

#ocaml #rdf

OCaml-RDF : OCaml-RDF 1.2.0

RDFa Core 1.1 - Third Edition

@jyasskin Off topic: Not what you're looking for but in case of minor interest, and perhaps with a broader view on "accessible" to both humans and machines, see https://www.w3.org/TR/ldn/linked-data-notifications-overview.svg

You can try input format #RDFa with the URI above and output to whatever e.g., graphviz.

What interests to me about this information embedding/extraction.

That said, perhaps I can propose an update to improve the accessibility tree on that SVG.

RDFa Lite tries to be an "easier" subset of RDFa

RDFa is RDF encoded into HTML in a way that sort of feels like Microformats. Sort of

Of course, one question might be — easier for whom?

I think there could be an even "easier" subset of RDFa Lite that is easier for people writing parsers

Get rid of the "vocab" and "prefix" attributes, and —

Just have the "property", "resource", & "typeof" attributes

I will call this: RDFa Super Lite

#LinkedData #JSONLD #RDF #RDFa #RDFaSuperLite #RDFaLite

9/

A regular users might write Markdown like this:

"""
# Hello!

How do you do?
"""

Or write HTML like this:

"""
<article>
<h1>Hello!</h1>
<p>How do you do?</p>
</article>
"""

#ActivityPub #ActivityStreams #FediDev #Fediverse #Markdown #retejo #RDFa

8/

REMEMBER: this is for power-users, not regular users

How would you get ActivityPub / ActivityStreams into HTML using RDFa‽

Like this:

<div vocab="https://www.w3.org/ns/activitystreams#" typeof="Note">
<p property="name">Hello!</p>
<p>How do you do?</p>
</div>

AGAIN, REMEMBER: this is for power-users, not regular users.

Regular users can just write Markdown or HTML and Retejo will figure this out automatically for you

#ActivityPub #ActivityStreams #FediDev #Fediverse #Markdown #retejo #RDFa

ActivityStreams 2.0 Terms

This document lists the terms used for the ActivityStreams 2.0 protocol and its stable extensions, and provides a namespace so each term has an HTTP IRI.

7/

If you are wondering what RDFa is —

You might be more familiar with OpenGraph.

https://ogp.me/

OpenGraph is usually the thing that causes "preview cards" to be showed for links shared on social-media.

OpenGraph is written in RDFa. Which, in practice, is some special HTML elements added to the page.

For example:

<meta property="og:image" content="https://example.com/img/preview.png" />

So what about ActivityPub‽ —

#ActivityPub #ActivityStreams #FediDev #Fediverse #Markdown #retejo #RDFa

Open Graph protocol

The Open Graph protocol enables any web page to become a rich object in a social graph.

6/

Obviously, beginners are NOT going to do this, but — some power-users may want this level of control.

There are different way this could be done, but — one way might be that power-users could use RDFa to explicitly specify what data from the HTML gets into the ActivityPub / ActivityStreams data.

Again, beginners and typical users would NOT do this.

But a power-user might want to.

Here is an example —

#ActivityPub #ActivityStreams #FediDev #Fediverse #Markdown #retejo #RDFa

5/

So, what would be a good user-experience (UX) for power-users be — in a system that automatically creates ActivityPub / ActivityStreams data from HTML and Markdown‽

One thought I had is that power-users could explicitly mark what data from their HTML gets into the ActivityPub / ActivityStreams data (if they want to).

I'll explain —

#ActivityPub #ActivityStreams #FediDev #Fediverse #Markdown #retejo #RDFa