Fixture: AA37-with-metadata-severely-mocked
Contents
Note: Output Turtle file successfully validates (e.g., with GBAD: Validate and Serialize button from GBAD VS Code Extension version 0.0.2-prerelease.2) once the prefix IRI on Line 7 is fixed.
Malformed rdf:type scenarios
The mocked diagram now includes dedicated nodes for each malformed rdf:type case that the parser must flag:
https://example.com/dangling-curie→ rdf:type:danglingCurie(missing prefix component).https://example.com/colon-only→ rdf:type:(colon without reference component).https://example.com/no-prefix→ rdf:typeNoPrefixClass(no CURIE separator at all).https://example.com→ rdf:typepicoL:(unknown prefix combined with missing reference).
All of these shapes are rectangular children of swimlane nodes, ensuring the parser interprets them as attempted individual type declarations rather than literals.
Preparation process
Please refer to the main plugin readme for launch/installation instructions.
pvzhelnov commented on Oct 10, 2025
I produced this fixture in the web browser interface by executing these steps:
Using
Open Existing Diagrambutton to load an existing fixture: AA37 Department of Health-with-metadata.drawioI manually changed node and arrow values to different kinds of weird values. This includes, among other things, a node with rdf:type specified as
picoL:which instead gets parsed as a literal while the actual value of the nodehttps://example.comis not present in the output graph at all.After the changes, I tried to dump using
Menu > File > Export as > GBAD: Export as RDF/Turtle (.ttl)The user interface helpfully showed me the error if there was one, with a trace back to the original error coming from within the Python drawio parser code, so I fixed values in nodes and arrows according to what the error said and retried dumping to Turtle until this was successful.
Notably,
python -m debug --scenario aa37-with-metadata-severely-mockedcommand fails both the pipeline and plugin generations.