RubenVerborgh / WebsiteToRDF

A simple ETL pipeline for HTML+RDFa websites

Home Page:https://ruben.verborgh.org/articles/queryable-research-data/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert HTML+RDFa to Turtle

This repository contains a simple pipeline that extracts HTML+RDFa data from webpages and combines them into a single Turtle file from it. Semantic gaps are filled by reasoning.

As a result, your website's data can be queried with SPARQL at 100% completeness and without worrying about vocabularies.

The article “Piecing the puzzle – Self-publishing queryable research data on the Web” explains in detail what the pipeline does and how it works.

Requirements

Running the pipeline

$ ./extract-website-data https://example.org/ /var/www/example.org/

where https://example.org/ is the URL of your homepage and /var/www/example.org/ the location of its HTML files.

Customizing the pipeline

Place the ontologies you want to reason on in the ontologies folder.

Rules for common RDFS and OWL constructs are available at the EYE website.

Run via Docker

  • Build the Docker image with docker build -t WebsiteToRDF .
  • Run container with docker run -v /path/to/site:/data -v /path/to/results/folder:/result -i --rm WebsiteToRDF https://example.org/.
  • The RDF triples will be available in /path/to/results/folder/website.nt.

License

©2017 Ruben VerborghMIT License.

About

A simple ETL pipeline for HTML+RDFa websites

https://ruben.verborgh.org/articles/queryable-research-data/

License:MIT License


Languages

Language:Shell 58.5%Language:Dockerfile 23.8%Language:JavaScript 17.7%