Skip to content

Commit

Permalink
Chang xsd:langString to rdf:langString.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed May 11, 2013
1 parent a97a5b8 commit 709e092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/json/ld/to_rdf.rb
Expand Up @@ -90,7 +90,7 @@ def parse_object(item)
value = lit.to_s
datatype ||= lit.datatype
else
# Otherwise, if datatype is null, set it to xsd:string or xsd:langString, depending on if item has a @language key.
# Otherwise, if datatype is null, set it to xsd:string or rdf:langString, depending on if item has a @language key.
datatype ||= item.has_key?('@language') ? RDF.langString : RDF::XSD.string
end

Expand Down
2 changes: 1 addition & 1 deletion script/tc
Expand Up @@ -131,7 +131,7 @@ def to_quad(thing)
when RDF::Literal
v = quoted(escaped(thing.value))
case thing.datatype
when nil, "http://www.w3.org/2001/XMLSchema#string", "http://www.w3.org/2001/XMLSchema#langString"
when nil, "http://www.w3.org/2001/XMLSchema#string", "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"
# Ignore these
else
v += "^^<#{thing.datatype}>"
Expand Down
2 changes: 1 addition & 1 deletion spec/suite_to_rdf_spec.rb
Expand Up @@ -53,7 +53,7 @@ def to_quad(thing)
when RDF::Literal
v = quoted(escaped(thing.value))
case thing.datatype
when nil, "http://www.w3.org/2001/XMLSchema#string", "http://www.w3.org/2001/XMLSchema#langString"
when nil, "http://www.w3.org/2001/XMLSchema#string", "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"
# Ignore these
else
v += "^^<#{thing.datatype}>"
Expand Down

0 comments on commit 709e092

Please sign in to comment.