ontomde-uml2
by stephane (Pierre) Carrie
http://ontomde.rubyforge.org

== DESCRIPTION:

ontoMDE-uml2 contains UML2 meta-model and helper files to manipulate a UML2 model.
ontoMDE-uml2 uses ontoMDE-core which provides core fonctionalities for loading a model in RDF/RDFS format. ontoMDE-UML2 is used by ontoMDE-java which contains rules for generating java Code.

ontoMDE contains primitives for converting a UML2 model into a Prot?g? 2000 RDF/RDFS model. UML2 classes are converted into RDFS classes to allow data instances to be created. This feature is used heavily for providing editors for creating tests data for programs.

== FEATURES/PROBLEMS:

* UML2 meta-model definition in RDFS format
* Ruby helper methods for handling a UML2 model.
* UML Stereotype handling helpers.
* UML predefined enumerations handling helper.
* UML model manipulations helpers (add interface implementations, transform multiple inheritance into single inheritance, ...)


UML2 to Protege 2000 features:
* single and incremental use.
* transparent update of name changes from source to target mode.
* class
* abstract class
* interface
* enumerated types
* generalization links
* implementation links
* property, association, composition and aggregation
* single and multivalued properties
* mandatory fields (cardinaly=0 or >0)
* UML documentation notes export to Protege 2000 for easy reference.


== SYNOPSIS:

require 'ontomde-uml2'

# create a new empty model.
model=Crdf_Model.new

# loads UML2 meta-model
model.loadUML2

# loads your UML2 model
model.loadModelFromFile("YourUML2ModelFile.emx.nt",true)

# display name of every UML element with a name
module Muml_NamedElement
def disp
puts "Name=#uml_name"
end
end
# ignore every other model element
module Crdf_Ressource
def disp
#do nothing
end
end

model.each { |k,c|
c.disp
}

== REQUIREMENTS:

* ontomde-core gem
* ontomde-redland-win gem under windows. (REDLAND library is used to convert from Prot?g? 2000 RDF/XML and ontoMDE RDF/ntriples formats. ontoMDE is bundled with REDLAND for windows.
* redland rapper binary command installed and available in for path for Linux.

== INSTALL:

* (UNIX) sudo gem install ontomde-uml2
* (WIN) gem install ontomde-uml2

Additional information is available on ontoMDE web site :
http://ontomde.rubyforge.org/website/download.html
== LICENSE:

Copyright (C) 2008 Orange-labs
38 rue General Leclerc
92130 ISSY LES MOULINEAUX, France

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses/.