Some of the models will have as attribute values references to RDF objects. When copying values over to the hash that gets serialized we need to get the string value. This can be achieved with something like:
if att_value.kind_of? SparqlRd::Resultset::Node
value = att_value.value
end
Some of the models will have as attribute values references to RDF objects. When copying values over to the hash that gets serialized we need to get the string value. This can be achieved with something like:
see https://github.com/ncbo/sparql_http/blob/master/lib/sparql_http/resultset/nodes.rb