Take a simple model with field names embedded in URL and attribute;
<person/(id)> a s:Person;
s:additionalType <type/(type)>;
s:name "(name)".
<type/(type)> a puml:InlineProperty.
rdfpuml mangles (...) to [...] to avoid parasitic compartments (horizontal lines),
since PlantUML assumes a field name with parens to be a method and moves it in a compartment above attributes:
The system checks for parenthesis to choose between methods and fields.
@startuml
hide empty members
hide circle
skinparam classAttributeIconSize 0
class _person_id_ as "<person/(id)>"
_person_id_ : a s:Person
_person_id_ : s:additionalType <type/[type]>
_person_id_ : s:name "[name]"
@enduml
Which results in this (notice the square brackets):
tests/parens-not-brackets
Take a simple model with field names embedded in URL and attribute;
rdfpuml
mangles(...)
to[...]
to avoid parasitic compartments (horizontal lines), since PlantUML assumes a field name with parens to be a method and moves it in a compartment above attributes:Which results in this (notice the square brackets):
We can use this new feature from https://github.com/plantuml/plantuml/issues/536#issuecomment-823422527:
Which results in this (notice the parens):