import.rb revision cca5fd1a61122bce84d08e3bd52e99c9a9363944
transaction do
ontologies_count = 0
root = h
},
ontologies_count += 1
if distributed?
# generate IRI for sub-ontology
# find or create sub-ontology by IRI
ontology ||= SingleOntology.create!({iri: child_iri, name: child_name, parent: self}, without_protection: true)
else
end
if h['language']
end
if h['logic']
end
},
# remove outdated sentences and entities
},
},
},
}
save!
end
end
end
return if versions.last.nil?
return if versions.last.xml_file.blank?
end
end