triple
triple – A RDFa parser written in awk, capable of outputting content in
A simple RDFa parser written in awk.1 . The various commands can output content formatted as Turtle (Terse RDF Triple Language) or plain text suitable for command line parsing.
Examples
Example of how to parse RDFa to Turtle:
$ cat page.rdfa
<article typeof="schema:webpage" resource="/hello" lang="en">
<h1> property="schema:headline">Hello</h1>
<p>This is a web page.</p>
</article>
$ triple-turtle page.rdfa
@prefix schema: <https://schema.org/> .
</hello>
\ta schema:webpage ;
\tschema:headline "Hello" ;
\tschema:inlanguage "en" .
---
<h1> property="schema:headline">Hello</h1>
<p>This is a web page.</p>
Requirements
License
Download
Current version: 0.0.1
Repository: https://git.senzilla.io/triple