Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworks the default handling of `Relation` literal values: - Plain `xsd:String` literals are Ruby Strings; - `rdf:langString` literals are returned as `RDF::Literal` objects; - Known datatypes are cast to When setting values from a Relation, always uses the `Literal` value (through `Relation#objects`) to avoid losing data. URIs and blank nods are still cast to their cached `RDFSource` versions. Removes `literal: true` as a relation option. Fixes the bug in #245 causing literal languges to be lost when setting values to an existing `Relation` (including self).
- Loading branch information
Tom Johnson
committed
Aug 19, 2016
1 parent
5fad51d
commit e6d6f69
Showing
5 changed files
with
194 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.