add more rdf fields

This commit is contained in:
Devin Howard 2017-01-21 12:48:06 -05:00
parent 609d58b0b6
commit 3f02df3564
2 changed files with 3 additions and 0 deletions

View file

@ -57,6 +57,7 @@ class Synapse < ApplicationRecord
output += %( mm:topic1 d:topic_#{topic1_id} ;\n)
output += %( mm:topic2 d:topic_#{topic2_id} ;\n)
output += %( mm:direction "#{category}" ;\n)
output += %( rdfs:comment "#{desc}" ;\n)
output[-2] = '.'
output += %(\n)
output

View file

@ -88,6 +88,8 @@ class Topic < ApplicationRecord
output += %( rdfs:label "#{name}";\n)
output += %( rdfs:comment "#{desc}";\n)
output += %( foaf:homepage <#{link}>;\n) if link.present?
output += %( mm:mapper d:mapper_#{user_id} ;\n)
output += %( mm:metacode "#{metacode.name} ;\n)
output[-2] = '.' # change last ; to a .
output += %(\n)
output