Skip to content
Browse files

RDoc updates.

  • Loading branch information...
1 parent 9301a42 commit c20ec8a5d0a1056320a1315d6444a715d6059e7b @gkellogg gkellogg committed
Showing with 23 additions and 2 deletions.
  1. +22 −1 README.md
  2. +1 −1 lib/rdf/mongo.rb
View
23 README.md
@@ -15,7 +15,26 @@ It should also be noted that prior to 1.0, there are no guarantees of backwards
You'll need the 'mongo', 'rdf', 'rdf-spec', and 'rspec' libraries. The easiest way to install these is via RubyGems.
$ sudo gem install mongo rdf rdf-spec rspec rdf-mongo
-
+
+## Implementation Notes
+
+RDF Statements are stored as individual documents within MONGO using the following BSON:
+
+ {
+ "s": RDF::Value
+ "st": one of :u or :n
+ "p": RDF::URI
+ "pt": must be :n
+ "o" RDF::Value
+ "ot" one of :u, :n, :l, :ll, or :lt
+ "ol" Language symbol or RDF::URI
+ "c" RDF::Value or false
+ "ct": one of :u, :n, :l, :ll, :lt or :default
+ }
+
+An alternative that may be examined at a later point would be to use a representation based on RDF/JSON,
+or JSON-LD. This would save documents based on a common subject with
+one more more predicates having one or more types.
### Support
@@ -23,6 +42,7 @@ Please post questions or feedback to the [W3C-ruby-rdf mailing list][].
### Authors
* [Pius Uzamere][] | <pius@alum.mit.edu> | <http://github.com/pius> | <http://pius.me>
+ * [Gregg Kellogg][] | <gregg@greggkellogg.net> | <http://github.com/gkellogg> | <http://greggkellogg.net>
### Thank you
@@ -34,3 +54,4 @@ MIT License
[W3C-ruby-rdf mailing list]: http://lists.w3.org/Archives/Public/public-rdf-ruby/
[Pius Uzamere]: http://pius.me
+[Gregg Kellogg]: http://greggkellogg.net/me
View
2 lib/rdf/mongo.rb
@@ -206,7 +206,7 @@ def has_context?(value)
##
# @private
- # @see RDF::Queryable#query
+ # @see RDF::Queryable#query_pattern
# @see RDF::Query::Pattern
def query_pattern(pattern, &block)
@nodes = {} # reset cache. FIXME this should probably be in Node.intern

0 comments on commit c20ec8a

Please sign in to comment.
Something went wrong with that request. Please try again.