lib/sxp/reader/sparql.rb in sxp-1.3.0 vs lib/sxp/reader/sparql.rb in sxp-2.0.0

- old
+ new

@@ -92,10 +92,11 @@ # found with a previously identified {PREFIX}. # @return [Object] def read_token case peek_char when ?" then [:atom, read_rdf_literal] # " + when ?' then [:atom, read_rdf_literal] # ' when ?< then [:atom, read_rdf_uri] else tok = super # If we just parsed "PREFIX", and this is an opening list, then @@ -142,9 +143,10 @@ ## # Reads literals corresponding to SPARQL/Turtle/Notation-3 syntax # # @example # "a plain literal" + # 'another plain literal' # "a literal with a language"@en # "a typed literal"^^<http://example/> # "a typed literal with a PNAME"^^xsd:string # # @return [RDF::Literal]