Skip to content

Visual notation and PlantUML standard library for ontology

License

Notifications You must be signed in to change notification settings

iofoundry/ontopuml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ontopuml

Standard libray for visualising ontology in prescribed notation using plantUML.

The visual notation used in this standard library is below. Ontology visual notation

Table of contents

Installation

For using the standard notation for ontology, include ontologyv*.iuml in your puml file

@startuml
!include https://raw.githubusercontent.com/iofoundry/ontopuml/main/ontologyv2.iuml
...
@enduml

For IOF specific styling, include iof.iuml. Please see <> for creating custom styling

@startuml
!include https://raw.githubusercontent.com/iofoundry/ontopuml/main/iof.iuml
...
@enduml

Cheatsheet

Create class

Procedure class takes two parameters.

  1. class variable that identifies the class throughout the screipt.
  2. IRI of the class
@startuml
!include https://raw.githubusercontent.com/iofoundry/ontopuml/main/iof.iuml
class(c1, "bfo:Quality")   
@enduml

Create individual

Procedure individual takes two parameters.

  1. class variable that identifies the individual throughout the screipt.
  2. IRI of the individual
@startuml
!include https://raw.githubusercontent.com/iofoundry/ontopuml/main/iof.iuml 
individual(o1, "ns1:temperature1")
@enduml

Create membership of an individual

Procedure instanceOf takes two parameters.

  1. class variable that is the type of the individual
  2. individual variable that has type (rdf:type) the class
@startuml
!include https://raw.githubusercontent.com/iofoundry/ontopuml/main/iof.iuml
class(c1, "bfo:Quality")   
individual(o1, "ns1:temperature1")
instanceOf(o1, c1)
@enduml

About

Visual notation and PlantUML standard library for ontology

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published