VladimirAlexiev / rdf2rml

RDF by Example: rdfpuml for True RDF Diagrams, rdf2rml for R2RML Generation
39 stars 5 forks source link

Trouble inlining classes (rdfs:subClassOf) #34

Open johanwk opened 2 months ago

johanwk commented 2 months ago

I tried the following

lis:Artefact a puml:Inline .
ex:Compressor a owl:Class ; rdfs:subClassOf lis:Artefact .

This produces the following in the PlantUML output

ex_Compressor lis:Artefact

but there's a : missing, we should have had

ex_Compressor : lis:Artefact

Apparently, the problem is with rdfs:subClassOf. An arbitrary other property, e.g., rdfs:xClassOf, gets inlined correctly.

VladimirAlexiev commented 2 months ago

@johanwk can you try with the new version? Try with and without lis:Artefact a puml:Inline: if lis:Artefact has no statements, then it should be inlined anyway.