pelican-rdf plugin ================== A plugin for rdf vocabularies providers --------------------------------------- # Overview This plugin is intended at easing the lightwheight description of vocabularies online, in the fashion of http://vocab.linkeddata.es/. It offers a new media type, the Vocabulary, and a flexible mechanism to gather metadata about said vocabulary based on sparql queries. # How it works ## Required configuration ### Description of the variables Your pelicanconf.py should include new options : - **VOC_PATHS**: A list of paths to a local folders containing vocabularies. If all your vocabularies are remote, set its value to an empty list. - **VOC_EXCLUDES**: A list of paths to folders where you don't want vocabularies to be processed. - **VOC_URIS** = A list of URLs pointing to dereferencable vocabularies. Content is negociated to retrieve RDF/XML. - **VOC_QUERIES_PATH** = Path th the folder containing the sparql queries to collect metadata about the vocabulary. - **VOCABULARY_URL**= How the generated document URL should look like - **VOCABULARY_SAVE_AS**= How the generated document should be named ### Default configuration ``` VOC_PATHS=['ontologies'] VOC_EXCLUDES=[] VOC_URIS = ["https://www.irit.fr/recherches/MELODI/ontologies/IoT-O",] VOC_QUERIES_PATH = "plugins/pelican-rdf/sparql-queries" VOCABULARY_URL= '{slug}.html' VOCABULARY_SAVE_AS= '{slug}.html' ``` ## Accessing the vocabulary metadata ### First, a simple example... The following snippet of code outputs a description of the vocabularies that have been processed : ```
Title | Description | License (if any) |
---|---|---|
{{ voc.title }} |
{{ voc.description }}
|
{{ voc.lov_metadata.license }} |
{{ class.comment }}