Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding inlining of rdf:type #14

Closed
johanwk opened this issue Oct 7, 2022 · 4 comments
Closed

Overriding inlining of rdf:type #14

johanwk opened this issue Oct 7, 2022 · 4 comments

Comments

@johanwk
Copy link

johanwk commented Oct 7, 2022

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
Copy link
Owner

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

@johanwk
Copy link
Author

johanwk commented Mar 29, 2024

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

ex-artefact-make-ttl.pdf

@VladimirAlexiev
Copy link
Owner

VladimirAlexiev commented Apr 10, 2024

@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.
  • I can look for outgoing links of the class, and not inline if it has such links (eg rdf:type, rdfs:subClassOf).
  • https://github.com/VladimirAlexiev/rdf2rml/blob/master/doc/rdfpuml.md#reification shows an option puml:NoReify. Do we also need a similar option puml:NoInline?
  • I see a bit of clash on puml:stereotype:
    • when applied on an instance, this stereotype is used for that node
    • when applied on a class, this stereotype is used for all instances of the class
    • but when you start treating classes as instances as well... Should ex:InstrumentationTechnician show (C) because it's a class or (P) because that's the stereotype for its instances? Maybe I can disentangle this...
  • Also, rdfs:subClassOf wants the -|> arrow

@VladimirAlexiev
Copy link
Owner

VladimirAlexiev added a commit that referenced this issue Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants