|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.xml.ImportDaml
Abstract class to provide common functions for importing DAML xml content. Subclasses will provide additional behavior tailored for the particular DAML imports.
The Another RDF Parser (ARP) is used to parse the input DAML document. This class implements statement callbacks from ARP. Each triple in the input file causes a call on one of the statement methods. The same triple may occur more than once in a file, causing repeat calls to the method.
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Inner Class Summary | |
protected class |
ImportDaml.DamlRestriction
Records property use restrictions which get imported as Cyc interArgIsa1-2 or interArgFormat1-2 assertions. |
protected class |
ImportDaml.DamlTermInfo
Records the DAML term information for Cyc import. |
protected class |
ImportDaml.MyErrorHandler
Implements a SAX ErrorHandler to report the XML parsing errors. |
Field Summary | |
boolean |
actuallyImport
When T, indicates that the import is performed othwise when false indicates that the DAML document should be parsed but not imported. |
protected com.hp.hpl.jena.rdf.arp.ARP |
arp
Another RDF Parser instance. |
protected CycConstant |
bookkeepingMt
The #$BookkeepingMt. |
protected java.lang.String |
characterEncoding
Character encoding scheme of the DAML input (e.g. |
CycAccess |
cycAccess
CycAccess object to manage api connection the the Cyc server. |
protected CycFort |
damlOntologyDefiningURL
URL which defines the imported daml ontology |
protected java.lang.String |
damlOntologyDefiningURLString
URL string which defines the imported daml ontology |
protected ImportDaml.DamlRestriction |
damlRestriction
The current DAML Restriction object being constructed from sequential RDF triples. |
static int |
DEFAULT_VERBOSITY
The default verbosity of this application. |
protected static java.util.HashMap |
equivalentDamlCycTerms
Cyc terms which have semantic counterparts in DAML. |
protected CycConstant |
importMt
Ontology import microtheory. |
protected java.lang.String |
importMtName
Ontology import microtheory name. |
protected CycConstant |
kbSubsetCollection
The KB Subset collection which identifies ontology import terms in Cyc. |
java.lang.String |
kbSubsetCollectionName
The name of the KB Subset collection which identifies ontology import terms in Cyc. |
protected java.util.HashMap |
ontologyNicknames
Ontology library nicknames, which become namespace identifiers upon import into Cyc. |
protected ImportDaml.DamlTermInfo |
previousDamlTermInfo
Previously imported term used to avoid redundant assertions. |
int |
verbosity
Sets verbosity of this application. |
Constructor Summary | |
ImportDaml()
Constructs a new ImportDaml object. |
Method Summary | |
protected void |
additionalLexicalAssertions(CycFort term)
Asserts additional lexical assertions about the given term which are specific to the import of Open Directory terms. |
protected void |
assertArgumentMapping(java.lang.String damlPropertyName,
java.lang.String damlOntology,
java.lang.String damlURI,
java.lang.String cycBinaryPredicateName,
java.lang.String argumentMappingList)
Asserts that the given DAML/RDFS/RDF property is mapped to the given Cyc predicate with the arguments reversed. |
protected void |
assertArgumentMapping(java.lang.String damlPropertyName,
java.lang.String damlOntology,
java.lang.String damlURI,
java.lang.String cycBinaryPredicateName,
java.lang.String argumentMappingList,
java.lang.String mappingMt)
Asserts that the given DAML/RDFS/RDF property is mapped to the given Cyc predicate with the arguments reversed. |
protected void |
assertForwardArgConstraints(CycFort term,
CycList argConstraints)
Asserts argument constraints on a forward referenced term used in an assertion. |
protected void |
assertMapping(java.lang.String damlTermName,
java.lang.String damlOntology,
java.lang.String damlURI,
java.lang.String cycTermName)
Asserts that the given DAML/RDFS/RDF term is mapped to the given Cyc term, with the assertion placed in #$BaseKB. |
protected void |
assertMapping(java.lang.String damlTermName,
java.lang.String damlOntology,
java.lang.String damlURI,
java.lang.String cycTermName,
java.lang.String mappingMt)
Asserts that the given DAML/RDFS/RDF term is mapped to the given Cyc term. |
protected CycNart |
damlTermInfoWrapper(java.lang.String termName)
Wraps the impored term with the appropriate functional expression so that it can be imported as a NART. |
protected boolean |
damlTermInfoWrapperTest(java.lang.String termName)
Determines if the imported term should be wrapped with a functional expression and imported as a NART. |
protected void |
displayTriple(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo predicateTermInfo,
ImportDaml.DamlTermInfo objLitTermInfo)
Displays the RDF triple. |
protected java.lang.String |
escaped(java.lang.String text)
Returns the given string argument with embedded double quote characters escaped. |
protected void |
getMappings()
Gets the asserted mappings between DAML/RDFS/RDF terms and Cyc terms. |
protected void |
getMappings(java.lang.String mappingMt)
Gets the asserted mappings between DAML/RDFS/RDF terms and Cyc terms. |
protected java.lang.String |
getOntologyNickname(java.lang.String nameSpace,
com.hp.hpl.mesa.rdf.jena.model.Resource resource)
Returns the ontology nickname for the given XML namespace. |
protected boolean |
hasUriNamespaceSyntax(java.lang.String uri)
Returns true if the given URI has embedded XML namespace separators. |
protected void |
importArg1Isa(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the rdfs:domain triple. |
protected void |
importArg2Isa(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the rdfs:range triple. |
protected void |
importComment(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo literalTermInfo)
Imports the rdfs:comment triple. |
protected void |
importConceptuallyRelated(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the rdfs:seeAlso triple. |
protected void |
importContainsInformationAbout(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo uriTermInfo)
Imports the rdfs:isDefinedBy triple. |
void |
importDaml(java.lang.String damlOntologyDefiningURLString,
java.lang.String importMtName)
Parses and imports the given DAML URL. |
void |
importDaml(java.lang.String damlOntologyDefiningURLString,
java.lang.String importMtName,
java.lang.String characterEncoding)
Parses and imports the given DAML URL. |
protected void |
importGenlPreds(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the daml:subPropertyOf triple. |
protected void |
importGenls(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the rdf:subClassOf triple. |
protected void |
importImports(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo literalTermInfo)
Imports the daml:imports triple. |
protected void |
importIsa(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the rdf:type triple. |
protected void |
importLiteralTriple(CycFort subject,
CycFort predicate,
ImportDaml.DamlTermInfo LiteralTermInfo,
CycList arg2Constraints)
Imports the RDF literal triple. |
protected void |
importNameString(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo literalTermInfo)
Imports the rdfs:label triple. |
protected void |
importSynonymousExternalConcept(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo objectTermInfo)
Imports the daml:samePropertyAs triple. |
protected CycFort |
importTerm(ImportDaml.DamlTermInfo damlTermInfo)
Imports the given DAML term and returns the Cyc term. |
protected void |
importTriple(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo predicateTermInfo,
ImportDaml.DamlTermInfo objLitTermInfo)
Imports the RDF triple. |
protected void |
importVersionInfo(ImportDaml.DamlTermInfo subjectTermInfo,
ImportDaml.DamlTermInfo literalTermInfo)
Imports the daml:versionInfo triple. |
void |
initialize()
Initializes the ImportDaml object. |
void |
initializeCommonDamlVocabulary()
Initializes the DAML ontology vocabulary if not present. |
void |
initializeCommonMappedTerms()
Initializes common DAML mapped terms. |
void |
initializeCommonOntologyNicknames()
Initializes the Ontology nicknames mapping. |
void |
initializeDamlOntologyMt(java.lang.String mtName)
Initializes the DAML ontology mt. |
protected boolean |
isProbableUri(java.lang.String string)
Returns true if the given string is likely to be a URI. |
protected ImportDaml.DamlTermInfo |
literal(com.hp.hpl.jena.rdf.arp.ALiteral literal)
Returns the DamlTerm info of the given RDF literal. |
protected void |
processRestrictionObject(com.hp.hpl.jena.rdf.arp.AResource subject,
com.hp.hpl.jena.rdf.arp.AResource predicate,
com.hp.hpl.jena.rdf.arp.AResource object)
Records the components of a DAML Restriction. |
protected void |
processRestrictionSubject(com.hp.hpl.jena.rdf.arp.AResource subject,
com.hp.hpl.jena.rdf.arp.AResource predicate,
com.hp.hpl.jena.rdf.arp.ALiteral literal)
Records the components of a DAML Restriction. |
protected void |
processRestrictionSubject(com.hp.hpl.jena.rdf.arp.AResource subject,
com.hp.hpl.jena.rdf.arp.AResource predicate,
com.hp.hpl.jena.rdf.arp.AResource object)
Records the components of a DAML Restriction. |
protected ImportDaml.DamlTermInfo |
resource(com.hp.hpl.jena.rdf.arp.AResource aResource,
ImportDaml.DamlTermInfo predicateTermInfo)
Returns the DamlTerm info of the given RDF resource. |
void |
setOntologyNickname(java.lang.String uri,
java.lang.String nickname)
|
void |
setVerbosity(int verbosity)
Sets verbosity of the constraint solver output. |
void |
statement(com.hp.hpl.jena.rdf.arp.AResource subject,
com.hp.hpl.jena.rdf.arp.AResource predicate,
com.hp.hpl.jena.rdf.arp.ALiteral literal)
Provides the ARP statement handler for triple having an Literal. |
void |
statement(com.hp.hpl.jena.rdf.arp.AResource subject,
com.hp.hpl.jena.rdf.arp.AResource predicate,
com.hp.hpl.jena.rdf.arp.AResource object)
Provides the ARP statement handler for triple having an Object. |
protected com.hp.hpl.mesa.rdf.jena.model.Resource |
translateResource(com.hp.hpl.jena.rdf.arp.AResource aResource)
Converts an ARP resource into a Jena resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_VERBOSITY
public boolean actuallyImport
public int verbosity
protected com.hp.hpl.jena.rdf.arp.ARP arp
protected static java.util.HashMap equivalentDamlCycTerms
protected java.util.HashMap ontologyNicknames
protected ImportDaml.DamlTermInfo previousDamlTermInfo
protected java.lang.String damlOntologyDefiningURLString
protected CycFort damlOntologyDefiningURL
protected java.lang.String importMtName
protected CycConstant importMt
protected ImportDaml.DamlRestriction damlRestriction
public CycAccess cycAccess
public java.lang.String kbSubsetCollectionName
protected CycConstant kbSubsetCollection
protected CycConstant bookkeepingMt
protected java.lang.String characterEncoding
Constructor Detail |
public ImportDaml()
Method Detail |
public void initialize() throws java.io.IOException, java.net.UnknownHostException, CycApiException
public void importDaml(java.lang.String damlOntologyDefiningURLString, java.lang.String importMtName) throws java.io.IOException, CycApiException
damlOntologyDefiningURLString
- the URL to importimportMtName
- the microtheory into which DAML content is assertedpublic void importDaml(java.lang.String damlOntologyDefiningURLString, java.lang.String importMtName, java.lang.String characterEncoding) throws java.io.IOException, CycApiException
damlOntologyDefiningURLString
- the URL to importimportMtName
- the microtheory into which DAML content is assertedcharacterEncoding
- the character encoding scheme of the DAML imput
(e.g. "UTF-8", used when not the default ASCIIpublic void statement(com.hp.hpl.jena.rdf.arp.AResource subject, com.hp.hpl.jena.rdf.arp.AResource predicate, com.hp.hpl.jena.rdf.arp.AResource object)
statement
in interface com.hp.hpl.jena.rdf.arp.StatementHandler
subject
- the RDF Triple Subjectpredicate
- the RDF Triple Predicateobject
- the RDF Triple Objectpublic void statement(com.hp.hpl.jena.rdf.arp.AResource subject, com.hp.hpl.jena.rdf.arp.AResource predicate, com.hp.hpl.jena.rdf.arp.ALiteral literal)
statement
in interface com.hp.hpl.jena.rdf.arp.StatementHandler
subject
- the RDF Triple Subjectpredicate
- the RDF Triple Predicateliteral
- the RDF Triple Literalprotected void importTriple(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo predicateTermInfo, ImportDaml.DamlTermInfo objLitTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectpredicateTermInfo
- the predicate DamlTermInfo objectobjLitTermInfo
- the object or literal DamlTermInfo objectprotected void importLiteralTriple(CycFort subject, CycFort predicate, ImportDaml.DamlTermInfo LiteralTermInfo, CycList arg2Constraints) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subject
- the subjectpredicate
- the predicateLiteralTermInfo
- the literal DamlTermInfo objectarg2Constraints
- the argument constraints on the type of literal permitted
by this assertionprotected java.lang.String escaped(java.lang.String text)
string
- the given stringprotected void assertForwardArgConstraints(CycFort term, CycList argConstraints) throws java.io.IOException, java.net.UnknownHostException, CycApiException
term
- the given termargConstraints
- the list of collections for which term must be an instanceprotected void importIsa(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importGenls(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importSynonymousExternalConcept(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importArg1Isa(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importArg2Isa(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importConceptuallyRelated(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importGenlPreds(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo objectTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectobjectTermInfo
- the object DamlTermInfo objectprotected void importVersionInfo(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo literalTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectliteralTermInfo
- the object DamlTermInfo objectprotected void importImports(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo literalTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectliteralTermInfo
- the object DamlTermInfo objectprotected void importComment(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo literalTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectliteralTermInfo
- the object DamlTermInfo objectprotected void importNameString(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo literalTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectliteralTermInfo
- the object DamlTermInfo objectprotected void importContainsInformationAbout(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo uriTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subjectTermInfo
- the subject DamlTermInfo objectliteralTermInfo
- the object DamlTermInfo objectprotected CycFort importTerm(ImportDaml.DamlTermInfo damlTermInfo) throws java.io.IOException, java.net.UnknownHostException, CycApiException
damlTermInfo
- the given daml term informationprotected boolean damlTermInfoWrapperTest(java.lang.String termName)
termName
- the daml term to be substituted and wrappedprotected CycNart damlTermInfoWrapper(java.lang.String termName) throws java.io.IOException, CycApiException
termName
- the daml term to be substituted and wrappedprotected void additionalLexicalAssertions(CycFort term) throws java.io.IOException, CycApiException
term
- the imported Open Directory (wrapped) termprotected void displayTriple(ImportDaml.DamlTermInfo subjectTermInfo, ImportDaml.DamlTermInfo predicateTermInfo, ImportDaml.DamlTermInfo objLitTermInfo)
subjectTermInfo
- the subject DamlTermInfo objectpredicateTermInfo
- the predicate DamlTermInfo objectobjLitTermInfo
- the object or literal DamlTermInfo objectprotected ImportDaml.DamlTermInfo resource(com.hp.hpl.jena.rdf.arp.AResource aResource, ImportDaml.DamlTermInfo predicateTermInfo)
aResource
- the RDF resourcepredicateTermInfo
- when processing the RDF triple object,
contains the predicate term info, otherwise is null;protected ImportDaml.DamlTermInfo literal(com.hp.hpl.jena.rdf.arp.ALiteral literal)
literal
- the RDF literalprotected boolean isProbableUri(java.lang.String string)
string
- the given stringprotected boolean hasUriNamespaceSyntax(java.lang.String uri)
uri
- the URIprotected void processRestrictionSubject(com.hp.hpl.jena.rdf.arp.AResource subject, com.hp.hpl.jena.rdf.arp.AResource predicate, com.hp.hpl.jena.rdf.arp.AResource object) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subject
- the RDF Triple anonymous Subjectpredicate
- the RDF Triple Predicateobject
- the RDF Triple Objectprotected void processRestrictionSubject(com.hp.hpl.jena.rdf.arp.AResource subject, com.hp.hpl.jena.rdf.arp.AResource predicate, com.hp.hpl.jena.rdf.arp.ALiteral literal) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subject
- the RDF Triple anonymous Subjectpredicate
- the RDF Triple Predicateliteral
- the RDF Triple Literalprotected void processRestrictionObject(com.hp.hpl.jena.rdf.arp.AResource subject, com.hp.hpl.jena.rdf.arp.AResource predicate, com.hp.hpl.jena.rdf.arp.AResource object) throws java.io.IOException, java.net.UnknownHostException, CycApiException
subject
- the RDF Triple anonymous Subjectpredicate
- the RDF Triple Predicateobject
- the RDF Triple Objectprotected java.lang.String getOntologyNickname(java.lang.String nameSpace, com.hp.hpl.mesa.rdf.jena.model.Resource resource)
nameSpace
- the XML namespace for which the nickname is soughtresource
- the resource containing the namespace, used for error messagesprotected com.hp.hpl.mesa.rdf.jena.model.Resource translateResource(com.hp.hpl.jena.rdf.arp.AResource aResource)
aResource
- The ARP resource.public void initializeDamlOntologyMt(java.lang.String mtName) throws java.io.IOException, java.net.UnknownHostException, CycApiException
public void initializeCommonOntologyNicknames()
public void setOntologyNickname(java.lang.String uri, java.lang.String nickname)
public void initializeCommonMappedTerms() throws java.io.IOException, java.net.UnknownHostException, CycApiException
protected void assertMapping(java.lang.String damlTermName, java.lang.String damlOntology, java.lang.String damlURI, java.lang.String cycTermName) throws java.io.IOException, java.net.UnknownHostException, CycApiException
damlTermName
- the given DAML/RDFS/RDF termdamlOntology
- the Uniform Resource Locator in which the definition of
the daml term is founddamlURI
- the Uniform Resource Locator which uniquely identifies the daml termcycTermName
- the given Cyc termprotected void assertMapping(java.lang.String damlTermName, java.lang.String damlOntology, java.lang.String damlURI, java.lang.String cycTermName, java.lang.String mappingMt) throws java.io.IOException, java.net.UnknownHostException, CycApiException
damlTermName
- the given DAML/RDFS/RDF termdamlOntology
- the Uniform Resource Locator in which the definition of
the daml term is founddamlURI
- the Uniform Resource Locator which uniquely identifies the daml termcycTermName
- the given Cyc termmappingMt
- the microtheory in which the assertions are placedprotected void assertArgumentMapping(java.lang.String damlPropertyName, java.lang.String damlOntology, java.lang.String damlURI, java.lang.String cycBinaryPredicateName, java.lang.String argumentMappingList) throws java.io.IOException, java.net.UnknownHostException, CycApiException
damlPropertyName
- the given DAML/RDFS/RDF propertydamlOntology
- the Uniform Resource Locator in which the definition of
the daml term is founddamlURI
- the Uniform Resource Locator which uniquely identifies the daml termcycBinaryPredicateName
- the given Cyc binary predicatemappingMt
- the microtheory in which the assertions are placedprotected void assertArgumentMapping(java.lang.String damlPropertyName, java.lang.String damlOntology, java.lang.String damlURI, java.lang.String cycBinaryPredicateName, java.lang.String argumentMappingList, java.lang.String mappingMt) throws java.io.IOException, java.net.UnknownHostException, CycApiException
damlPropertyName
- the given DAML/RDFS/RDF propertydamlOntology
- the Uniform Resource Locator in which the definition of
the daml term is founddamlURI
- the Uniform Resource Locator which uniquely identifies the daml termcycBinaryPredicateName
- the given Cyc binary predicatemappingMt
- the microtheory in which the assertions are placedprotected void getMappings() throws java.io.IOException, java.net.UnknownHostException, CycApiException
protected void getMappings(java.lang.String mappingMt) throws java.io.IOException, java.net.UnknownHostException, CycApiException
mappingMt
- the microtheory from which the assertions are gatheredpublic void initializeCommonDamlVocabulary() throws java.io.IOException, java.net.UnknownHostException, CycApiException
public void setVerbosity(int verbosity)
verbosity
- 0 --> quiet ... 9 -> maximum diagnostic input
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |