Method: ModelRdf#get_header
- Defined in:
- lib/data_models/model_rdf.rb
#get_header(attributes) ⇒ Array
Get all namespace used to build the response
247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/data_models/model_rdf.rb', line 247 def get_header(attributes) headers = {} (attributes["attributes"].merge(attributes["associations"])).each do |att,properties| if properties != "no publication" && properties[:namespace] != 'not defined' && properties[:privacy]=="Public" headers["xmlns:#{properties[:namespace]}"] = (eval "EasyData::RDF::#{properties[:namespace].upcase}.get_uri") #EasyData.get_uri_namespace(properties[:namespace]) end end headers end |