driebit / ginger

Ginger: awesome semantic CMS built on Zotonic
http://ginger.nl
Apache License 2.0
29 stars 9 forks source link

mod_ginger_rdf: Leave out empty translation strings in rdf output #736

Open robvandenbogaard opened 3 months ago

robvandenbogaard commented 3 months ago

Empty translations or entirely omitted properties should not end up as triples with empty string literal objects in the rdf rendering of resources. It doesn't add much value and clutters the view on the actual content. More so for many to 1 maps, where multiple source properties map to the same predicate (e.g. a project specific mapping where schema:description is sourced from both resource summary and body text - where summary is a default mapping but typically left blank in this project).