fix rdf syntax errors

This commit is contained in:
Devin Howard 2017-01-21 14:01:55 -05:00
parent 3f02df3564
commit f1cf05ce75
2 changed files with 3 additions and 3 deletions

View file

@ -84,12 +84,12 @@ class Topic < ApplicationRecord
def as_rdf
output = ''
output += %(d:topic_#{id} a mm:topic\n)
output += %(d:topic_#{id} a mm:topic ;\n)
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 += %( mm:metacode "#{metacode.name}" ;\n)
output[-2] = '.' # change last ; to a .
output += %(\n)
output

View file

@ -7,7 +7,7 @@
@prefix mm: <http://metamaps.cc/owl/map.owl.ttl#> .
: a owl:Ontology ;
rdfs:label "Metamaps Map"@en ;
rdfs:label "Metamaps Map"@en .
mm:topic a owl:Class ;
rdfs:label "One concept on a metamap"@en .