README.md in json-ld-1.0.7 vs README.md in json-ld-1.0.8
- old
+ new
@@ -158,11 +158,11 @@
"@type": "foaf:Person",
"foaf:name": "Joe Bob",
"foaf:nick": { "@list": [ "joe", "bob", "jaybe" ] }
})
- graph = RDF::Graph.new << JSON::LD::API.toRDF(input)
+ graph = RDF::Graph.new << JSON::LD::API.toRdf(input)
require 'rdf/turtle'
graph.dump(:ttl, :prefixes => {:foaf => "http://xmlns.com/foaf/0.1/"})
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@@ -188,10 +188,10 @@
"foaf": "http://xmlns.com/foaf/0.1/"
}
})
compacted = nil
- JSON::LD::API::fromRDF(input) do |expanded|
+ JSON::LD::API::fromRdf(input) do |expanded|
compacted = JSON::LD::API.compact(expanded, context['@context'])
end
compacted =>
[
{