ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

Serialization of RDF values (Literals and IRIs) #3

Closed msalvadores closed 11 years ago

msalvadores commented 11 years ago

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

see https://github.com/ncbo/sparql_http/blob/master/lib/sparql_http/resultset/nodes.rb

palexander commented 11 years ago

This is handled