I don't think that this is a good pattern.
|
get photoUrl(): string | null { |
|
return ( |
|
this.singularNullable(VCARD.hasPhoto, ValueMapping.iriToString) ?? |
|
this.singularNullable(VCARD.hasPhoto, ValueMapping.literalToString) ?? |
|
null |
|
); |
|
} |
My interpretation of the intent in this code is 'give me a string which is either the IRI of a named node or the lexical value of a literal node'.
Please let me know. I think there might be a feature request here for the Wrapper library.
I don't think that this is a good pattern.
volunteering-demo/app/lib/class/Agent.ts
Lines 110 to 116 in 9fde751
My interpretation of the intent in this code is 'give me a string which is either the IRI of a named node or the lexical value of a literal node'.
Please let me know. I think there might be a feature request here for the Wrapper library.