oeg-upm / rmldoc

Python package designed to generate documentation for RML mappings
Apache License 2.0
10 stars 1 forks source link

Handling the `jinja2.exceptions.UndefinedError: 'v' is undefined` exception #8

Closed GenEars closed 3 months ago

GenEars commented 3 months ago

Minor template adjustments to match RML rules with metadata such as:

map:rules_000
    rdf:type schema:Dataset;
    schema:contributor map:person_000 ;
    schema:contributor map:person_001 ;
    void:exampleResource <https://github.com/Orange-OpenSource/graphameleon-ds> ;
    schema:version "0.1.0";
    schema:title "Graphameleon - macro";
    schema:dateCreated "01-10-2023";
    schema:description "RML mapping for data collection using Graphameleon in macro mode.";
    schema:license <https://github.com/Orange-OpenSource/graphameleon/blob/main/LICENSE.txt> ;
.

or (same as above without the schema:license triple):

map:rules_000
    rdf:type schema:Dataset;
    schema:contributor map:person_000 ;
    schema:contributor map:person_001 ;
    void:exampleResource <https://github.com/Orange-OpenSource/graphameleon-ds> ;
    schema:version "0.1.0";
    schema:title "Graphameleon - macro";
    schema:dateCreated "01-10-2023";
    schema:description "RML mapping for data collection using Graphameleon in macro mode.";
.
GenEars commented 3 months ago

See https://github.com/Orange-OpenSource/graphameleon/blob/dev-rmldoc/mapping/micro_v2/rules.ttl.md for an output example. Main difference with the original RMLdoc is that the license field is rendered using bullet points.

jatoledo commented 3 months ago

Thank you for using RMLdoc.