|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectowltools.ontologyrelease.OortConfiguration
public class OortConfiguration
Parameters for OboOntologyReleaseRunner
. Contains methods
to read and write the configuration from Properties
.
Nested Class Summary | |
---|---|
static class |
OortConfiguration.MacroStrategy
|
Constructor Summary | |
---|---|
OortConfiguration()
|
Method Summary | |
---|---|
void |
addBridgeOntology(String bridgeOntology)
|
void |
addPath(String path)
|
void |
addSourceOntologyPrefix(String prefix)
|
void |
addToSkipFormatSet(String fmt)
|
static void |
addValues(String s,
Collection<String> values)
Only public for testing purposes. |
static OortConfiguration |
createOortConfig(Properties properties)
Create an OortConfiguration from the given Properties . |
static Properties |
createProperties(OortConfiguration config)
Create a Properties object for the given configuration. |
static CharSequence |
escape(String s,
char escapeChar)
Only public for testing purposes. |
File |
getBase()
|
List<String> |
getBridgeOntologies()
|
String |
getCatalogXML()
|
org.semanticweb.owlapi.model.OWLOntologyFormat |
getDefaultFormat()
|
OortConfiguration.MacroStrategy |
getMacroStrategy()
|
org.semanticweb.owlapi.model.OWLOntologyFormat |
getOwlOfnFormat()
|
org.semanticweb.owlapi.model.OWLOntologyFormat |
getOwlXMLFormat()
|
Vector<String> |
getPaths()
|
Set<PropertyView> |
getPropertyViews()
|
String |
getQueryOntology()
|
String |
getQueryOntologyReference()
|
String |
getReasonerName()
|
Set<String> |
getSkipFormatSet()
|
Set<String> |
getSourceOntologyPrefixes()
|
boolean |
isAddSupportFromImports()
|
boolean |
isAllowEquivalentNamedClassPairs()
|
boolean |
isAllowFileOverWrite()
|
boolean |
isAsserted()
|
boolean |
isAutoDetectBridgingOntology()
|
boolean |
isCheckConsistency()
|
boolean |
isEnforceEL()
|
boolean |
isExecuteOntologyChecks()
|
boolean |
isExpandMacros()
|
boolean |
isExpandShortcutRelations()
|
boolean |
isExpandXrefs()
|
boolean |
isForceRelease()
|
boolean |
isGafToOwl()
|
boolean |
isJustifyAssertedSubclasses()
|
boolean |
isQueryOntologyReferenceIsIRI()
|
boolean |
isRecreateMireot()
|
boolean |
isRemoveDanglingBeforeReasoning()
|
boolean |
isRemoveQueryOntologyReference()
|
boolean |
isRepairAnnotationCardinality()
|
boolean |
isSimple()
|
boolean |
isSkipFormat(String fmt)
|
boolean |
isUseQueryOntology()
|
boolean |
isUseReleaseFolder()
|
boolean |
isWriteELOntology()
|
boolean |
isWriteLabelOWL()
|
boolean |
isWriteMetadata()
|
boolean |
isWriteSubsets()
|
static void |
loadConfig(File file,
OortConfiguration config)
Load the configuration from a property file into the given OortConfiguration . |
static void |
loadOortConfig(Properties properties,
OortConfiguration config)
Load the given Properties into the OortConfiguration . |
static OortConfiguration |
readConfig(File file)
Read from a configuration property file and load it into a new OortConfiguration object. |
void |
removeFromSkipFormatSet(String fmt)
|
void |
setAddSupportFromImports(boolean addSupportFromImports)
|
void |
setAllowEquivalentNamedClassPairs(boolean allowEquivalentNamedClassPairs)
|
void |
setAllowFileOverWrite(boolean allowFileOverWrite)
Set allowFileOverWrite |
void |
setAsserted(boolean asserted)
Set asserted |
void |
setAutoDetectBridgingOntology(boolean isAutoDetectBridgingOntology)
|
void |
setBase(File base)
|
void |
setBridgeOntologies(List<String> bridgeOntologies)
|
void |
setCatalogXML(String catalogXML)
|
void |
setCheckConsistency(boolean checkConsistency)
|
void |
setEnforceEL(boolean enforceEL)
|
void |
setExecuteOntologyChecks(boolean executeOntologyChecks)
|
void |
setExpandMacros(boolean expandMacros)
|
void |
setExpandShortcutRelations(boolean expandShortcutRelations)
|
void |
setExpandXrefs(boolean expandXrefs)
Set export bridges |
void |
setForceRelease(boolean forceRelease)
|
void |
setGafToOwl(boolean gafToOwl)
|
void |
setJustifyAssertedSubclasses(boolean isJustifyAssertedSubclasses)
|
void |
setMacroStrategy(OortConfiguration.MacroStrategy macroStrategy)
Set the OortConfiguration.MacroStrategy |
void |
setPropertyViews(Set<PropertyView> propertyViews)
|
void |
setQueryOntology(String queryOntology)
|
void |
setQueryOntologyReference(String queryOntologyReference)
|
void |
setQueryOntologyReferenceIsIRI(boolean queryOntologyReferenceIsIRI)
|
void |
setReasonerName(String reasonerName)
Set the reasoner name |
void |
setRecreateMireot(boolean recreateMireot)
Set recreateMireot |
void |
setRemoveDanglingBeforeReasoning(boolean removeDanglingBeforeReasoning)
|
void |
setRemoveQueryOntologyReference(boolean removeQueryOntologyReference)
|
void |
setRepairAnnotationCardinality(boolean repairAnnotationCardinality)
|
void |
setSimple(boolean simple)
Set simple. |
void |
setSkipFormatSet(Set<String> skipFormatSet)
|
void |
setSourceOntologyPrefixes(Set<String> sourceOntologyPrefixes)
|
void |
setUseQueryOntology(boolean useQueryOntology)
|
void |
setUseReleaseFolder(boolean useReleaseFolder)
|
void |
setWriteELOntology(boolean writeELOntology)
|
void |
setWriteLabelOWL(boolean writeLabelOWL)
|
void |
setWriteMetadata(boolean writeMetadata)
|
void |
setWriteSubsets(boolean isWriteSubsets)
|
String |
toString()
|
static String |
unescape(String s)
Only public for testing purposes. |
static void |
writeConfig(File file,
OortConfiguration config)
Write the given OortConfiguration into the file as properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OortConfiguration()
Method Detail |
---|
public String getReasonerName()
public void setReasonerName(String reasonerName)
reasonerName
- public boolean isAsserted()
public void setAsserted(boolean asserted)
asserted
- public boolean isSimple()
public void setSimple(boolean simple)
simple
- public boolean isExpandXrefs()
public void setExpandXrefs(boolean expandXrefs)
expandXrefs
- public boolean isAllowFileOverWrite()
public void setAllowFileOverWrite(boolean allowFileOverWrite)
allowFileOverWrite
- public OortConfiguration.MacroStrategy getMacroStrategy()
OortConfiguration.MacroStrategy
public void setMacroStrategy(OortConfiguration.MacroStrategy macroStrategy)
OortConfiguration.MacroStrategy
macroStrategy
- public boolean isRecreateMireot()
public void setRecreateMireot(boolean recreateMireot)
recreateMireot
- public boolean isExpandShortcutRelations()
public void setExpandShortcutRelations(boolean expandShortcutRelations)
public boolean isEnforceEL()
public void setEnforceEL(boolean enforceEL)
public boolean isWriteELOntology()
public void setWriteELOntology(boolean writeELOntology)
public Set<String> getSkipFormatSet()
public void setSkipFormatSet(Set<String> skipFormatSet)
public void addToSkipFormatSet(String fmt)
public void removeFromSkipFormatSet(String fmt)
public boolean isSkipFormat(String fmt)
public Set<String> getSourceOntologyPrefixes()
public void setSourceOntologyPrefixes(Set<String> sourceOntologyPrefixes)
public void addSourceOntologyPrefix(String prefix)
public List<String> getBridgeOntologies()
public void setBridgeOntologies(List<String> bridgeOntologies)
bridgeOntologies
- the bridgeOntologies to setpublic void addBridgeOntology(String bridgeOntology)
public boolean isExecuteOntologyChecks()
public void setExecuteOntologyChecks(boolean executeOntologyChecks)
public boolean isAllowEquivalentNamedClassPairs()
public void setAllowEquivalentNamedClassPairs(boolean allowEquivalentNamedClassPairs)
public boolean isWriteSubsets()
public void setWriteSubsets(boolean isWriteSubsets)
public boolean isJustifyAssertedSubclasses()
public void setJustifyAssertedSubclasses(boolean isJustifyAssertedSubclasses)
public boolean isAutoDetectBridgingOntology()
public void setAutoDetectBridgingOntology(boolean isAutoDetectBridgingOntology)
public boolean isExpandMacros()
public void setExpandMacros(boolean expandMacros)
expandMacros
- isExpandMacros to setpublic boolean isForceRelease()
public void setForceRelease(boolean forceRelease)
forceRelease
- forceRelease to setpublic boolean isCheckConsistency()
public void setCheckConsistency(boolean checkConsistency)
checkConsistency
- the checkConsistency to setpublic boolean isRemoveDanglingBeforeReasoning()
public void setRemoveDanglingBeforeReasoning(boolean removeDanglingBeforeReasoning)
public boolean isAddSupportFromImports()
public void setAddSupportFromImports(boolean addSupportFromImports)
public boolean isWriteMetadata()
public void setWriteMetadata(boolean writeMetadata)
writeMetadata
- the writeMetadata to setpublic org.semanticweb.owlapi.model.OWLOntologyFormat getDefaultFormat()
public org.semanticweb.owlapi.model.OWLOntologyFormat getOwlXMLFormat()
public Vector<String> getPaths()
public void addPath(String path)
path
- the path to add to the setpublic File getBase()
public void setBase(File base)
base
- the base to setpublic boolean isRepairAnnotationCardinality()
public void setRepairAnnotationCardinality(boolean repairAnnotationCardinality)
repairAnnotationCardinality
- the repairAnnotationCardinality to setpublic Set<PropertyView> getPropertyViews()
public void setPropertyViews(Set<PropertyView> propertyViews)
public boolean isUseReleaseFolder()
public void setUseReleaseFolder(boolean useReleaseFolder)
useReleaseFolder
- the useReleaseFolder to setpublic boolean isGafToOwl()
public void setGafToOwl(boolean gafToOwl)
gafToOwl
- the gafToOwl to setpublic String getCatalogXML()
public void setCatalogXML(String catalogXML)
catalogXML
- the catalogXML to setpublic boolean isUseQueryOntology()
public void setUseQueryOntology(boolean useQueryOntology)
useQueryOntology
- the useQueryOntology to setpublic String getQueryOntology()
public void setQueryOntology(String queryOntology)
queryOntology
- the queryOntology to setpublic String getQueryOntologyReference()
public void setQueryOntologyReference(String queryOntologyReference)
queryOntologyReference
- the queryOntologyReference to setpublic boolean isQueryOntologyReferenceIsIRI()
public void setQueryOntologyReferenceIsIRI(boolean queryOntologyReferenceIsIRI)
queryOntologyReferenceIsIRI
- the queryOntologyReferenceIsIRI to setpublic boolean isRemoveQueryOntologyReference()
public boolean isWriteLabelOWL()
public void setWriteLabelOWL(boolean writeLabelOWL)
writeLabelOWL
- the writeLabelOWL to setpublic org.semanticweb.owlapi.model.OWLOntologyFormat getOwlOfnFormat()
public void setRemoveQueryOntologyReference(boolean removeQueryOntologyReference)
removeQueryOntologyReference
- the removeQueryOntologyReference to setpublic String toString()
toString
in class Object
public static Properties createProperties(OortConfiguration config)
Properties
object for the given configuration.
config
-
public static OortConfiguration createOortConfig(Properties properties)
OortConfiguration
from the given Properties
.
properties
-
public static void loadOortConfig(Properties properties, OortConfiguration config)
Properties
into the OortConfiguration
.
properties
- config
- public static void addValues(String s, Collection<String> values)
s
- values
- public static CharSequence escape(String s, char escapeChar)
s
- escapeChar
-
public static String unescape(String s)
s
-
public static OortConfiguration readConfig(File file) throws IOException
OortConfiguration
object.
file
-
IOException
public static void loadConfig(File file, OortConfiguration config) throws IOException
OortConfiguration
.
file
- source property fileconfig
- target configuration
IOException
public static void writeConfig(File file, OortConfiguration config) throws IOException
OortConfiguration
into the file as properties.
file
- target fileconfig
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |