Module: Muml_DataType
- Defined in:
- lib/ontomde-uml2/kb/protege.rb
Overview
and Muml_PrimitiveType and Muml_Enumeration
Constant Summary collapse
- PROTEGE_STRING_DATATYPE =
Protege 2000 predefined type string
"string"
- PROTEGE_BOOLEAN_DATATYPE =
Protege 2000 predefined type boolean
"boolean"
- PROTEGE_INTEGER_DATATYPE =
Protege 2000 predefined type integer
"integer"
Instance Method Summary collapse
-
#prot_primitive_type ⇒ Object
returns protege primitive type for this datatype.
-
#prot_uri ⇒ Object
protege uri for a primitive type.
Instance Method Details
#prot_primitive_type ⇒ Object
returns protege primitive type for this datatype
213 214 215 216 217 218 219 220 |
# File 'lib/ontomde-uml2/kb/protege.rb', line 213 def prot_primitive_type r=DatatypeMapping.instance.getMapping(self).prot_getProtegeType return r unless r.nil? msg="No protege mapping for primitive type \"#{uml_name}\" (uri=#{rdf_uri})" log.warn(msg) unless log_already_displayed?(msg) return PROTEGE_STRING_DATATYPE end |
#prot_uri ⇒ Object
protege uri for a primitive type
199 200 201 |
# File 'lib/ontomde-uml2/kb/protege.rb', line 199 def prot_uri return "#{NS_RDF_2000}rdf-schema#Literal" end |