dgarijo / Widoco

Wizard for documenting ontologies. WIDOCO is a step by step generator of HTML templates with the documentation of your ontology. It uses the LODE environment to create part of the template.
Apache License 2.0
295 stars 89 forks source link

Display a specific image for each classes, properties or named individuals. #715

Open MarcKramerInfrabel opened 5 months ago

MarcKramerInfrabel commented 5 months ago

Is your feature request related to a problem? Please describe.

I try to display different images or a diagrams for specific classes, properties or named individuals. I tried this code: edm-application-direction:EdmApplicationDirection a skos:ConceptScheme ; rdfs:comment "Indicates the allowed direction of railway trafic. (example using rdfs:comment)"@en ; rdfs:comment """ assets/logo_infrabel_1000px.png """; skos:prefLabel "Application direction"@en ; skos:definition "Direction of application of a location"@en ; skos:example """ assets/logo_infrabel_1000px.png """; skos:example "Indicates the allowed direction of railway trafic. (example using skos:example)"@en; foaf:depiction """ assets/infrabel-topology.png """.

But the image doesn't display: image

Describe the solution you'd like Is there a way to display images, i dont find a solution on your best practice documentation.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

dgarijo commented 5 months ago

At the moment we don't support displaying images for individuals or other concepts (vann:example will add them in a turtle box highlight). A workaround may be 1) to include it in markdown in the description of the term, or 2) as a direct link to the full image file, which won't be displayed in the html but at least will open

MarcKramerInfrabel commented 5 months ago

ok thanks. i will give it a try.