VladimirAlexiev / rdf2rml

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

Overriding inlining of rdf:type #14

Closed johanwk closed 4 months ago

johanwk commented 2 years ago

I have an ontology with both classes and individuals. It would be good to not inline some cases of rdf:type, to emphasise how various individuals belong to different parts of the class taxonomy.

Is there a way to request the opposite of puml:InlineProperty? Preferably, this would be applied only to selected rdf:type triples (the default format with inlining of rdf:type helps a lot to avoid busy diagrams).

VladimirAlexiev commented 8 months ago

@johanwk Give me an example, because I think this works now:

johanwk commented 8 months ago

Please take a look at the following example? It uses regular arrows marked with "a" for rdf:type.

ex-artefact-make-ttl.pdf

VladimirAlexiev commented 7 months ago

@johanwk Got it. Here's the source so I can use it as an example:

lis:Person a owl:Class.
lis:Artefact a owl:Class.
ex:InstrumentationTechnician a owl:Class; rdfs:subClassOf lis:Person.
ex:PressureGaugeAssembly a owl:Class; rdfs:subClassOf lis:Artefact.
ex:P-12345-PA-01 a ex:PressureGaugeAssembly.
ex:John a ex:InstrumentationTechnician.
ex:John ex:makes ex:P-12345-PA-01.

####################
owl:Class                    puml:stereotype "(C,orange)".
ex:InstrumentationTechnician puml:stereotype "(P,red)".
ex:PressureGaugeAssembly     puml:stereotype "(A,green)".
rdf:type                     puml:arrow puml:up.
rdfs:subClassOf              puml:arrow puml:tri-up.
VladimirAlexiev commented 4 months ago

https://github.com/VladimirAlexiev/rdf2rml/tree/master/test/blank-types#readme