Difference between revisions of "HowToAddAFormat"
From OOModels
Jump to navigationJump to search
AndreasLeue (talk | contribs) |
AndreasLeue (talk | contribs) |
||
Line 4: | Line 4: | ||
* Find a suitable namespace for the format. If it's your or your company's format, you might just want to use your reverse domain name. Let's assume that's 'com/example'. If you want to add or document a well known format (like UML) choose a domain name carefully, use official sites, xml schema URIs or alike as your guide. | * Find a suitable namespace for the format. If it's your or your company's format, you might just want to use your reverse domain name. Let's assume that's 'com/example'. If you want to add or document a well known format (like UML) choose a domain name carefully, use official sites, xml schema URIs or alike as your guide. | ||
* Create a wiki page named [[Type:com/example/MyType]]. You can do so by linking to this page with a wiki link, like here in this sentence. You can also just type the respective URL in your browser [http://www.oomodels.org/wiki/index.php/Type:com/example/MyType http://www.oomodels.org/wiki/index.php/Type:com/example/MyType] ([[Help:Structure|learn more about wiki page names]]) | * Create a wiki page named [[Type:com/example/MyType]]. You can do so by linking to this page with a wiki link, like here in this sentence. You can also just type the respective URL in your browser [http://www.oomodels.org/wiki/index.php/Type:com/example/MyType http://www.oomodels.org/wiki/index.php/Type:com/example/MyType] ([[Help:Structure|learn more about wiki page names]]) | ||
* Now you can [[TypeSyntax|create a type from scratch]], or you can just copy&paste the wiki code from an existing type page (e.g. [[Type:org/omg/ | * Now you can [[TypeSyntax|create a type from scratch]], or you can just copy&paste the wiki code from an existing type page (e.g. [[Type:org/omg/XMI]]) and adopt it to your needs. | ||
* optionally create a variant subpage, and/or optionally create a version subpage (use existing examples for copy&paste) | * optionally create a variant subpage, and/or optionally create a version subpage (use existing examples for copy&paste, like [[Type:org/omg/XMI/2.1]]) | ||
[[Category:HowTo]] | [[Category:HowTo]] |
Revision as of 19:53, 10 July 2008
- Become familiar with editing wiki pages in general. If you just want to try it out, you can do so in the OOModels:Sandbox.
- If you don't already have, create an account and login (Why do I need an account?).
- Let's assume your format is named MyFormat.
- Find a suitable namespace for the format. If it's your or your company's format, you might just want to use your reverse domain name. Let's assume that's 'com/example'. If you want to add or document a well known format (like UML) choose a domain name carefully, use official sites, xml schema URIs or alike as your guide.
- Create a wiki page named Type:com/example/MyType. You can do so by linking to this page with a wiki link, like here in this sentence. You can also just type the respective URL in your browser http://www.oomodels.org/wiki/index.php/Type:com/example/MyType (learn more about wiki page names)
- Now you can create a type from scratch, or you can just copy&paste the wiki code from an existing type page (e.g. Type:org/omg/XMI) and adopt it to your needs.
- optionally create a variant subpage, and/or optionally create a version subpage (use existing examples for copy&paste, like Type:org/omg/XMI/2.1)