Skip to content

Commit

Permalink
Using default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Jul 29, 2012
1 parent 4ed5809 commit c160043
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/bio-table/rdf.rb
Expand Up @@ -11,7 +11,7 @@ module RDF
def RDF::header(row)
list = []
row.each_with_index do | field,i |
s = "biotable:#{field} rdf:label \"#{field}\"; a biotable:colname; biotable:index #{i}."
s = ":#{field} rdf:label \"#{field}\" ; a :colname; :index #{i} ."
list << s
end
list
Expand All @@ -28,11 +28,11 @@ def RDF::header(row)
def RDF::row(row, header)
list = []
rowname = row[0]
list << "biotable:#{rowname} rdf:label \"#{rowname}\"; a biotable:colname;"
list << ":#{rowname} rdf:label \"#{rowname}\" ; a :colname ;"
row.each_with_index do | field,i |
list << ":#{header[i]} \"#{field}\";"
list << ":#{header[i]} \"#{field}\""
end
list.join(" ")
list.join(" ; ")+" ."
end
end
end

0 comments on commit c160043

Please sign in to comment.