- From: Phil Barker <phil.barker@pjjk.co.uk>
- Date: Thu, 20 Feb 2020 14:00:07 +0000
- To: public-schemaorg@w3.org
- Message-ID: <71ef7a4b-34b4-4752-ce93-9c07bfc3df08@pjjk.co.uk>
Hello. I wrote a python-markdown plugin that will allow you to put YAML
metadata into markdown and have it converted to JSON-LD in HTML. See
https://blogs.pjjk.net/phil/metadata-for-markdown-mkdocs/
(Related: another plugin for python markdown that allows you to put
HTML5 semantic sections into markdown
https://blogs.pjjk.net/phil/html5-semantic-sections-with-markdown/ )
Both only work if you're processing your markdown with python (I use
them with MkDocs <https://www.mkdocs.org/>). Neither will generate RDFa
or Microdata in the way your example shows, so you may wind up
reproducing a lot of your content in YAML.
Phil
On 20/02/2020 12:26, Thomas Francart wrote:
> Hello schema.org <http://schema.org> community
>
> I was recently asked by someone how he could insert semantic markup in
> HTML pages generated from Markdown source files. Does anyone know of a
> Markdown extension, and a markdown processor, capable of inserting
> either JSON-LD, RDFa or Microdata in the generated HTML ?
>
> If this doesn't exist, we should really invent "semantic markdown" !
> Ideas of such markup could be :
>
> Inline annotation :
> ```
> Tomorrow I am travelling to _Berlin_ {.schema:Place}
> ```
>
> Title annotation :
> ```
> ### European Semantic Web Conference {.schema:Event}
> ```
>
> Entity description :
> ```
> ### Specifications Meeting {.schema:Event}
>
> * Date{.schema:startDate} : 11/10
> * Place{.schema:location} : Our office, Street name, 75014 Paris
> * Meeting participants{.schema:attendee} :
> * Thomas Francart{.schema:Person}
> * [Someone Else With a URI](https://www.wikidata.org/wiki/Q80)
> ```
>
> Best Regards
> Thomas
>
> --
> *
> *
> *Thomas Francart* -*SPARNA*
> Web de _données_ | Architecture de l'_information_ | Accès aux
> _connaissances_
> blog : blog.sparna.fr <http://blog.sparna.fr>, site : sparna.fr
> <http://sparna.fr>, linkedin : fr.linkedin.com/in/thomasfrancart
> <https://fr.linkedin.com/in/thomasfrancart>
> tel : +33 (0)6.71.11.25.97, skype : francartthomas
--
Phil Barker <http://people.pjjk.net/phil>. http://people.pjjk.net/phil
CETIS LLP <https://www.cetis.org.uk>: a cooperative consultancy for
innovation in education technology.
PJJK Limited <https://www.pjjk.co.uk>: technology to enhance learning;
information systems for education.
CETIS is a co-operative limited liability partnership, registered in
England number OC399090
PJJK Limited is registered in Scotland as a private limited company,
number SC569282.
Received on Thursday, 20 February 2020 14:00:25 UTC