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 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).
Watch me rant about the #SocialWeb, #RDFa, and #XHTML.
@gugurumbe W3C #RDFa is what you are looking for:
* https://www.w3.org/TR/rdfa-core/
* https://www.w3.org/TR/rdfa-syntax/
* https://www.w3.org/TR/rdfa-in-html/
* https://www.w3.org/TR/xhtml-rdfa-scenarios/
@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
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
7/
If you are wondering what RDFa is —
You might be more familiar with OpenGraph.
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
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