<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,16 @@ class String
   def could_be_a_safe_curie?
     self[0,1] == &quot;[&quot; and self[length - 1, length] == &quot;]&quot;
   end
+  def curie_parts
+    if self.could_be_a_safe_curie?
+      g = self.split(':')
+      a = g[0][1,g[0].length]
+      b = g[1][0,g[1].length-1]
+      [a,b]
+    else
+      raise &quot;not a real curie&quot;
+    end
+  end
 end
 
 class Curie
@@ -17,9 +27,17 @@ class Curie
   @@mappings = {}
   @@mappings.merge! DEFAULT_MAPPINGS
   
+  attr_reader :prefix
+  attr_reader :reference
+  
   def initialize(prefix, reference)
     @prefix, @reference = prefix, reference
   end
+  
+  def ==(other)
+    return false unless other.is_a?(Curie)
+    return true if self.to_s == other.to_s
+  end
 
   def self.parse(curie_string, opts = {})
     if opts[:treat_unsafe_as_normal_strings] and not curie_string.could_be_a_safe_curie?</diff>
      <filename>lib/curies/curie.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5bd6af8ca43ed009ce62f32d4664816d26aed5e7</id>
    </parent>
  </parents>
  <author>
    <name>Pius Uzamere</name>
    <email>pius+git@alum.mit.edu</email>
  </author>
  <url>http://github.com/pius/curies/commit/a148e2a50add900596d595e3c8a78e07ce5b32f2</url>
  <id>a148e2a50add900596d595e3c8a78e07ce5b32f2</id>
  <committed-date>2009-01-09T02:13:10-08:00</committed-date>
  <authored-date>2009-01-09T02:13:10-08:00</authored-date>
  <message>added equality function</message>
  <tree>36d9dcab872921135bc4673275a1d5621bebd986</tree>
  <committer>
    <name>Pius Uzamere</name>
    <email>pius+git@alum.mit.edu</email>
  </committer>
</commit>
