Module: Mrdf_Resource
- Defined in:
- lib/ontomde-uml2-kb/protege.rb
Instance Attribute Summary collapse
-
#kb_exported ⇒ Object
readonly
Returns the value of attribute kb_exported.
Instance Method Summary collapse
-
#prot_label ⇒ Object
label used in protege 2000.
- #prot_safe(str) ⇒ Object
-
#prot_uri ⇒ Object
protege 2000 uri used for a resource (redefined for sub-classes).
Instance Attribute Details
#kb_exported ⇒ Object (readonly)
Returns the value of attribute kb_exported.
63 64 65 |
# File 'lib/ontomde-uml2-kb/protege.rb', line 63 def kb_exported @kb_exported end |
Instance Method Details
#prot_label ⇒ Object
label used in protege 2000
76 77 78 |
# File 'lib/ontomde-uml2-kb/protege.rb', line 76 def prot_label return "#{NS_UML_CLASS}##{prot_safe(uri)}" end |
#prot_safe(str) ⇒ Object
65 66 67 |
# File 'lib/ontomde-uml2-kb/protege.rb', line 65 def prot_safe(str) return str.to_s.nt_escape.tr('^a-zA-Z0-9_','_') end |
#prot_uri ⇒ Object
protege 2000 uri used for a resource (redefined for sub-classes)
71 72 73 |
# File 'lib/ontomde-uml2-kb/protege.rb', line 71 def prot_uri UriNamespace.instance.unalias(rdf_uri) end |