editor
html
raw-html-rdfa
rdf
Editor
--- title: "Markdown to RDF" date: 2023-10-06 about: "#markdown_to_rdf" author: https://thhck.com/webid#me typeof: "schema:BlogPosting" prefix: "cool: http://cool.org/ schema: http://schema.org/" --- This markdown can be compiled to RDFa ! # how does it work ? ## Some magic with markdown headings Markdown headings ( title starting with `#` ) are compiled into section, which are independant RDF subject. See the RDF pane ! This idea has been shamelessly stolen from (schema:references)[dokieli](https://dokie.li) after a thoughfull industrial espionage session. ## add an RDF property Add a property with: ```md (<prefix>:<predicat>)[<object value>] ``` like: The coolnest of this section is (cool:coolness)[awesome] ! ## add an RDF relation Add a relation with a classic markdown link: ```md (<prefix>:<predicate>)[my link!](<object url>) ``` like: The author of this section is (schema:author)[thhck](https://thhck.com/webid#me) ## References - (schema:references)[markdown RDFa](https://github.com/tetherless-world/markdown-rdfa/)
HTML
Raw HTML-RDFa
RDF