hide unused fields in rdf
This commit is contained in:
parent
f1cf05ce75
commit
8c24b7e717
3 changed files with 6 additions and 6 deletions
|
@ -57,7 +57,7 @@ class Synapse < ApplicationRecord
|
||||||
output += %( mm:topic1 d:topic_#{topic1_id} ;\n)
|
output += %( mm:topic1 d:topic_#{topic1_id} ;\n)
|
||||||
output += %( mm:topic2 d:topic_#{topic2_id} ;\n)
|
output += %( mm:topic2 d:topic_#{topic2_id} ;\n)
|
||||||
output += %( mm:direction "#{category}" ;\n)
|
output += %( mm:direction "#{category}" ;\n)
|
||||||
output += %( rdfs:comment "#{desc}" ;\n)
|
output += %( rdfs:comment "#{desc}" ;\n) if desc.present?
|
||||||
output[-2] = '.'
|
output[-2] = '.'
|
||||||
output += %(\n)
|
output += %(\n)
|
||||||
output
|
output
|
||||||
|
|
|
@ -86,7 +86,7 @@ class Topic < ApplicationRecord
|
||||||
output = ''
|
output = ''
|
||||||
output += %(d:topic_#{id} a mm:topic ;\n)
|
output += %(d:topic_#{id} a mm:topic ;\n)
|
||||||
output += %( rdfs:label "#{name}" ;\n)
|
output += %( rdfs:label "#{name}" ;\n)
|
||||||
output += %( rdfs:comment "#{desc}";\n)
|
output += %( rdfs:comment "#{desc}" ;\n) if desc.present?
|
||||||
output += %( foaf:homepage <#{link}> ;\n) if link.present?
|
output += %( foaf:homepage <#{link}> ;\n) if link.present?
|
||||||
output += %( mm:mapper d:mapper_#{user_id} ;\n)
|
output += %( mm:mapper d:mapper_#{user_id} ;\n)
|
||||||
output += %( mm:metacode "#{metacode.name}" ;\n)
|
output += %( mm:metacode "#{metacode.name}" ;\n)
|
||||||
|
|
Loading…
Add table
Reference in a new issue