|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mayo.informatics.lexgrid.convert.directConversions.semnet.SemNetToLg
public class SemNetToLg
Reads SemanticNet -> EMF The UMLS semantic network files provide an indication of both stated and inherited relationships. Parameter inheritanceLevel_ provided through LoaderPreference XML file, controls which relationships are loaded and navigable within the LexBIG repository. When selecting the option to load none(inheritanceLevel_ = 0) of the inherited relationships, all associations are extracted from the source file SRSTR. When loading all(inheritanceLevel_ = 1) inherited relations, associations are extracted from the source file SRSTRE1. An additional option(inheritanceLevel_ = 2) is provided to load only stated relations for direct subclass ('is_a') associations, but inherited relationships for all other associations. Direct or stated relationships are always imported, regardless of the selected option
Constructor Summary | |
---|---|
SemNetToLg(java.net.URI fileLocation,
java.lang.Integer inheritanceLevel,
LgMessageDirectorIF messages)
|
Method Summary | |
---|---|
void |
closeStreamedRead()
|
boolean |
getStreamingOn()
|
protected java.lang.String |
getTermsAndConditions()
Return the license agreement. |
URNVersionPair[] |
getUrnVersionPairs()
|
protected void |
initScheme(CodingScheme scheme)
Initialize metadata for the scheme. |
protected void |
populateAllInferredRelations(CodingScheme scheme,
java.util.Map codeToRelation,
java.util.Map codeToRelDescription,
java.util.Map codeToRevRelation,
boolean skipIsA)
Populates the relations container with all inferred relations for the coding scheme. |
protected void |
populateConcepts(CodingScheme scheme,
java.util.Map codeToRelation,
java.util.Map codeToRelDescription,
java.util.Map codeToRevRelation,
java.util.Map termToCode)
Populates the concepts container for the coding scheme. |
protected void |
populateNoInferredRelations(CodingScheme scheme,
java.util.Map codeToRelation,
java.util.Map codeToRelDescription,
java.util.Map codeToRevRelation,
java.util.Map termToCode,
boolean onlyIsA)
Populates the relations container with no inferred relations for the coding scheme. |
CodingScheme[] |
readAllCodingSchemes()
|
CodingScheme |
readCodingScheme()
|
CodingScheme |
readCodingScheme(java.lang.String registeredName)
|
void |
setStreamingOn(boolean streamOn)
|
java.util.Iterator |
streamedReadOnAssociationInstances(CodingScheme codingScheme,
Relations relationsContainer,
Association associationContainer)
|
java.util.Iterator |
streamedReadOnAssociations(CodingScheme codingScheme,
Relations relationsContainer)
|
java.util.Iterator |
streamedReadOnConcepts(CodingScheme codingScheme,
Entities conceptsContainer)
|
boolean |
supportsStreamedRead(CodingScheme codingScheme)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SemNetToLg(java.net.URI fileLocation, java.lang.Integer inheritanceLevel, LgMessageDirectorIF messages)
Method Detail |
---|
public CodingScheme readCodingScheme() throws java.lang.Exception
java.lang.Exception
protected void initScheme(CodingScheme scheme) throws java.io.IOException
scheme
-
java.io.IOException
protected void populateConcepts(CodingScheme scheme, java.util.Map codeToRelation, java.util.Map codeToRelDescription, java.util.Map codeToRevRelation, java.util.Map termToCode) throws java.io.IOException
scheme
- codeToRelation
- codeToRelDescription
- codeToRevRelation
-
java.io.IOException
protected void populateNoInferredRelations(CodingScheme scheme, java.util.Map codeToRelation, java.util.Map codeToRelDescription, java.util.Map codeToRevRelation, java.util.Map termToCode, boolean onlyIsA) throws java.io.IOException
scheme
- codeToRelation
- codeToRelDescription
- codeToRevRelation
- termToCode
-
java.io.IOException
protected void populateAllInferredRelations(CodingScheme scheme, java.util.Map codeToRelation, java.util.Map codeToRelDescription, java.util.Map codeToRevRelation, boolean skipIsA) throws java.io.IOException
scheme
- codeToRelation
- codeToRelDescription
- codeToRevRelation
-
java.io.IOException
protected java.lang.String getTermsAndConditions()
public URNVersionPair[] getUrnVersionPairs() throws java.lang.Exception
java.lang.Exception
public CodingScheme[] readAllCodingSchemes() throws java.lang.Exception
java.lang.Exception
public CodingScheme readCodingScheme(java.lang.String registeredName) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator streamedReadOnAssociations(CodingScheme codingScheme, Relations relationsContainer) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator streamedReadOnAssociationInstances(CodingScheme codingScheme, Relations relationsContainer, Association associationContainer) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator streamedReadOnConcepts(CodingScheme codingScheme, Entities conceptsContainer) throws java.lang.Exception
java.lang.Exception
public boolean supportsStreamedRead(CodingScheme codingScheme)
public void closeStreamedRead()
public void setStreamingOn(boolean streamOn)
public boolean getStreamingOn()
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |