diff --git a/tools/exp/convert/convert.go b/tools/exp/convert/convert.go index 62ea0b0..b47f3d3 100644 --- a/tools/exp/convert/convert.go +++ b/tools/exp/convert/convert.go @@ -423,6 +423,7 @@ func (c Converter) convertNonFunctionalProperty(p rdf.VocabularyProperty, v.GetName(), pm, c.toIdentifier(p), + p.Notes, k, p.NaturalLanguageMap) return diff --git a/tools/exp/props/nonfuncprop.go b/tools/exp/props/nonfuncprop.go index 9ebc779..ec3dc61 100644 --- a/tools/exp/props/nonfuncprop.go +++ b/tools/exp/props/nonfuncprop.go @@ -30,6 +30,7 @@ type NonFunctionalPropertyGenerator struct { func NewNonFunctionalPropertyGenerator(vocabName string, pm *PackageManager, name Identifier, + comment string, kinds []Kind, hasNaturalLanguageMap bool) *NonFunctionalPropertyGenerator { return &NonFunctionalPropertyGenerator{ @@ -38,6 +39,7 @@ func NewNonFunctionalPropertyGenerator(vocabName string, PackageManager: pm, HasNaturalLanguageMap: hasNaturalLanguageMap, Name: name, + Comment: comment, Kinds: kinds, }, } @@ -47,8 +49,7 @@ func NewNonFunctionalPropertyGenerator(vocabName string, func (p *NonFunctionalPropertyGenerator) InterfaceDefinitions(pkg Package) []*codegen.Interface { s, t := p.Definitions() return []*codegen.Interface{ - // TODO: Comments - s.ToInterface(pkg.Path(), p.elementTypeGenerator().InterfaceName(), ""), + s.ToInterface(pkg.Path(), p.elementTypeGenerator().InterfaceName(), fmt.Sprintf("%s represents a single value for the %q property.", p.elementTypeGenerator().InterfaceName(), p.PropertyName())), t.ToInterface(pkg.Path(), p.InterfaceName(), p.Comments()), } }