|
| 1 | +/* |
| 2 | + * |
| 3 | + * * Copyright (C) 2014 termMed IT |
| 4 | + * * www.termmed.com |
| 5 | + * * |
| 6 | + * * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * * you may not use this file except in compliance with the License. |
| 8 | + * * You may obtain a copy of the License at |
| 9 | + * * |
| 10 | + * * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * * |
| 12 | + * * Unless required by applicable law or agreed to in writing, software |
| 13 | + * * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * * See the License for the specific language governing permissions and |
| 16 | + * * limitations under the License. |
| 17 | + * |
| 18 | + */ |
| 19 | + |
| 20 | +package com.termmed.owl; |
| 21 | + |
| 22 | +/** |
| 23 | + * Created by alo on 4/6/16. |
| 24 | + * |
| 25 | + * @author Alejandro Rodriguez |
| 26 | + */ |
| 27 | +public class DirectRunner { |
| 28 | + /** |
| 29 | + * The main method. |
| 30 | + * |
| 31 | + * @param args the arguments |
| 32 | + * @throws Exception the exception |
| 33 | + */ |
| 34 | + public static void main(String[] args) throws Exception { |
| 35 | + String conceptFile = "/Users/alo/Downloads/SnomedCT_RF2Release_INT_20170731/Snapshot/Terminology/sct2_Concept_Snapshot_INT_20170731.txt"; |
| 36 | + String relationshipFile = "/Users/alo/Downloads/SnomedCT_RF2Release_INT_20170731/Snapshot/Terminology/sct2_Relationship_Snapshot_INT_20170731.txt"; |
| 37 | + String outputFile = "/Users/alo/Downloads/conceptsOwlComplete-cd-alo.xml"; |
| 38 | + String descriptionFile = "/Users/alo/Downloads/SnomedCT_RF2Release_INT_20170731/Snapshot/Terminology/sct2_Description_Snapshot-en_INT_20170731.txt"; |
| 39 | + String languageFile = "/Users/alo/Downloads/SnomedCT_RF2Release_INT_20170731/Snapshot/Refset/Language/der2_cRefset_LanguageSnapshot-en_INT_20170731.txt"; |
| 40 | +// String textDefinitionFile = "/Users/ar/Downloads/SnomedCT_RF2Release_INT_201601731/Snapshot/Terminology/xsct2_TextDefinition_Snapshot-en_INT_20160131.txt"; |
| 41 | + String textDefinitionFile = null; |
| 42 | + String iri = "http://snomed.info/id/"; |
| 43 | + |
| 44 | + RF2Parser parser = new RF2Parser(conceptFile, relationshipFile, |
| 45 | + descriptionFile,textDefinitionFile,languageFile, outputFile,iri, true); |
| 46 | +// RF2Parser parser = new RF2Parser(conceptFile, relationshipFile, |
| 47 | +// null,null,null, outputFile,iri); |
| 48 | + parser.parse(); |
| 49 | + System.out.println("Done! The process has generated a new OWL Ontology file: " + outputFile); |
| 50 | + } |
| 51 | +} |
0 commit comments