README.md in sparql-1.1.9 vs README.md in sparql-1.1.9.1

- old
+ new

@@ -115,11 +115,11 @@ that are currently available for RDF.rb. (At present, this includes support for N-Triples, N-Quads, Turtle, RDF/XML, RDF/JSON, JSON-LD, RDFa, TriG and TriX.) ### Remote datasets -A SPARQL query containing `FROM` or `FROM NAMED` (also `UPDATE` or `UPDATE NAMED`) will load the referenced IRI unless the repository already contains a context with that same IRI. This is performed using [RDF.rb][] `RDF::Util::File.open_file` passing HTTP Accept headers for various available RDF formats. For best results, require [Linked Data][] to enable a full set of RDF formats in the `GET` request. Also, consider overriding `RDF::Util::File.open_file` with an implementation with support for HTTP Get headers (such as `Net::HTTP`). +A SPARQL query containing `FROM` or `FROM NAMED` (also `UPDATE` or `UPDATE NAMED`) will load the referenced IRI unless the repository already contains a graph with that same IRI. This is performed using [RDF.rb][] `RDF::Util::File.open_file` passing HTTP Accept headers for various available RDF formats. For best results, require [Linked Data][] to enable a full set of RDF formats in the `GET` request. Also, consider overriding `RDF::Util::File.open_file` with an implementation with support for HTTP Get headers (such as `Net::HTTP`). Queries using datasets are re-written to use the identified graphs for `FROM` and `FROM NAMED` by filtering the results, allowing the use of a repository that contains many graphs without confusing information. ### Result formats @@ -198,11 +198,11 @@ #!/usr/bin/env rackup require 'rack/sparql' repository = RDF::Repository.new do |graph| - graph << [RDF::Node.new, RDF::DC.title, "Hello, world!"] + graph << [RDF::Node.new, RDF::Vocab::DC.title, "Hello, world!"] end results = SPARQL.execute("SELECT * WHERE { ?s ?p ?o }", repository) use Rack::SPARQL::ContentNegotiation run lambda { |env| [200, {}, results] } @@ -220,10 +220,10 @@ require 'uri' get '/' do settings.sparql_options.replace(standard_prefixes: true) repository = RDF::Repository.new do |graph| - graph << [RDF::Node.new, RDF::DC.title, "Hello, world!"] + graph << [RDF::Node.new, RDF::Vocab::DC.title, "Hello, world!"] end if params["query"] query = params["query"].to_s.match(/^http:/) ? RDF::Util::File.open_file(params["query"]) : ::URI.decode(params["query"].to_s) SPARQL.execute(query, repository) else