add more rdf fields
This commit is contained in:
parent
609d58b0b6
commit
3f02df3564
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue