lib/active_rdf/objectmanager/namespace.rb in activerdf-1.2.1 vs lib/active_rdf/objectmanager/namespace.rb in activerdf-1.2.2
- old
+ new
@@ -62,9 +62,14 @@
uri
else
uri[delimiter+1..-1]
end
end
+
+ # returns currently registered namespace abbreviations (e.g. :foaf, :rdf)
+ def self.abbreviations
+ @@namespaces.keys
+ end
end
Namespace.register(:rdf, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#')
Namespace.register(:rdfs, 'http://www.w3.org/2000/01/rdf-schema#')
Namespace.register(:owl, 'http://www.w3.org/2002/07/owl#')