├── .gitignore ├── INSTALL.txt ├── LEGAL.txt ├── README.md ├── api └── java │ └── openCycMaven │ ├── pom.xml │ └── src │ ├── main │ └── java │ │ └── org │ │ └── opencyc │ │ ├── api │ │ ├── APIExamples.java │ │ ├── ApiDemo.java │ │ ├── ApiThreadPool.java │ │ ├── CfaslInputStream.java │ │ ├── CfaslInputStreamClosedException.java │ │ ├── CfaslOutputStream.java │ │ ├── CloseTest.java │ │ ├── CompactHLIDConverter.java │ │ ├── CycAccess.java │ │ ├── CycApiClosedConnectionException.java │ │ ├── CycApiException.java │ │ ├── CycApiInvalidObjectException.java │ │ ├── CycApiServerSideException.java │ │ ├── CycCommunication.java │ │ ├── CycConnection.java │ │ ├── CycConnectionInterface.java │ │ ├── CycIOException.java │ │ ├── CycKBContentException.java │ │ ├── CycLFormat.java │ │ ├── CycLeaseManager.java │ │ ├── CycObjectFactory.java │ │ ├── CycUnknownHostException.java │ │ ├── CyclopsBenchmark.java │ │ ├── DefaultSubLWorker.java │ │ ├── DefaultSubLWorkerSynch.java │ │ ├── NLFormat.java │ │ ├── SubLAPIHelper.java │ │ ├── SubLCommandProfiler.java │ │ ├── SubLInteractor.java │ │ ├── SubLInteractorPanel.form │ │ ├── SubLInteractorPanel.java │ │ ├── SubLWorker.java │ │ ├── SubLWorkerEvent.java │ │ ├── SubLWorkerListener.java │ │ ├── SubLWorkerStatus.java │ │ └── SubLWorkerSynch.java │ │ ├── cyclobject │ │ ├── CycLAtomicTerm.java │ │ ├── CycLDenotationalTerm.java │ │ ├── CycLFormula.java │ │ ├── CycLOpenDenotationalTerm.java │ │ ├── CycLOpenExpression.java │ │ ├── CycLRepresentedAtomicTerm.java │ │ ├── CycLRepresentedTerm.java │ │ ├── CycLTerm.java │ │ └── CycLVariable.java │ │ ├── cycobject │ │ ├── ArgPosition.java │ │ ├── ByteArray.java │ │ ├── CycAssertion.java │ │ ├── CycConstant.java │ │ ├── CycConstantSentence.java │ │ ├── CycDenotationalTerm.java │ │ ├── CycFormula.java │ │ ├── CycFormulaSentence.java │ │ ├── CycFort.java │ │ ├── CycList.java │ │ ├── CycListComparator.java │ │ ├── CycListParser.java │ │ ├── CycListVisitor.java │ │ ├── CycNart.java │ │ ├── CycNaut.java │ │ ├── CycNonAtomicTerm.java │ │ ├── CycNumber.java │ │ ├── CycObject.java │ │ ├── CycQuantity.java │ │ ├── CycSentence.java │ │ ├── CycSymbol.java │ │ ├── CycVariable.java │ │ ├── DefaultCycObject.java │ │ ├── ELMt.java │ │ ├── ELMtConstant.java │ │ ├── ELMtCycNaut.java │ │ ├── ELMtNart.java │ │ ├── Guid.java │ │ └── package.html │ │ ├── inference │ │ ├── AbstractInferenceParameter.java │ │ ├── AbstractResultSet.java │ │ ├── BooleanInferenceParameter.java │ │ ├── DefaultBooleanInferenceParameter.java │ │ ├── DefaultEnumerationInferenceParameter.java │ │ ├── DefaultFloatingPointInferenceParameter.java │ │ ├── DefaultInferenceParameterDescriptions.java │ │ ├── DefaultInferenceParameterValueDescription.java │ │ ├── DefaultInferenceParameters.java │ │ ├── DefaultInferenceWorker.java │ │ ├── DefaultInferenceWorkerSynch.java │ │ ├── DefaultIntegerInferenceParameter.java │ │ ├── DefaultUntypedInferenceParameter.java │ │ ├── EnumerationInferenceParameter.java │ │ ├── FloatingPointInferenceParameter.java │ │ ├── InferenceAnswerIdentifier.java │ │ ├── InferenceIdentifier.java │ │ ├── InferenceParameter.java │ │ ├── InferenceParameterDescriptions.java │ │ ├── InferenceParameterValueDescription.java │ │ ├── InferenceParameters.java │ │ ├── InferenceResultSet.java │ │ ├── InferenceStatus.java │ │ ├── InferenceWorker.java │ │ ├── InferenceWorkerListener.java │ │ ├── InferenceWorkerSuspendReason.java │ │ ├── InferenceWorkerSynch.java │ │ ├── IntegerInferenceParameter.java │ │ ├── KBQueryFactory.java │ │ ├── OpenCycInferenceParameterEnum.java │ │ └── SpecifiedInferenceParameters.java │ │ ├── parser │ │ ├── CycLParser.java │ │ ├── CycLParserConstants.java │ │ ├── CycLParserTokenManager.java │ │ ├── CycLParserUtil.java │ │ ├── InvalidConstantGuidException.java │ │ ├── InvalidConstantNameException.java │ │ ├── ParseException.java │ │ ├── SimpleCharStream.java │ │ ├── Token.java │ │ ├── TokenMgrError.java │ │ ├── UnsupportedVocabularyException.java │ │ └── cycl.jj │ │ ├── soap │ │ ├── CycSOAPClient.java │ │ ├── CycSOAPService.java │ │ ├── SOAPBinaryCycConnection.java │ │ └── cyc-service-deploy.wsdd │ │ ├── util │ │ ├── AbstractPair.java │ │ ├── Amp.java │ │ ├── Base64.java │ │ ├── Base64Url.java │ │ ├── CachedValue.java │ │ ├── CancelManager.java │ │ ├── Cancelable.java │ │ ├── CommUtils.java │ │ ├── ComparableNumber.java │ │ ├── ConciseLoggingFormatter.java │ │ ├── CycUtils.java │ │ ├── CycWorker.java │ │ ├── CycWorkerEvent.java │ │ ├── CycWorkerListener.java │ │ ├── CycWorkerQueue.java │ │ ├── DataType.java │ │ ├── DataTypeConverter.java │ │ ├── DateConverter.java │ │ ├── DefaultCancelable.java │ │ ├── Entry.java │ │ ├── FreshLRUCache.java │ │ ├── LRUCache.java │ │ ├── ListBox.java │ │ ├── Log.java │ │ ├── Money.java │ │ ├── MoneyConverter.java │ │ ├── MyStreamTokenizer.java │ │ ├── OcCollectionUtils.java │ │ ├── OpenCycTaskInterruptedException.java │ │ ├── Pair.java │ │ ├── ParseException.java │ │ ├── PasswordManager.java │ │ ├── ResultSetSlice.java │ │ ├── Span.java │ │ ├── StackWithPointer.java │ │ ├── StringUtils.java │ │ ├── SwingWorker.java │ │ ├── TestClass.java │ │ ├── TimeGranularity.java │ │ ├── TimeOutException.java │ │ ├── Timer.java │ │ ├── UUID.java │ │ ├── package.html │ │ └── query │ │ │ ├── AbstractQuerySpecification.java │ │ │ ├── CycQuery.java │ │ │ ├── CycQueryEffortConstraint.java │ │ │ ├── CycQuerySpecification.java │ │ │ ├── CycQueryStatus.java │ │ │ ├── DefaultQueryResult.java │ │ │ ├── EffortConstraint.java │ │ │ ├── Justification.java │ │ │ ├── PresentationConstraint.java │ │ │ ├── Query.java │ │ │ ├── QueryChangeEvent.java │ │ │ ├── QueryConstraint.java │ │ │ ├── QueryListener.java │ │ │ ├── QueryResult.java │ │ │ ├── QueryResultFactory.java │ │ │ ├── QueryResultSet.java │ │ │ ├── QuerySpecification.java │ │ │ ├── QueryStatus.java │ │ │ └── SourceConstraint.java │ │ └── xml │ │ ├── Marshaller.java │ │ ├── NameNodeFilter.java │ │ ├── TextUtil.java │ │ ├── XMLFileWriter.java │ │ ├── XMLPrintWriter.java │ │ ├── XMLStringWriter.java │ │ ├── XMLWriter.java │ │ ├── XpathComputer.java │ │ ├── import-owl.sh │ │ └── vowlidator │ │ ├── cache │ │ ├── Readme.txt │ │ ├── www.w3.org_1999_02_22-rdf-syntax-ns │ │ ├── www.w3.org_2000_01_rdf-schema │ │ ├── www.w3.org_2002_07_owl │ │ ├── www_w3_org_2001_03_XMLSchema.dtd │ │ ├── www_w3_org_2001_03_XMLSchema.xsd │ │ ├── www_w3_org_2001_03_datatypes.dtd │ │ ├── www_w3_org_2001_XMLSchema.dtd │ │ ├── www_w3_org_2001_XMLSchema.xsd │ │ └── www_w3_org_2001_datatypes.dtd │ │ ├── license.txt │ │ ├── preferences.xml │ │ └── validator.dtd │ └── test │ └── java │ └── org │ └── opencyc │ ├── api │ ├── CycLFormatTest.java │ ├── CycObjectFactoryTest.java │ ├── NLFormatTest.java │ └── UnitTest.java │ ├── cycobject │ ├── CycFormulaSentenceTest.java │ └── UnitTest.java │ ├── parser │ └── UnitTest.java │ ├── util │ └── UnitTest.java │ └── xml │ └── UnitTest.java ├── legal-terms.html ├── scripts ├── ant-get-binaries.xml ├── run-cyc.bat └── run-cyc.sh └── server └── cyc └── run ├── bin ├── cyc-runner.sh ├── run-cyc-00.sh ├── run-cyc-20.sh ├── run-cyc-40.sh ├── run-cyc-60.sh ├── run-cyc-80.sh ├── run-cyc-no-init.sh ├── run-cyc-no-services.sh ├── run-cyc.bat └── run-cyc.sh ├── httpd └── htdocs │ ├── cycdoc │ ├── css │ │ ├── cb-cyc.css │ │ ├── fonts-min.css │ │ ├── sam-autocomplete.css │ │ └── yui │ │ │ ├── container │ │ │ └── assets │ │ │ │ └── container.css │ │ │ ├── menu │ │ │ └── menu.css │ │ │ └── tabview │ │ │ └── assets │ │ │ └── skins │ │ │ └── sam │ │ │ └── tabview.css │ ├── help │ │ ├── cb-af.html │ │ ├── cb-agenda.html │ │ ├── cb-all-assertions-tms-handler.html │ │ ├── cb-alpha-index.html │ │ ├── cb-applicable-relations.html │ │ ├── cb-arguments.html │ │ ├── cb-assert-internal.html │ │ ├── cb-auxiliary-indices.html │ │ ├── cb-c-index.html │ │ ├── cb-categorize-term.html │ │ ├── cb-change-direction.html │ │ ├── cb-change-meta-assertion-mt.html │ │ ├── cb-change-mt.html │ │ ├── cb-change-strength.html │ │ ├── cb-choose-project.html │ │ ├── cb-clause-struc.html │ │ ├── cb-conceptually-related-terms.html │ │ ├── cb-confirm-clear-local-and-restart.html │ │ ├── cb-confirm-clear-local-queue.html │ │ ├── cb-confirm-kill.html │ │ ├── cb-constant-review.html │ │ ├── cb-copy-from-similar.html │ │ ├── cb-create-similar.html │ │ ├── cb-create-term.html │ │ ├── cb-create.html │ │ ├── cb-cycl-to-owl.html │ │ ├── cb-dependents.html │ │ ├── cb-describe-constant.html │ │ ├── cb-describe-nat.html │ │ ├── cb-diagnose-assertion.html │ │ ├── cb-elaborate-term.html │ │ ├── cb-find-assertion.html │ │ ├── cb-handle-interactor.html │ │ ├── cb-history.html │ │ ├── cb-hl-support.html │ │ ├── cb-hypothesize-handler.html │ │ ├── cb-index-overlap.html │ │ ├── cb-justify.html │ │ ├── cb-kct-test-set.html │ │ ├── cb-literal-query.html │ │ ├── cb-load-api.html │ │ ├── cb-login.html │ │ ├── cb-merge.html │ │ ├── cb-mode.html │ │ ├── cb-options.html │ │ ├── cb-owl-to-cycl.html │ │ ├── cb-partition-load.html │ │ ├── cb-partition-save.html │ │ ├── cb-query.html │ │ ├── cb-recreate.html │ │ ├── cb-remote-filters.html │ │ ├── cb-rename-variables.html │ │ ├── cb-rename.html │ │ ├── cb-save-inference-answers.html │ │ ├── cb-sentence.html │ │ ├── cb-server-status.html │ │ ├── cb-show-local-ops.html │ │ ├── cb-show-when-handler.html │ │ ├── cb-show-when.html │ │ ├── cb-source.html │ │ ├── cb-system-show-specific-transcript-file.html │ │ ├── cb-system.html │ │ ├── cb-toe-template-results.html │ │ ├── cb-toe.html │ │ ├── cb-toolbar-frame.html │ │ ├── cb-tools.html │ │ ├── cb-transcript-viewer.html │ │ ├── cb-view-adorn.html │ │ ├── cb-viewpoint.html │ │ ├── cb-wff-check-formula.html │ │ ├── cb-wff.html │ │ ├── display-oe-patch-message.html │ │ ├── hb-parameters.html │ │ ├── hb-print-nodes.html │ │ ├── implementation-constants.html │ │ ├── ke-compose.html │ │ ├── ke-review.html │ │ ├── lexwiz.html │ │ └── st-similarity.html │ ├── img │ │ ├── caution-19x19.png │ │ ├── cb │ │ │ ├── alpha-browser-disabled.gif │ │ │ ├── alpha-browser.gif │ │ │ ├── alpha.gif │ │ │ ├── assert-tool.gif │ │ │ ├── bl_menu.gif │ │ │ ├── bl_sdi.gif │ │ │ ├── blue.gif │ │ │ ├── celtic_bar.gif │ │ │ ├── compose-tool.gif │ │ │ ├── create-tool.gif │ │ │ ├── cy_menu.gif │ │ │ ├── cyan.gif │ │ │ ├── cyanstar.gif │ │ │ ├── cyc-logo-3-t.gif │ │ │ ├── cyc-logo-violet-60.gif │ │ │ ├── dim-red-x-close-15.gif │ │ │ ├── doc-tool.gif │ │ │ ├── facet-browser-disabled.gif │ │ │ ├── facet-browser.gif │ │ │ ├── gr_sdi.gif │ │ │ ├── gray.gif │ │ │ ├── green.gif │ │ │ ├── grnstar.gif │ │ │ ├── help_btn_s.gif │ │ │ ├── hierarchy-browser-disabled.gif │ │ │ ├── hierarchy-browser.gif │ │ │ ├── history-tool.gif │ │ │ ├── index-browser-disabled.gif │ │ │ ├── index-browser.gif │ │ │ ├── mini-logo.gif │ │ │ ├── nart.png │ │ │ ├── nat.png │ │ │ ├── nonwff.gif │ │ │ ├── opencyc-logo-60.gif │ │ │ ├── pink.gif │ │ │ ├── plus-green.gif │ │ │ ├── plus-purple.gif │ │ │ ├── plus-yellow.gif │ │ │ ├── purple.gif │ │ │ ├── query-tool.gif │ │ │ ├── red-x-close-15.gif │ │ │ ├── red.gif │ │ │ ├── red_diam.gif │ │ │ ├── star.gif │ │ │ ├── white.gif │ │ │ └── yellow.gif │ │ ├── cyc-down-triangle-violet.gif │ │ ├── cyc-left-triangle-violet.gif │ │ ├── cyc-logo-10-t.gif │ │ ├── cyc-logo-25-t.gif │ │ ├── cyc-logo-50-t.gif │ │ ├── cyc-logo-sm.gif │ │ ├── cyc-logo-tiny.gif │ │ ├── cyc-logo-violet-16.gif │ │ ├── cyc-logo-violet-60.gif │ │ ├── cyc-no-triangle-violet.gif │ │ ├── cyc-right-triangle-violet.gif │ │ ├── cyc-up-triangle-violet.gif │ │ ├── genstring-gray-20x20.png │ │ ├── genstring-purple-20x20.png │ │ ├── graycaution-19x19.png │ │ ├── graystar-19x19.gif │ │ ├── redcaution-19x19.png │ │ ├── square-blank.gif │ │ ├── square-minus.gif │ │ ├── square-plus.gif │ │ └── yellowstar-19x19.png │ ├── js │ │ ├── animation-min.js │ │ ├── autocomplete-min.js │ │ ├── cb-create-similar.js │ │ ├── cb-inline-edit.js │ │ ├── cb-sentence-editor.js │ │ ├── cb.js │ │ ├── connection-min.js │ │ ├── constant-completion.js │ │ ├── constant-creation.js │ │ ├── container-min.js │ │ ├── container_core-min.js │ │ ├── datasource-min.js │ │ ├── dom.js │ │ ├── element.js │ │ ├── event-delegate-min.js │ │ ├── event-min.js │ │ ├── event.js │ │ ├── findDOM.js │ │ ├── lexical.js │ │ ├── menu-min.js │ │ ├── overlib.js │ │ ├── rangyinputs.js │ │ ├── selector-min.js │ │ ├── sha1.js │ │ ├── tabview.js │ │ ├── visibility.js │ │ ├── yahoo-dom-event.js │ │ ├── yahoo-min.js │ │ └── yahoo.js │ └── toc.html │ └── javascript │ ├── config.js │ ├── cssjsmenu.js │ ├── cssjsmenudhtml.css │ ├── cssjsmenuhover.css │ ├── cssjsmenupreso.css │ └── dhtml.js └── init ├── cyc-init.lisp ├── jrtl-init.lisp ├── jrtl-release-init.lisp ├── offset-services-init-00.lisp ├── offset-services-init-20.lisp ├── offset-services-init-40.lisp ├── offset-services-init-60.lisp ├── offset-services-init-80.lisp ├── parameters.lisp ├── port-init.lisp ├── release-specific-init.lisp └── services-init.lisp /.gitignore: -------------------------------------------------------------------------------- 1 | #Contains binary *.jars. In the future can potentially include sources of the jars (via tool like subrepo) and have /scripts/run-cyc.sh build them if they're not built. For closed-source binaries a different method should be used (e.g. Ant 'get' task from sourceforge). 2 | server/cyc/run/lib/ 3 | #Contains data OpenCyc manages (mostly binary). Best to let OpenCyc handle contents. Not sure what method is best for initial population. 4 | server/cyc/run/units/ 5 | server/cyc/run/preferences/users/ 6 | server/cyc/run/transcripts/ 7 | api/java/lib/ 8 | *.swp 9 | *.orig 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Synopsis: 2 | OpenCyc 4.0 works on Linux and Windows- MacOS may require startup script changes. OpenCyc 4.0 is implemented in Java 1.6. 3 | 4 | OpenCyc requires 3G RAM under 64bit and about 1G of disk space. 5 | Running OpenCyc under 32bit is no longer supported. 6 | 7 | When OpenCyc is started, it loads the KB into memory; depending on the amount of RAM on your system and the speed of your disk, this can take up to one or two minutes. 8 | 9 | Once OpenCyc is running, you will see the SubL command prompt. Don't close the window containing this prompt because it will kill the image. 10 | ``` 11 | CYC(1): 12 | ``` 13 | * You can enter SubL expressions such as `(+ 1 2)` or `(genls #$Person)` or `(all-genls #$Person)` at the command line to verify Cyc's operation. 14 | 15 | * At this point the Cyc http server is running and you can access Cyc directly via the local web browser. http://localhost:3602/cgi-bin/cg?cb-start 16 | 17 | * To access from a remote machine, change 'localhost' to the IP name of the machine running Cyc, e.g. http://hamlet.mydomain.com:3602/cgi-bin/cg?cb-start 18 | 19 | * You can browse Cyc via the Guest account or perform updates by logging on as CycAdministrator (the default). 20 | 21 | You can cleanly shut down the OpenCyc server by entering: 22 | 23 | ```CYC(N): (halt-cyc-image)``` 24 | 25 | ### Fork Notice: 26 | 27 | The official release of OpenCyc is hosted here: https://sourceforge.net/projects/opencyc/ 28 | 29 | This fork of OpenCyc simply adds autocomplete to the web interface to significantly accelerate CycL input. 30 | 31 | At this time ResearchCyc & EnterpriseCyc use the Cyc Core API: http://dev.cyc.com/api/core/download/ https://github.com/cycorp/api-suite 32 | In the future the intention is for both the Core API and OpenCyc API to support OpenCyc 4.0. If all you intend to use/support is OpenCyc 4.0 then there is nothing to worry about. 33 | 34 | Rather than store the large binary knowledge in git, Ant will download the large knowledge binaries, the OpenCyc API jar, and closed source jars from CycCorp's OpenCyc 4.0 release on sourceforge. The OpenCyc API source is here but the plumbing to build it from source was not set up, it is simply pulled from sourceforge along with the other jars. Issues may exist with it- for example Turkish characters are not supported. I apologize I didn't set up the plumbing to build the jar via Maven- but will welcome pull requests. 35 | 36 | Enjoy! -Andrew R. Smart 37 | 38 | -------------------------------------------------------------------------------- /api/java/openCycMaven/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.cyc.library 7 | opencyc 8 | 4.0.140336 9 | opencycMaven 10 | 11 | jar 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | src/test/java 19 | 20 | 21 | 22 | org.apache.maven.plugins 23 | maven-compiler-plugin 24 | 2.3.2 25 | 26 | 1.6 27 | 1.6 28 | 29 | 30 | 31 | maven-assembly-plugin 32 | 2.3 33 | 34 | 35 | 36 | 37 | 38 | org.apache.maven.plugins 39 | maven-javadoc-plugin 40 | 2.8.1 41 | 42 | 43 | 44 | 45 | 46 | 47 | axis 48 | axis 49 | 1.4 50 | 51 | 52 | junit 53 | junit 54 | 4.8.2 55 | test 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CloseTest.java: -------------------------------------------------------------------------------- 1 | /* $Id: CloseTest.java 128323 2009-07-14 22:45:32Z tbrussea $ 2 | * 3 | * Copyright (c) 2008 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.api; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | *

CloseTest is designed to... 16 | * 17 | *

Copyright (c) 2008 Cycorp, Inc. All rights reserved. 18 | *
This software is the proprietary information of Cycorp, Inc. 19 | *

Use is subject to license terms. 20 | * 21 | * Created on : Jul 9, 2009, 11:59:43 AM 22 | * Author : tbrussea 23 | * @version $Id: CloseTest.java 128323 2009-07-14 22:45:32Z tbrussea $ 24 | */ 25 | public class CloseTest { 26 | 27 | //// Constructors 28 | 29 | /** Creates a new instance of CloseTest. */ 30 | public CloseTest() { 31 | } 32 | 33 | //// Public Area 34 | 35 | //// Protected Area 36 | 37 | //// Private Area 38 | 39 | //// Internal Rep 40 | 41 | //// Main 42 | 43 | //This main method should quit without needing to call exit because of lingering threads. 44 | public static void main(String[] args) { 45 | System.out.println("Starting"); 46 | System.out.flush(); 47 | CycAccess access = null; 48 | try { 49 | access = new CycAccess("localhost", 3660); // @hack 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } finally { 53 | try { 54 | access.close(); 55 | } catch (Exception e) {} // ignore 56 | System.out.println("Finished."); 57 | System.out.flush(); 58 | } 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CycApiClosedConnectionException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.api; 2 | 3 | public class CycApiClosedConnectionException extends CycApiException { 4 | 5 | public CycApiClosedConnectionException(String s) { 6 | super(s); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CycCommunication.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.api; 2 | 3 | import java.io.IOException; 4 | 5 | import org.opencyc.util.CycUtils; 6 | import org.opencyc.util.CycWorker; 7 | import org.opencyc.util.CycWorkerListener; 8 | 9 | 10 | public class CycCommunication extends CycWorker { 11 | 12 | int timeOutMS = 0; 13 | String subL = ""; 14 | //need to make CycAccess TRUELY ASYNCHRONOUS!!!!!!!! 15 | CycAccess conn = null; 16 | 17 | /** @deprecated use SubLWorker */ 18 | public CycCommunication(CycAccess theConn, String subLExp, 19 | int theTimeOutMS, CycWorkerListener cwl) { 20 | conn = theConn; 21 | subL = subLExp; 22 | timeOutMS = theTimeOutMS; 23 | this.addListener(cwl); 24 | } 25 | 26 | /** @deprecated use SubLWorker */ 27 | public CycCommunication(CycAccess theConn, String subLExp, 28 | int theTimeOutMS) { 29 | conn = theConn; 30 | subL = subLExp; 31 | timeOutMS = theTimeOutMS; 32 | } 33 | 34 | //Need to modify this to handle timeouts!!!!!!!!!!! 35 | public Object construct() throws IOException, CycApiException { 36 | return CycUtils.evalSubLWithWorker(conn, subL); 37 | } 38 | 39 | /**Blocking call.*/ 40 | public Object getReply() throws Exception { return getWork(); } 41 | 42 | public boolean isDone() { 43 | if(null == threadVar.get()) { return true; } 44 | return false; 45 | } 46 | 47 | public void waitTillDone() { 48 | while (true) { 49 | Thread t = threadVar.get(); 50 | if (t == null) { 51 | return; 52 | } 53 | try { 54 | t.join(); 55 | } catch (InterruptedException e) { 56 | Thread.currentThread().interrupt(); // propagate 57 | return; 58 | } 59 | } 60 | } 61 | 62 | //Need to updated this to send kill message to KB as well as 63 | //kill background thread!!!!!!!! 64 | public void interrupt() { super.interrupt(); } 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CycIOException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.api; 2 | 3 | /** 4 | * Class CycApiException indicates an error condition during a Cyc API call. 5 | * 6 | * @version $Id: CycIOException.java 138070 2012-01-10 19:46:08Z sbrown $ 7 | * @author Stephen L. Reed 8 | * 9 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 10 | *

the license 11 | *

www.opencyc.org 12 | *

OpenCyc at SourceForge 13 | *

14 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 15 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 17 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 18 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 19 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 25 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | */ 27 | 28 | public class CycIOException extends RuntimeException { 29 | 30 | 31 | /** 32 | * Construct a CycApiException object with no specified message. 33 | */ 34 | public CycIOException() { 35 | super(); 36 | } 37 | 38 | /** 39 | * Construct a CycApiException object with a specified message. 40 | * @param s a message describing the exception. 41 | */ 42 | public CycIOException(String s) { 43 | super(s); 44 | } 45 | 46 | public CycIOException(String s, Throwable cause) { 47 | super(s, cause); 48 | } 49 | 50 | public CycIOException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CycKBContentException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.api; 2 | 3 | /** 4 | * Class CycKBContentException indicates that there is some problem with 5 | * the knowledge currently stored in the KB. 6 | * 7 | * @version $Id: CycKBContentException.java 138070 2012-01-10 19:46:08Z sbrown $ 8 | * @author Stephen L. Reed 9 | * 10 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 11 | *

the license 12 | *

www.opencyc.org 13 | *

OpenCyc at SourceForge 14 | *

15 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 16 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 18 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 19 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 20 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 24 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 26 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | 29 | public class CycKBContentException extends RuntimeException { 30 | 31 | /** 32 | * Construct a CycApiException object with no specified message. 33 | */ 34 | public CycKBContentException() { 35 | super(); 36 | } 37 | 38 | /** 39 | * Construct a CycApiException object with a specified message. 40 | * @param s a message describing the exception. 41 | */ 42 | public CycKBContentException(String s) { 43 | super(s); 44 | } 45 | 46 | /** 47 | * Construct a CycApiException object with a specified message 48 | * and throwable. 49 | * @param s the message string 50 | * @param cause the throwable that caused this exception 51 | */ 52 | public CycKBContentException(String s, Throwable cause) { 53 | super(s, cause); 54 | } 55 | 56 | /** 57 | * Construct a CycApiException object with a specified throwable. 58 | * @param cause the throwable that caused this exception 59 | */ 60 | public CycKBContentException(Throwable cause) { 61 | super(cause); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/CycUnknownHostException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.api; 2 | 3 | /** 4 | * Class CycApiException indicates an error condition during a Cyc API call. 5 | * 6 | * @version $Id: CycUnknownHostException.java 138070 2012-01-10 19:46:08Z sbrown $ 7 | * @author Stephen L. Reed 8 | * 9 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 10 | *

the license 11 | *

www.opencyc.org 12 | *

OpenCyc at SourceForge 13 | *

14 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 15 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 17 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 18 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 19 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 25 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | */ 27 | 28 | public class CycUnknownHostException extends RuntimeException { 29 | 30 | 31 | /** 32 | * Construct a CycApiException object with no specified message. 33 | */ 34 | public CycUnknownHostException() { 35 | super(); 36 | } 37 | 38 | /** 39 | * Construct a CycApiException object with a specified message. 40 | * @param s a message describing the exception. 41 | */ 42 | public CycUnknownHostException(String s) { 43 | super(s); 44 | } 45 | 46 | public CycUnknownHostException(String s, Throwable cause) { 47 | super(s, cause); 48 | } 49 | 50 | public CycUnknownHostException(Throwable cause) { 51 | super(cause); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/api/SubLWorkerListener.java: -------------------------------------------------------------------------------- 1 | /* $Id: SubLWorkerListener.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | */ 3 | 4 | package org.opencyc.api; 5 | 6 | //// EXTERNAL IMPORTS 7 | import java.util.EventListener; 8 | 9 | /**

This interface is one that must be implemented by anyone 10 | * wishing to listen in on events generated by a SubLWorker. 11 | * 12 | *

Copyright 2004 Cycorp, Inc., license is open source GNU LGPL. 13 | *

the license 14 | *

www.opencyc.org 15 | *

OpenCyc at SourceForge 16 | *

17 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 18 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 21 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 22 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 28 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | * 30 | * @see SubLWorker 31 | * @author tbrussea 32 | * @version $Id: SubLWorkerListener.java 138070 2012-01-10 19:46:08Z sbrown $ 33 | */ 34 | public interface SubLWorkerListener extends EventListener { 35 | 36 | /** This event is fired when a SubLWorker is starting the 37 | * processing of a SubL task. 38 | * @param event the event object with details about this event 39 | */ 40 | public void notifySubLWorkerStarted(SubLWorkerEvent event); 41 | 42 | /** This event is fired when new data becomes available in 43 | * the processing of a SubL task. 44 | * @param event the event object with details about this event 45 | */ 46 | public void notifySubLWorkerDataAvailable(SubLWorkerEvent event); 47 | 48 | /** This event is fired when a SubL task has been terminated 49 | * for any reason. 50 | * @param event the event object with details about this event 51 | */ 52 | public void notifySubLWorkerTerminated(SubLWorkerEvent event); 53 | 54 | } 55 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLAtomicTerm.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLAtomicTerm as of 2002/05/07:

5 | * 6 | * The collection of all atomic #$CycLDenotationalTerms (q.v.). "Atomic" here 7 | * means not constructible from other CycL terms via the syntax of CycL. Thus, 8 | * subcollections of #$CycLAtomicTerm include #$CycLConstant, #$CycLVariable, 9 | * and #$SubLAtomicTerm. Note that #$CycLAtomicTerm, like most instances of 10 | * #$CycLExpressionType, is "quoted" (see #$quotedCollection).

11 | * 12 | * @version $Id: CycLAtomicTerm.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author Tony Brusseau, Steve Reed 14 | * 15 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 16 | *

the license 17 | *

www.opencyc.org 18 | *

OpenCyc at SourceForge 19 | *

20 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 21 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 23 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 24 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 25 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 31 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | *****************************************************************************/ 33 | public interface CycLAtomicTerm extends CycLDenotationalTerm { 34 | } 35 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLOpenDenotationalTerm.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLOpenDenotationalTerm as of 2002/05/07:

5 | * 6 | * The collection of all open denotational terms in the CycL language. An 7 | * expression is "open" if it contains one or more free variables (see 8 | * #$CycLOpenExpression). A CycL term is said to be "denotational" if it is the 9 | * right sort of term to have a denotation (or value) in the universe of 10 | * discourse (see #$CycLDenotationalTerm). Each instance of 11 | * #$CycLOpenDenotationalTerm is either a #$CycLOpenNonAtomicTerm (i.e. a "NAT" 12 | * with a free variable) or a #$CycLVariable iself. Examples include `?X', 13 | * `(#$JuvenileFn ?X)', and `(#$JuvenileFn #$isa ?X #$genls #$JuvenileFn)' (even 14 | * though the latter is semantically ill-formed).

15 | * 16 | * @version $Id: CycLOpenDenotationalTerm.java 138070 2012-01-10 19:46:08Z sbrown $ 17 | * @author Tony Brusseau, Steve Reed 18 | * 19 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 20 | *

the license 21 | *

www.opencyc.org 22 | *

OpenCyc at SourceForge 23 | *

24 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 25 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 26 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 27 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 28 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 29 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 30 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 35 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | *****************************************************************************/ 37 | public interface CycLOpenDenotationalTerm 38 | extends CycLOpenExpression, CycLDenotationalTerm {} 39 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLOpenExpression.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLOpenExpression as of 2002/05/07:

5 | * 6 | * The collection of CycL expressions that contain one or more free variables. 7 | * A variable VAR occurs _free_ in an expression EXPR if and only if there is an 8 | * occurrence of VAR in EXPR that is not bound by a term denoting a 9 | * #$ScopingRelation (q.v.), such as a quantifier or #$TheSetOf, in EXPR.

10 | * 11 | * @version $Id: CycLOpenExpression.java 138070 2012-01-10 19:46:08Z sbrown $ 12 | * @author Tony Brusseau, Steve Reed 13 | * 14 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 15 | *

the license 16 | *

www.opencyc.org 17 | *

OpenCyc at SourceForge 18 | *

19 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 20 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 22 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 23 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 24 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 30 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | *****************************************************************************/ 32 | public interface CycLOpenExpression extends CycLTerm { 33 | } 34 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLRepresentedAtomicTerm.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLRepresentedAtomicTerm as of 2002/05/07:

5 | * 6 | * The collection of all atomic denotational terms specifically introduced as 7 | * part of the CycL language, as opposed to being defined more generally as 8 | * terms in the subsuming SubL language. Thus, #$CycLRepresentedAtomicTerm has 9 | * as instances all #$CycLVariables and #$CycLConstants, but no 10 | * #$SubLAtomicTerms.

11 | * 12 | * @version $Id: CycLRepresentedAtomicTerm.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author Tony Brusseau, Steve Reed 14 | * 15 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 16 | *

the license 17 | *

www.opencyc.org 18 | *

OpenCyc at SourceForge 19 | *

20 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 21 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 22 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 23 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 24 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 25 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 31 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | *****************************************************************************/ 33 | public interface CycLRepresentedAtomicTerm 34 | extends CycLAtomicTerm, CycLRepresentedTerm { 35 | } -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLRepresentedTerm.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLRepresentedTerm as of 2002/05/07:

5 | * 6 | * The collection of all denotational terms that are represented in the CycL 7 | * language, instead of being defined in SubL, the underlying implementation 8 | * language used by Cyc. That is, each instance of #$CycLRepresentedTerm is 9 | * either (i) an atomic term, and thus also an instance of 10 | * #$CycLRepresentedAtomicTerm (q.v.), or (ii) a non-atomic term (or "NAT"), and 11 | * has a #$CycLRepresentedTerm as its arg0 functor (the other arguments in the 12 | * NAT need not be CycL represented terms). Thus #$CycLRepresentedTerm has as 13 | * instances all #$CycLConstants, all #$CycLVariables, and all 14 | * #$CycLNonAtomicTerms.

15 | * 16 | * @version $Id: CycLRepresentedTerm.java 138070 2012-01-10 19:46:08Z sbrown $ 17 | * @author Tony Brusseau, Steve Reed 18 | * 19 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 20 | *

the license 21 | *

www.opencyc.org 22 | *

OpenCyc at SourceForge 23 | *

24 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 25 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 26 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 27 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 28 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 29 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 30 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 35 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 | *****************************************************************************/ 37 | public interface CycLRepresentedTerm extends CycLDenotationalTerm { 38 | } 39 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cyclobject/CycLVariable.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cyclobject; 2 | 3 | /***************************************************************************** 4 | * KB comment for #$CycLVariable as of 2002/05/07:

5 | * 6 | * The collection of all variables in the CycL language. A #$CycLVariable is a 7 | * character string consisting of a question mark `?' (as its initial character) 8 | * followed by one or more characters, where each of these latter characters is 9 | * either an (upper- or lower-case) Roman letter, an Arabic numeral (i.e. `0' 10 | * through `9'), a hyphen (`-'), an underscore (`_'), or another question mark. 11 | * (The letters occurring in a CycL variable used in an actual assertion will 12 | * typically be all uppercase; but this convention is not enforced in any formal 13 | * way.) Examples: `?WHAT', '?OBJ-TYPE', and `?var0'.

14 | * 15 | * @version $Id: CycLVariable.java 138070 2012-01-10 19:46:08Z sbrown $ 16 | * @author Tony Brusseau, Steve Reed 17 | * 18 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 19 | *

the license 20 | *

www.opencyc.org 21 | *

OpenCyc at SourceForge 22 | *

23 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 24 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 25 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 26 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 27 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 29 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 32 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 34 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 | *****************************************************************************/ 36 | public interface CycLVariable 37 | extends CycLOpenDenotationalTerm, CycLRepresentedAtomicTerm { 38 | 39 | } 40 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/CycConstantSentence.java: -------------------------------------------------------------------------------- 1 | /* $Id: CycConstantSentence.java 133723 2011-03-03 21:55:50Z mwitbrock $ 2 | * 3 | * Copyright (c) 2008 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | package org.opencyc.cycobject; 8 | 9 | //// External Imports 10 | 11 | /** 12 | *

CycConstantSentence is designed to be an object that represents Sentences that 13 | * are single terms (the only known instance of this is #$False. 14 | * 15 | *

Copyright (c) 2011 Cycorp, Inc. All rights reserved. 16 | *
This software is the proprietary information of Cycorp, Inc. 17 | *

Use is subject to license terms. 18 | * 19 | * Created on : March 3, 2011, 10:05:43 AM 20 | * Author : daves 21 | * @version $Id: CycConstantSentence.java 133723 2011-03-03 21:55:50Z mwitbrock $ 22 | * 23 | */ 24 | public class CycConstantSentence extends CycConstant implements CycSentence { 25 | 26 | /** 27 | * Create and return a new CycSentence whose arguments are terms. 28 | * CycList arguments will be converted to CycNauts or CycSentences. 29 | * @param terms 30 | */ 31 | public CycConstantSentence(CycConstant constant) { 32 | super(constant.getName(), constant.getGuid()); 33 | //@todo should this throw an exception if it's not #$False? 34 | } 35 | 36 | 37 | @Override 38 | public boolean isConditionalSentence() { 39 | return false; 40 | } 41 | 42 | public boolean isConjunction() { 43 | return false; 44 | } 45 | 46 | @Override 47 | public boolean isLogicalConnectorSentence() { 48 | return false; 49 | } 50 | 51 | @Override 52 | public boolean isExistential() { 53 | return false; 54 | } 55 | 56 | @Override 57 | public boolean isUniversal() { 58 | return false; 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/CycDenotationalTerm.java: -------------------------------------------------------------------------------- 1 | /* $Id: CycDenotationalTerm.java 128197 2009-07-06 17:05:49Z baxter $ 2 | * 3 | * Copyright (c) 2008 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.cycobject; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | *

CycDenotationalTerm is designed to... 16 | * 17 | *

Copyright (c) 2008 Cycorp, Inc. All rights reserved. 18 | *
This software is the proprietary information of Cycorp, Inc. 19 | *

Use is subject to license terms. 20 | * 21 | * Created on : Jul 6, 2009, 10:28:22 AM 22 | * Author : baxter 23 | * @version $Id: CycDenotationalTerm.java 128197 2009-07-06 17:05:49Z baxter $ 24 | */ 25 | public interface CycDenotationalTerm extends CycObject { 26 | 27 | public boolean equalsAtEL(Object id); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/CycNonAtomicTerm.java: -------------------------------------------------------------------------------- 1 | /* $Id: CycNonAtomicTerm.java 131278 2010-06-28 13:51:40Z baxter $ 2 | * 3 | * Copyright (c) 2008 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.cycobject; 9 | 10 | //// Internal Imports 11 | 12 | 13 | 14 | //// External Imports 15 | import java.util.List; 16 | 17 | /** 18 | *

CycNonAtomicTerm is designed to... 19 | * 20 | *

Copyright (c) 2008 Cycorp, Inc. All rights reserved. 21 | *
This software is the proprietary information of Cycorp, Inc. 22 | *

Use is subject to license terms. 23 | * 24 | * Created on : Jul 6, 2009, 10:05:43 AM 25 | * Author : baxter 26 | * @version $Id: CycNonAtomicTerm.java 131278 2010-06-28 13:51:40Z baxter $ 27 | */ 28 | public interface CycNonAtomicTerm extends CycDenotationalTerm { 29 | 30 | abstract CycFort getFunctor(); 31 | abstract List getArguments(); 32 | abstract CycNaut getFormula(); 33 | Object getArgument(final int argnum); 34 | 35 | /** 36 | * Returns a list representation of the OpenCyc NART. 37 | * 38 | * @return a CycList representation of the OpenCyc NART. 39 | */ 40 | CycList toCycList(); 41 | 42 | /** 43 | * Returns a list representation of the OpenCyc NART and expands any embedded NARTs as well. 44 | * 45 | * @return a CycList representation of the OpenCyc NART. 46 | */ 47 | CycList toDeepCycList(); 48 | 49 | public int getArity(); 50 | } 51 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/CycSentence.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | 6 | package org.opencyc.cycobject; 7 | 8 | /** 9 | * 10 | * @author baxter 11 | */ 12 | public interface CycSentence extends CycObject { 13 | 14 | boolean isConditionalSentence(); 15 | 16 | boolean isConjunction(); 17 | 18 | boolean isLogicalConnectorSentence(); 19 | 20 | boolean isExistential(); 21 | 22 | boolean isUniversal(); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/ELMt.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cycobject; 2 | 3 | /** 4 | * Defines the behavior of a Epistological Level Microtheory (ELMt), which can be 5 | * a Constant, NART (Non-Atomic Reified Term) or NAUT (Non-Atomic Unrefied Term). 6 | * 7 | * @version $0.1$ 8 | * @author Stephen L. Reed 9 | * 10 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 11 | *

the license 12 | *

www.opencyc.org 13 | *

OpenCyc at SourceForge 14 | *

15 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 16 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 18 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 19 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 20 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 24 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 26 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | */ 28 | public interface ELMt extends CycDenotationalTerm { 29 | } 30 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/ELMtConstant.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cycobject; 2 | 3 | import org.opencyc.api.CycAccess; 4 | import org.opencyc.api.CycObjectFactory; 5 | 6 | /** 7 | * Provides the container for the ELMt CycConstant (Epistemlogical Level Microtheory 8 | * Constant).

9 | * 10 | * @version $Id: ELMtConstant.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author Tony Brusseau 12 | * 13 | *

Copyright 2003 Cycorp, Inc., license is open source GNU LGPL. 14 | *

the license 15 | *

www.opencyc.org 16 | *

OpenCyc at SourceForge 17 | *

18 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 19 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 21 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 22 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 23 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 29 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | */ 31 | 32 | public class ELMtConstant extends CycConstant implements ELMt { 33 | 34 | static final long serialVersionUID = -2405506745680227189L; 35 | 36 | /** Privately creates a new instance of ELMtConstant 37 | * deprecated 38 | */ 39 | private ELMtConstant(CycConstant cycConstant) { 40 | super(cycConstant.getName(), cycConstant.getGuid()); 41 | } 42 | 43 | /** 44 | * Returns a new ELMtConstant given a CycConstant. Note, use the 45 | * factory method in the CycAccess to create these. 46 | */ 47 | public static ELMtConstant makeELMtConstant(CycConstant cycConstant) { 48 | CycObjectFactory.removeCaches(cycConstant); 49 | ELMtConstant elmtConstant = new ELMtConstant(cycConstant); 50 | CycObjectFactory.addCycConstantCache(cycConstant); 51 | return elmtConstant; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/ELMtCycNaut.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cycobject; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Provides the container for the ELMt NAUT (Epistemlogical Level Microtheory 7 | * Non Atomic Un-reified Term).

8 | * 9 | * @version $Id: ELMtCycNaut.java 138070 2012-01-10 19:46:08Z sbrown $ 10 | * @author Tony Brusseau 11 | * 12 | *

Copyright 2003 Cycorp, Inc., license is open source GNU LGPL. 13 | *

the license 14 | *

www.opencyc.org 15 | *

OpenCyc at SourceForge 16 | *

17 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 18 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 21 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 22 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 28 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | */ 30 | 31 | public class ELMtCycNaut extends CycNaut implements ELMt { 32 | 33 | /** Creates a new instance of ELMtCycNaut */ 34 | private ELMtCycNaut(List terms) { 35 | super(terms); 36 | } 37 | 38 | /** 39 | * Returns a new ELMtCycNaut. Note, use the 40 | * factory method in the CycAccess to create these. 41 | */ 42 | public static ELMtCycNaut makeELMtCycNaut(List terms) { 43 | return new ELMtCycNaut(terms); 44 | } 45 | /** 46 | * Returns this object in a form suitable for use as an String api expression value. 47 | * 48 | * @return this object in a form suitable for use as an String api expression value 49 | */ 50 | //@ToDo uncomment this when (list* issues has been resolved in cyclify() of CycList 51 | /*public String stringApiValue() { 52 | return "'" + super.stringApiValue(); 53 | }*/ 54 | 55 | } 56 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/ELMtNart.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.cycobject; 2 | 3 | import org.opencyc.api.CycObjectFactory; 4 | 5 | /** 6 | * Provides the container for the ELMt NART (Epistemlogical Level Microtheory 7 | * Non Atomic Reified Term).

8 | * 9 | * @version $Id: ELMtNart.java 138070 2012-01-10 19:46:08Z sbrown $ 10 | * @author Tony Brusseau 11 | * 12 | *

Copyright 2003 Cycorp, Inc., license is open source GNU LGPL. 13 | *

the license 14 | *

www.opencyc.org 15 | *

OpenCyc at SourceForge 16 | *

17 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 18 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 21 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 22 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 28 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | */ 30 | public class ELMtNart extends CycNart implements ELMt { 31 | 32 | /** Creates a new instance of ELMtNart */ 33 | private ELMtNart(CycNart nart) { 34 | super(nart.toCycList()); 35 | } 36 | 37 | /** 38 | * Returns a new ELMtNart given a CycNart. Note, use the 39 | * factory method in the CycAccess to create these. 40 | */ 41 | public static ELMtNart makeELMtNart(CycNart nart) { 42 | return new ELMtNart(nart); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/cycobject/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | OpenCyc org.opencyc.cycobject Package Documentation 5 | 6 | 7 | Provides the attributes and behavior of OpenCyc Knowledge Base objects such as 8 | constants, functional expressions, lists, rules and assertions. 9 | 10 | 11 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/BooleanInferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: BooleanInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// Internal Imports 11 | import org.opencyc.cycobject.*; 12 | 13 | //// External Imports 14 | 15 | /** 16 | *

InferenceParameter is designed to... 17 | * 18 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 19 | *
This software is the proprietary information of Cycorp, Inc. 20 | *

Use is subject to license terms. 21 | * 22 | * @author tbrussea 23 | * @date August 2, 2005, 10:25 AM 24 | * @version $Id: BooleanInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 25 | */ 26 | public interface BooleanInferenceParameter extends InferenceParameter { 27 | } 28 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/DefaultUntypedInferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: DefaultUntypedInferenceParameter.java 129339 2009-12-03 14:10:29Z danr $ 2 | * 3 | * Copyright (c) 2004 - 2009 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | package org.opencyc.inference; 8 | 9 | import java.util.Map; 10 | 11 | /** 12 | *

DefaultUntypedInferenceParameter is designed to... 13 | * 14 | *

Copyright (c) 2004 - 2009 Cycorp, Inc. All rights reserved. 15 | *
This software is the proprietary information of Cycorp, Inc. 16 | *

Use is subject to license terms. 17 | * 18 | * @author baxter 19 | * @date June 19, 2009 20 | * @version $Id: DefaultUntypedInferenceParameter.java 129339 2009-12-03 14:10:29Z danr $ 21 | */ 22 | class DefaultUntypedInferenceParameter extends AbstractInferenceParameter { 23 | 24 | public DefaultUntypedInferenceParameter(Map propertyMap) { 25 | super(propertyMap); 26 | } 27 | 28 | @Override 29 | public boolean isValidValue(Object potentialValue) { 30 | return true; 31 | } 32 | 33 | 34 | public Object parameterValueCycListApiValue(Object val) { 35 | return val; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/EnumerationInferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: EnumerationInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | package org.opencyc.inference; 8 | 9 | //// Internal Imports 10 | //// External Imports 11 | import java.util.List; 12 | 13 | /** 14 | *

InferenceParameter is designed to... 15 | * 16 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 17 | *
This software is the proprietary information of Cycorp, Inc. 18 | *

Use is subject to license terms. 19 | * 20 | * @author tbrussea 21 | * @date August 2, 2005, 10:25 AM 22 | * @version $Id: EnumerationInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 23 | */ 24 | public interface EnumerationInferenceParameter extends InferenceParameter { 25 | 26 | public List getPotentialValues(); 27 | } -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/FloatingPointInferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: FloatingPointInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// Internal Imports 11 | import org.opencyc.cycobject.*; 12 | 13 | //// External Imports 14 | 15 | /** 16 | *

InferenceParameter is designed to... 17 | * 18 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 19 | *
This software is the proprietary information of Cycorp, Inc. 20 | *

Use is subject to license terms. 21 | * 22 | * @author tbrussea 23 | * @date August 2, 2005, 10:25 AM 24 | * @version $Id: FloatingPointInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 25 | */ 26 | public interface FloatingPointInferenceParameter extends InferenceParameter { 27 | double getMinValue(); 28 | double getMaxValue(); 29 | } 30 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceAnswerIdentifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * An identifier for an individual answer within a specific Cyc inference. 3 | */ 4 | package org.opencyc.inference; 5 | 6 | import org.opencyc.cycobject.CycList; 7 | 8 | /** 9 | * 10 | * @author baxter 11 | */ 12 | public class InferenceAnswerIdentifier { 13 | 14 | public InferenceAnswerIdentifier(InferenceIdentifier inferenceID, int answerID) { 15 | this.inferenceID = inferenceID; 16 | this.answerID = answerID; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "Answer " + answerID + " for " + inferenceID; 22 | } 23 | 24 | public String stringApiValue() { 25 | return cycListApiValue().stringApiValue(); 26 | } 27 | 28 | public CycList cycListApiValue() { 29 | return CycList.makeCycList(inferenceID.getProblemStoreID(), inferenceID.getInferenceID(), answerID); 30 | } 31 | 32 | public int getAnswerID() { 33 | return answerID; 34 | } 35 | 36 | public InferenceIdentifier getInferenceID() { 37 | return inferenceID; 38 | } 39 | 40 | public static boolean possiblyInferenceAnswerSignature(Object obj) { 41 | if (obj instanceof CycList) { 42 | final CycList cycList = (CycList) obj; 43 | if (cycList.size() == 3) { 44 | try { 45 | return (Integer.valueOf(cycList.get(0).toString()) >= 0 46 | && Integer.valueOf(cycList.get(1).toString()) >= 0 47 | && Integer.valueOf(cycList.get(2).toString()) >= 0); 48 | } catch (NumberFormatException e) { 49 | return false; 50 | } 51 | } 52 | } 53 | return false; 54 | } 55 | private InferenceIdentifier inferenceID; 56 | private int answerID; 57 | } 58 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: InferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | package org.opencyc.inference; 8 | 9 | //// Internal Imports 10 | import org.opencyc.cycobject.CycFort; 11 | import org.opencyc.cycobject.CycSymbol; 12 | 13 | 14 | //// External Imports 15 | /** 16 | *

InferenceParameter is designed to... 17 | * 18 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 19 | *
This software is the proprietary information of Cycorp, Inc. 20 | *

Use is subject to license terms. 21 | * 22 | * @author tbrussea 23 | * @date August 2, 2005, 10:25 AM 24 | * @version $Id: InferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 25 | */ 26 | public interface InferenceParameter { 27 | 28 | /* @return the CycList API value for val qua value for this parameter. */ 29 | Object parameterValueCycListApiValue(Object val); 30 | 31 | Object canonicalizeValue(Object value); 32 | 33 | CycFort getId(); 34 | 35 | CycSymbol getKeyword(); 36 | 37 | String getShortDescription(); 38 | 39 | String getLongDescription(); 40 | 41 | String getPrettyRepresentation(Object value); 42 | 43 | InferenceParameterValueDescription getAlternateValue(); 44 | 45 | boolean isAlternateValue(Object value); 46 | 47 | boolean isValidValue(Object potentialValue); 48 | 49 | boolean isBasicParameter(); 50 | 51 | boolean isQueryStaticParameter(); 52 | 53 | Object getDefaultValue(); 54 | } 55 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceParameterDescriptions.java: -------------------------------------------------------------------------------- 1 | /* $Id: InferenceParameterDescriptions.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// External Imports 11 | import java.util.Map; 12 | 13 | //// Internal Imports 14 | import org.opencyc.api.CycAccess; 15 | import org.opencyc.cycobject.CycSymbol; 16 | 17 | /** 18 | *

InferenceParameterDescriptions is designed to... 19 | * 20 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 21 | *
This software is the proprietary information of Cycorp, Inc. 22 | *

Use is subject to license terms. 23 | * 24 | * @author tbrussea 25 | * @date August 2, 2005, 10:21 AM 26 | * @version $Id: InferenceParameterDescriptions.java 138070 2012-01-10 19:46:08Z sbrown $ 27 | */ 28 | public interface InferenceParameterDescriptions extends Map { 29 | 30 | public String stringApiValue(); 31 | public CycAccess getCycAccess(); 32 | public InferenceParameters getDefaultInferenceParameters(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceParameterValueDescription.java: -------------------------------------------------------------------------------- 1 | /* $Id: InferenceParameterValueDescription.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// Internal Imports 11 | import org.opencyc.cycobject.*; 12 | 13 | //// External Imports 14 | 15 | /** 16 | *

InferenceParameterValueDescription is designed to... 17 | * 18 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 19 | *
This software is the proprietary information of Cycorp, Inc. 20 | *

Use is subject to license terms. 21 | * 22 | * @author zelal 23 | * @date August 14, 2005, 12:47 PM 24 | * @version $Id: InferenceParameterValueDescription.java 138070 2012-01-10 19:46:08Z sbrown $ 25 | */ 26 | public interface InferenceParameterValueDescription { 27 | 28 | public void setValue(Object infiniteValue); 29 | Object getValue(); 30 | String getShortDescription(); 31 | String getLongDescription(); 32 | } 33 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceWorkerListener.java: -------------------------------------------------------------------------------- 1 | /* $Id: InferenceWorkerListener.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | */ 3 | 4 | package org.opencyc.inference; 5 | 6 | //// EXTERNAL IMPORTS 7 | import java.util.EventListener; 8 | import java.util.List; 9 | 10 | /**

This interface is one that must be implemented by anyone 11 | * wishing to listen in on events generated by a InferenceWorker. 12 | * 13 | *

Copyright 2004 Cycorp, Inc., license is open source GNU LGPL. 14 | *

the license 15 | *

www.opencyc.org 16 | *

OpenCyc at SourceForge 17 | *

18 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 19 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 21 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 22 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 23 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 27 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 29 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | * 31 | * @see InferenceWorker 32 | * @author tbrussea, zelal 33 | * @version $Id: InferenceWorkerListener.java 138070 2012-01-10 19:46:08Z sbrown $ 34 | */ 35 | public interface InferenceWorkerListener extends EventListener { 36 | 37 | public void notifyInferenceCreated(InferenceWorker inferenceWorker); 38 | 39 | public void notifyInferenceStatusChanged(InferenceStatus oldStatus, InferenceStatus newStatus, 40 | InferenceWorkerSuspendReason suspendReason, InferenceWorker inferenceWorker); 41 | 42 | public void notifyInferenceAnswersAvailable(InferenceWorker inferenceWorker, List newAnswers); 43 | 44 | public void notifyInferenceTerminated(InferenceWorker inferenceWorker, Exception e); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/InferenceWorkerSynch.java: -------------------------------------------------------------------------------- 1 | /* $Id: InferenceWorkerSynch.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// Internal Imports 11 | import org.opencyc.api.*; 12 | import org.opencyc.util.*; 13 | import org.opencyc.cycobject.*; 14 | 15 | //// External Imports 16 | import java.util.*; 17 | import java.io.*; 18 | 19 | /** 20 | *

InferenceWorker is designed to... 21 | * 22 | *

Copyright 2005 Cycorp, Inc., license is open source GNU LGPL. 23 | *

the license 24 | *

www.opencyc.org 25 | *

OpenCyc at SourceForge 26 | *

27 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 28 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 29 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 30 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 31 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 32 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 33 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 37 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 38 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * @author tbrussea, zelal 41 | * @date July 27, 2005, 11:40 AM 42 | * @version $Id: InferenceWorkerSynch.java 138070 2012-01-10 19:46:08Z sbrown $ 43 | */ 44 | public interface InferenceWorkerSynch extends InferenceWorker { 45 | 46 | public List performSynchronousInference() 47 | throws IOException, TimeOutException, CycApiException; 48 | 49 | public InferenceResultSet executeQuery() 50 | throws IOException, TimeOutException, CycApiException; 51 | 52 | } 53 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/inference/IntegerInferenceParameter.java: -------------------------------------------------------------------------------- 1 | /* $Id: IntegerInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.inference; 9 | 10 | //// Internal Imports 11 | import org.opencyc.cycobject.*; 12 | 13 | //// External Imports 14 | 15 | /** 16 | *

InferenceParameter is designed to... 17 | * 18 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 19 | *
This software is the proprietary information of Cycorp, Inc. 20 | *

Use is subject to license terms. 21 | * 22 | * @author tbrussea 23 | * @date August 2, 2005, 10:25 AM 24 | * @version $Id: IntegerInferenceParameter.java 138070 2012-01-10 19:46:08Z sbrown $ 25 | */ 26 | public interface IntegerInferenceParameter extends InferenceParameter { 27 | long getMinValue(); 28 | long getMaxValue(); 29 | } 30 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/parser/UnsupportedVocabularyException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.parser; 2 | 3 | //// Internal Imports 4 | import org.opencyc.cycobject.CycConstant; 5 | 6 | //// External Imports 7 | 8 | /** 9 | *

Provides 10 | * 11 | * @version $Id: UnsupportedVocabularyException.java 138070 2012-01-10 19:46:08Z sbrown $ 12 | * @author Tony Brusseau 13 | * 14 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 15 | *

the license 16 | *

www.opencyc.org 17 | *

OpenCyc at SourceForge 18 | *

19 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 20 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 22 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 23 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 24 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 30 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | */ 32 | public class UnsupportedVocabularyException extends Exception { 33 | 34 | //// Constructors 35 | 36 | /** Creates a new instance of InvalidConstantName. */ 37 | public UnsupportedVocabularyException(CycConstant invalidConstant) { 38 | this.invalidConstant = invalidConstant; 39 | } 40 | 41 | //// Public Area 42 | 43 | public String getMessage() { 44 | return "The following vocabulary is not supported: '" + invalidConstant.cyclify() + "'."; 45 | } 46 | 47 | public CycConstant getInvalidVocabulary() { return invalidConstant; } 48 | 49 | //// Protected Area 50 | 51 | //// Private Area 52 | 53 | //// Internal Rep 54 | 55 | private CycConstant invalidConstant; 56 | 57 | //// Main 58 | 59 | } 60 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/soap/cyc-service-deploy.wsdd: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/CachedValue.java: -------------------------------------------------------------------------------- 1 | /* $Id: CachedValue.java 130515 2010-04-01 23:13:26Z tbrussea $ 2 | * 3 | * Copyright (c) 2008 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.util; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | *

CachedValue is designed to... 16 | * 17 | *

Copyright (c) 2008 Cycorp, Inc. All rights reserved. 18 | *
This software is the proprietary information of Cycorp, Inc. 19 | *

Use is subject to license terms. 20 | * 21 | * Created on : Apr 1, 2010, 3:32:56 PM 22 | * Author : tbrussea 23 | * @version $Id: CachedValue.java 130515 2010-04-01 23:13:26Z tbrussea $ 24 | */ 25 | public class CachedValue { 26 | 27 | CachedValue(V payload, long keepAliveTimeMsecs) { 28 | if (payload == null) { 29 | throw new IllegalArgumentException("Cannot accept null values."); 30 | } 31 | if (keepAliveTimeMsecs < 0) { 32 | throw new IllegalArgumentException("Invalid keepAliveTime" + keepAliveTimeMsecs); 33 | } 34 | this.payload = payload; 35 | this.timeEntered = System.currentTimeMillis(); 36 | this.keepAliveTimeMsecs = keepAliveTimeMsecs; 37 | } 38 | 39 | public V get() { 40 | return payload; 41 | } 42 | 43 | public long getEntryTime() { 44 | return timeEntered; 45 | } 46 | 47 | public boolean isExpired() { 48 | if (keepAliveTimeMsecs == 0) { 49 | return false; 50 | } 51 | return ((System.currentTimeMillis() - keepAliveTimeMsecs) >= timeEntered); 52 | } 53 | 54 | @Override 55 | public boolean equals(Object o) { 56 | if (o == null) { // fast fail 57 | return false; 58 | } 59 | if ((o == this) || (o == payload)) { // fast success 60 | return true; 61 | } 62 | if (!(o instanceof CachedValue)) { // cope with non-cached values 63 | return o.equals(payload); 64 | } 65 | return ((CachedValue) o).payload.equals(payload); // cope with cached values 66 | } 67 | 68 | @Override 69 | public String toString() { 70 | return "" + payload; 71 | } 72 | 73 | @Override 74 | public int hashCode() { 75 | return payload.hashCode(); 76 | } 77 | 78 | private long timeEntered; 79 | private long keepAliveTimeMsecs; 80 | private V payload; 81 | } 82 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/Cancelable.java: -------------------------------------------------------------------------------- 1 | /* $Id: Cancelable.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.util; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | *

Cancelable is designed to... 16 | * 17 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 18 | *
This software is the proprietary information of Cycorp, Inc. 19 | *

Use is subject to license terms. 20 | * 21 | * @author tbrussea, zelal 22 | * @date October 10, 2005, 4:03 PM 23 | * @version $Id: Cancelable.java 138070 2012-01-10 19:46:08Z sbrown $ 24 | */ 25 | public interface Cancelable { 26 | void cancelTask(); 27 | } 28 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/ConciseLoggingFormatter.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.util; 2 | 3 | //// Internal Imports 4 | 5 | 6 | //// External Imports 7 | import java.util.logging.LogRecord; 8 | import java.util.logging.Logger; 9 | import java.util.logging.SimpleFormatter; 10 | 11 | /** 12 | * Provides a concise formatter for java logging output.
13 | * 14 | * @version $Id: ConciseLoggingFormatter.java 138070 2012-01-10 19:46:08Z sbrown $ 15 | * @author Stephen L. Reed 16 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 17 | *

the license 18 | *

www.opencyc.org 19 | *

OpenCyc at SourceForge 20 | *

21 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 22 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 23 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 24 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 25 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 32 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | */ 34 | public class ConciseLoggingFormatter extends SimpleFormatter { 35 | 36 | //// Constructors 37 | 38 | /** Creates a new instance of ConciseLoggingFormatter */ 39 | public ConciseLoggingFormatter() { 40 | } 41 | 42 | //// Public Area 43 | 44 | /** 45 | * Formats the given log record. 46 | */ 47 | public String format (LogRecord logRecord) { 48 | StringBuffer stringBuffer = new StringBuffer(); 49 | if (logRecord == null) 50 | stringBuffer.append("null logRecord received by ConciseLoggingFormatter"); 51 | else if (logRecord.getMessage() == null) 52 | stringBuffer.append("null logRecord message received by ConciseLoggingFormatter"); 53 | else 54 | stringBuffer.append(logRecord.getMessage()); 55 | stringBuffer.append('\n'); 56 | return stringBuffer.toString(); 57 | } 58 | 59 | //// Protected Area 60 | 61 | //// Private Area 62 | 63 | //// Internal Rep 64 | 65 | //// Main 66 | 67 | } 68 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/CycWorkerEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycWorkerEvent.java 3 | * 4 | * Created on March 22, 2002, 9:33 AM 5 | */ 6 | package org.opencyc.util; 7 | 8 | import java.util.*; 9 | 10 | /** 11 | * This is an event object for CycWorker events. It is currently 12 | * an unmodified subclass of EventObject, but more functionality may 13 | * be added in the future. 14 | *

15 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 16 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 18 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 19 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 20 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 24 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 26 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * @author tbrussea 28 | * @see CycWorker 29 | * @see CycWorkerListener 30 | * @see SwingWorker 31 | * @version $Id: CycWorkerEvent.java 138070 2012-01-10 19:46:08Z sbrown $ 32 | */ 33 | public class CycWorkerEvent extends EventObject { 34 | 35 | /** 36 | * Creates a new instance of CycWorkerEvent. 37 | * @param source The CycWorker that is generating this event. 38 | **/ 39 | public CycWorkerEvent(Object source) { 40 | super(source); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/CycWorkerListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycWorkerListener.java 3 | * 4 | * Created on March 22, 2002, 9:25 AM 5 | */ 6 | package org.opencyc.util; 7 | 8 | import java.util.*; 9 | 10 | /** 11 | * This is an interface to be used by classes that wishes to listen 12 | * to a CycWorker's events. 13 | *

14 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 15 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 17 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 18 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 19 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 25 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | * @see CycWorker 27 | * @see CycWorkerEvent 28 | * @see SwingWorker 29 | * @author tbrussea 30 | * @version $Id: CycWorkerListener.java 138070 2012-01-10 19:46:08Z sbrown $ 31 | */ 32 | public interface CycWorkerListener extends EventListener { 33 | 34 | /** 35 | * Called when the CycWorker is started. 36 | * @param evt The CycWorkerEvent object. 37 | **/ 38 | void notifyWorkerStarted(CycWorkerEvent evt); 39 | 40 | /** 41 | * Called when the CycWorker is interrupted. 42 | * @param evt The CycWorkerEvent object. 43 | **/ 44 | void notifyWorkerInterrupted(CycWorkerEvent evt); 45 | 46 | /** 47 | * Called when the CycWorker is finished. 48 | * @param evt The CycWorkerEvent object. 49 | **/ 50 | void notifyWorkerFinished(CycWorkerEvent evt); 51 | } 52 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/DefaultCancelable.java: -------------------------------------------------------------------------------- 1 | /* $Id: DefaultCancelable.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.util; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | * The current implementation is a toy implementation that merely makes 16 | * it possible to write a unit test for CancelManager. 17 | *

DefaultCancelable is designed to... 18 | * 19 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 20 | *
This software is the proprietary information of Cycorp, Inc. 21 | *

Use is subject to license terms. 22 | * 23 | * @author zelal 24 | * @date October 14, 2005, 2:29 PM 25 | * @version $Id: DefaultCancelable.java 138070 2012-01-10 19:46:08Z sbrown $ 26 | */ 27 | public class DefaultCancelable implements Cancelable { 28 | 29 | //// Constructors 30 | 31 | /** Creates a new instance of DefaultCancelable. */ 32 | public DefaultCancelable(String name) { 33 | this.taskName = name; 34 | } 35 | 36 | //// Public Area 37 | 38 | public void cancelTask() { 39 | System.out.println("Task " + taskName + " canceled!"); 40 | } 41 | 42 | public String toString() { 43 | return taskName; 44 | } 45 | //// Protected Area 46 | 47 | //// Private Area 48 | 49 | //// Internal Rep 50 | String taskName; 51 | 52 | //// Main 53 | 54 | /** 55 | * @param args the command line arguments 56 | */ 57 | public static void main(String[] args) { 58 | } 59 | 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/Entry.java: -------------------------------------------------------------------------------- 1 | /* $Id: Entry.java 138070 2012-01-10 19:46:08Z sbrown $ 2 | * 3 | * Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.util; 9 | 10 | //// Internal Imports 11 | 12 | //// External Imports 13 | 14 | /** 15 | *

Entry is designed to... 16 | * 17 | *

Copyright (c) 2004 - 2006 Cycorp, Inc. All rights reserved. 18 | *
This software is the proprietary information of Cycorp, Inc. 19 | *

Use is subject to license terms. 20 | * 21 | * @author mreimers 22 | * @date August 11, 2004, 1:00 PM 23 | * @version $Id: Entry.java 138070 2012-01-10 19:46:08Z sbrown $ 24 | */ 25 | public interface Entry { 26 | 27 | public Object getKey(); 28 | public Object getValue(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/OpenCycTaskInterruptedException.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.util; 2 | 3 | /** 4 | * Implements an exception class for notification when a Cyc server 5 | * communication has timed out. When this is thrown, the outstanding 6 | * task on the Cyc server is arborted. 7 | * 8 | * @version $Id: OpenCycTaskInterruptedException.java 138070 2012-01-10 19:46:08Z sbrown $ 9 | * @author Eric E. Allen
10 | * 11 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 12 | *

the license 13 | *

www.opencyc.org 14 | *

OpenCyc at SourceForge 15 | *

16 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 17 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 19 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 20 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 27 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | public class OpenCycTaskInterruptedException extends RuntimeException { 30 | 31 | /** 32 | * Construct a TimeOutException object with the 33 | * specified throwable. 34 | * @param t the throwable that caused this exception 35 | */ 36 | public OpenCycTaskInterruptedException(InterruptedException ie) { 37 | super(ie); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/Pair.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.util; 2 | 3 | import java.util.StringTokenizer; 4 | 5 | /** 6 | * Implements an ordered pair, two associated Objects.

7 | * 8 | * @version $Id: Pair.java 138070 2012-01-10 19:46:08Z sbrown $ 9 | * @author Bjorn Aldag 10 | * 11 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 12 | *

the license 13 | *

www.opencyc.org 14 | *

OpenCyc at SourceForge 15 | *

16 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 17 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 19 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 20 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 27 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | public class Pair extends AbstractPair{ 30 | 31 | /** 32 | * Constructs a new Pair object. 33 | */ 34 | public Pair(){ 35 | } 36 | 37 | /** 38 | * Constructs a new Pair object given two components. 39 | * 40 | * @param component1 the first component of the Pair 41 | * @param component2 the second component of the Pair 42 | */ 43 | public Pair(Object component1, Object component2) {super(component1, component2);} 44 | 45 | /** 46 | * Returns a Pair representation of a String. 47 | * 48 | * @param pairString the string to be parsed into a Pair object 49 | * @return a Pair representation of a String. 50 | * @throws DataFormatException when the given string is not parsable to a 51 | * Pair 52 | */ 53 | public static Pair parsePair(String pairString) { 54 | StringTokenizer components = new StringTokenizer(pairString, separators); 55 | return new Pair(components.nextToken(), components.nextToken()); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/ParseException.java: -------------------------------------------------------------------------------- 1 | /* $Id: ParseException.java 131027 2010-05-25 00:30:23Z nwinant $ 2 | * 3 | * Copyright (c) 2010 Cycorp, Inc. All rights reserved. 4 | * This software is the proprietary information of Cycorp, Inc. 5 | * Use is subject to license terms. 6 | */ 7 | 8 | package org.opencyc.util; 9 | 10 | /** 11 | *

ParseException is designed to... 12 | * 13 | *

Copyright (c) 2010 Cycorp, Inc. All rights reserved. 14 | *
This software is the proprietary information of Cycorp, Inc. 15 | *

Use is subject to license terms. 16 | * 17 | * Created on : May 24, 2010, 10:37:18 AM 18 | * Author : nwinant 19 | * @version $Id: ParseException.java 131027 2010-05-25 00:30:23Z nwinant $ 20 | */ 21 | public class ParseException extends Exception { 22 | 23 | /** Creates a new instance of ParseException. */ 24 | public ParseException(final String message) { 25 | super(message); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/Span.java: -------------------------------------------------------------------------------- 1 | /* 2 | * A representation of a start/end pair of ints. 3 | */ 4 | package org.opencyc.util; 5 | 6 | /** 7 | * 8 | * @author baxter 9 | */ 10 | public class Span extends AbstractPair { 11 | 12 | public Span(Object component1, Object component2) { 13 | throw new IllegalArgumentException("Span components must be ints."); 14 | } 15 | 16 | public Span(int start, int end) { 17 | super(start, end); 18 | } 19 | 20 | public int getStart() { 21 | return (Integer) component1; 22 | } 23 | 24 | public int getEnd() { 25 | return (Integer) component2; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/StackWithPointer.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.util; 2 | 3 | import java.util.Stack; 4 | 5 | /** 6 | * Extends the Stack class to provide a stack pointer. 7 | * 8 | * @version $0.1$ 9 | * @author Stephen L. Reed 10 | * 11 | *

Copyright 2001 Cycorp, Inc., license is open source GNU LGPL. 12 | *

the license 13 | *

www.opencyc.org 14 | *

OpenCyc at SourceForge 15 | *

16 | * THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND 17 | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 19 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC 20 | * ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE 27 | * BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | public class StackWithPointer extends Stack { 30 | 31 | /** 32 | * Stack pointer. 33 | */ 34 | public int sp = 0; 35 | 36 | /** 37 | * Constructs a new empty StackWithPointer object. 38 | */ 39 | public StackWithPointer() { 40 | } 41 | 42 | /** 43 | * Pushes the argument onto the stack. 44 | * 45 | * @param item object to be pushed onto the Stack 46 | * @return Object that was pushed onto the Stack 47 | */ 48 | public Object push ( Object item ) { 49 | sp++; 50 | return super.push(item); 51 | } 52 | 53 | /** 54 | * Returns the top of the stack, setting the new top of stack item. 55 | * 56 | * @return Object that was on the top of the Stack 57 | */ 58 | public Object pop() { 59 | --sp; 60 | return super.pop(); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/TestClass.java: -------------------------------------------------------------------------------- 1 | package org.opencyc.util; 2 | 3 | public class TestClass { 4 | static void hello() { 5 | System.out.println("hello world"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/package.html: -------------------------------------------------------------------------------- 1 | 2 | Provides a set of utility classes to support the OpenCyc Interface. 3 | 4 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/CycQuery.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycQuery.java 3 | * 4 | * Created on August 11, 2004, 10:48 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import org.opencyc.inference.InferenceStatus; 10 | /** 11 | * @version $Id: CycQuery.java 138070 2012-01-10 19:46:08Z sbrown $ 12 | * @author mreimers 13 | */ 14 | public interface CycQuery extends Query { 15 | 16 | public InferenceStatus getInferenceStatus(); 17 | } 18 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/CycQueryEffortConstraint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycQueryEffortConstraint.java 3 | * 4 | * Created on August 11, 2004, 10:46 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: CycQueryEffortConstraint.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface CycQueryEffortConstraint extends EffortConstraint { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/CycQuerySpecification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycQuerySpecification.java 3 | * 4 | * Created on August 11, 2004, 10:49 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import org.opencyc.cycobject.CycList; 10 | 11 | /** 12 | * @version $Id: CycQuerySpecification.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author mreimers 14 | */ 15 | public interface CycQuerySpecification extends QuerySpecification { 16 | 17 | public CycList getQueryFormula(); 18 | } 19 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/CycQueryStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * CycQueryStatus.java 3 | * 4 | * Created on August 11, 2004, 10:49 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: CycQueryStatus.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public class CycQueryStatus extends QueryStatus { 14 | 15 | public CycQueryStatus(String status) { 16 | super(status); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/DefaultQueryResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * A default implementation of QueryResult 3 | */ 4 | package org.opencyc.util.query; 5 | 6 | //// External Imports 7 | import java.util.ArrayList; 8 | import java.util.Collections; 9 | import java.util.List; 10 | 11 | //// Internal Imports 12 | import org.opencyc.cycobject.CycVariable; 13 | import org.opencyc.inference.InferenceAnswerIdentifier; 14 | 15 | /** 16 | * 17 | * @author baxter 18 | */ 19 | public class DefaultQueryResult implements QueryResult { 20 | 21 | public DefaultQueryResult(final List bindings, final InferenceAnswerIdentifier inferenceAnswerIdentifier) { 22 | this.answerID = (inferenceAnswerIdentifier == null) ? null : inferenceAnswerIdentifier.getAnswerID(); 23 | if (bindings != null) { 24 | this.bindings.addAll(bindings); 25 | } 26 | } 27 | 28 | protected DefaultQueryResult() { 29 | this(null, null); 30 | } 31 | 32 | public List getBindings() { 33 | return Collections.unmodifiableList(bindings); 34 | } 35 | 36 | public Integer getAnswerID() { 37 | return answerID; 38 | } 39 | 40 | public Object getBindingForVar(final CycVariable var) { 41 | for (final Binding binding : getBindings()) { 42 | if (binding.getVariable().equals(var)) { 43 | return binding.getValue(); 44 | } 45 | } 46 | return null; 47 | } 48 | 49 | public int compareTo(final QueryResult o) { 50 | if (o == null) { 51 | return -1; 52 | } else { 53 | return answerID.compareTo(o.getAnswerID()); 54 | } 55 | } 56 | 57 | public static class DefaultBinding implements Binding { 58 | 59 | private final Object term; 60 | private CycVariable variable; 61 | 62 | public DefaultBinding(final CycVariable variable, final Object term) { 63 | this.variable = variable; 64 | this.term = term; 65 | } 66 | 67 | @Override 68 | public String toString() { 69 | return variable + " -> " + term; 70 | } 71 | 72 | @Override 73 | public String getVariableName() { 74 | return variable.name; 75 | } 76 | 77 | @Override 78 | public CycVariable getVariable() { 79 | return variable; 80 | } 81 | 82 | @Override 83 | public Object getValue() { 84 | return term; 85 | } 86 | 87 | @Override 88 | public void setVariable(CycVariable variable) { 89 | this.variable = variable; 90 | } 91 | } 92 | private final List bindings = new ArrayList(); 93 | private final Integer answerID; 94 | } 95 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/EffortConstraint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * EffortConstraint.java 3 | * 4 | * Created on August 11, 2004, 8:29 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: EffortConstraint.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface EffortConstraint extends QueryConstraint { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/Justification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Justification.java 3 | * 4 | * Created on August 10, 2004, 2:06 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: Justification.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface Justification { 14 | public QueryResultSet getQueryResultSet(); 15 | public int getQueryResultSetIndex(); 16 | public String toPrettyString(); 17 | } 18 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/PresentationConstraint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * PresentationConstraint.java 3 | * 4 | * Created on August 11, 2004, 8:28 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: PresentationConstraint.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface PresentationConstraint extends QueryConstraint { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/Query.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Query.java 3 | * 4 | * Created on August 11, 2004, 10:21 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: Query.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface Query { 14 | 15 | public Object getId(); 16 | public QuerySpecification getOriginalQuerySpecification(); 17 | public QuerySpecification getQuerySpecification(); 18 | public void setQuerySpecification(QuerySpecification querySpecification); 19 | 20 | //public Query makeQuery(QuerySpecification querySpecification); 21 | 22 | /** 23 | * Revert this Query back to the original QuerySpecification. 24 | */ 25 | public void revertQuerySpecification(); 26 | 27 | public QueryStatus getQueryStatus(); 28 | public void setQueryStatus(QueryStatus queryStatus); 29 | 30 | public QueryResultSet getQueryResultSet(); 31 | public void setQueryResultSet(QueryResultSet resultSet); 32 | 33 | //public void notifyDataAvailable(); 34 | //public void notifySpecificationChanged(); 35 | //public void notifyStatusChanged(); 36 | 37 | public void startQuery(); 38 | public void stopQuery(); 39 | public void pauseQuery(); 40 | public void continueQuery(); 41 | 42 | public void addQueryListener(QueryListener listener); 43 | public void removeQueryListener(QueryListener listener); 44 | } 45 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryChangeEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * QueryChangeEvent.java 3 | * 4 | * Created on August 10, 2004, 2:56 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import java.util.EventObject; 10 | 11 | /** 12 | * @version $Id: QueryChangeEvent.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author mreimers 14 | */ 15 | public class QueryChangeEvent extends EventObject { 16 | private QueryEventReason reason; 17 | 18 | public static final QueryEventReason SPECIFICATION_CHANGED = 19 | new QueryChangeEvent.QueryEventReason("SPECIFICATION_CHANGED"); 20 | 21 | public static final QueryEventReason DATA_AVAILABLE = 22 | new QueryChangeEvent.QueryEventReason("DATA_AVAILABLE"); 23 | 24 | public static final QueryEventReason STATUS_CHANGED = 25 | new QueryChangeEvent.QueryEventReason("STATUS_CHANGED"); 26 | 27 | public QueryChangeEvent(Query source, QueryEventReason reason) { 28 | super(source); 29 | this.reason = reason; 30 | } 31 | 32 | public QueryEventReason getReason() { return this.reason; } 33 | public Query getQuery() { return (Query)getSource(); } 34 | 35 | public static class QueryEventReason /*extends com.cyc.common.util.Enumeration*/ { 36 | 37 | //// Constructors 38 | 39 | /** Creates a new instance of GKEChangeReason. 40 | * @param name the name of the reason...must be unique for this enumeration. 41 | */ 42 | public QueryEventReason(String name) { /*super(name);*/ } 43 | 44 | } 45 | //// Public Area 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryConstraint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * QueryConstraint.java 3 | * 4 | * Created on August 10, 2004, 2:05 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * Tagging interface for constraint interfaces. 11 | * @version $Id: QueryConstraint.java 138070 2012-01-10 19:46:08Z sbrown $ 12 | * @author mreimers 13 | */ 14 | public interface QueryConstraint { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * QueryListener.java 3 | * 4 | * Created on August 10, 2004, 2:06 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import java.util.EventListener; 10 | 11 | /** 12 | * @version $Id: QueryListener.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author mreimers 14 | */ 15 | public interface QueryListener extends EventListener { 16 | public void queryChanged(QueryChangeEvent e); 17 | } 18 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.opencyc.util.query; 6 | 7 | //// External Imports 8 | import java.util.List; 9 | 10 | //// Internal Imports 11 | import org.opencyc.cycobject.CycVariable; 12 | 13 | /** 14 | * 15 | * @author baxter 16 | */ 17 | public interface QueryResult extends Comparable { 18 | 19 | List getBindings(); 20 | 21 | Integer getAnswerID(); 22 | 23 | Object getBindingForVar(CycVariable var); 24 | 25 | public static interface Binding { 26 | 27 | String getVariableName(); 28 | 29 | CycVariable getVariable(); 30 | 31 | void setVariable(CycVariable variable); 32 | 33 | Object getValue(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryResultFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | */ 4 | package org.opencyc.util.query; 5 | 6 | //// External Imports 7 | import java.util.List; 8 | 9 | //// Internal Imports 10 | import org.opencyc.cycobject.CycList; 11 | import org.opencyc.cycobject.CycVariable; 12 | import org.opencyc.util.query.DefaultQueryResult.DefaultBinding; 13 | import org.opencyc.util.query.QueryResult.Binding; 14 | 15 | /** 16 | * 17 | * @author baxter 18 | */ 19 | public class QueryResultFactory { 20 | 21 | public static Binding parseBinding(final CycList rawBinding) { 22 | if (rawBinding.size() == 2) { 23 | final CycVariable variable = (CycVariable) rawBinding.get(0); 24 | final Object term = rawBinding.getDottedElement(); 25 | return new DefaultBinding(variable, term); 26 | } 27 | return null; 28 | } 29 | 30 | public static QueryResult constructResult(List bindings) { 31 | return new DefaultQueryResult(bindings, null); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryResultSet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * ResultSet.java 3 | * 4 | * Created on August 10, 2004, 2:04 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import java.util.Date; 10 | import java.util.Iterator; 11 | 12 | /** 13 | * @version $Id: QueryResultSet.java 138070 2012-01-10 19:46:08Z sbrown $ 14 | * @author mreimers 15 | */ 16 | public interface QueryResultSet { 17 | public Iterator getResultSetIterator(); 18 | public Query getQuery(); 19 | public Date getTimeStamp(); 20 | public void addQueryResult(QueryResult queryResult); 21 | public Justification getJustificationForIndex(int i); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QuerySpecification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Query.java 3 | * 4 | * Created on August 10, 2004, 2:04 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | import java.util.Set; 10 | 11 | /** 12 | * @version $Id: QuerySpecification.java 138070 2012-01-10 19:46:08Z sbrown $ 13 | * @author mreimers 14 | */ 15 | public interface QuerySpecification { 16 | 17 | public String getGloss(); 18 | 19 | public Object getQuestion(); 20 | 21 | public Set getConstraints(); 22 | public Set getFilteredConstraints(Class constraintType); 23 | 24 | public Object clone(); 25 | } 26 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/QueryStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * QueryStatus.java 3 | * 4 | * Created on August 10, 2004, 2:14 PM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: QueryStatus.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public class QueryStatus { 14 | private String text; 15 | 16 | protected QueryStatus(String s) { text = s; } 17 | 18 | public String toString() { 19 | return text; 20 | } 21 | public final static QueryStatus READY = new QueryStatus("Ready"); 22 | public final static QueryStatus WORKING = new QueryStatus("Working"); 23 | public final static QueryStatus PAUSED = new QueryStatus("Paused"); 24 | public final static QueryStatus FINISHED = new QueryStatus("Finished"); 25 | } 26 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/util/query/SourceConstraint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * SourceConstraint.java 3 | * 4 | * Created on August 11, 2004, 8:28 AM 5 | */ 6 | 7 | package org.opencyc.util.query; 8 | 9 | /** 10 | * @version $Id: SourceConstraint.java 138070 2012-01-10 19:46:08Z sbrown $ 11 | * @author mreimers 12 | */ 13 | public interface SourceConstraint extends QueryConstraint { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/xml/import-owl.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # import-owl.sh 4 | # 5 | # Shell script to run the java application which imports a given OWL ontology 6 | # 7 | # usage: $./import-owl.sh 8 | # for legacy API assertion mode: $./import-owl.sh 9 | # 10 | # written by Stephen Reed 2/11/2004 11 | # Modified work @ 2014 Andrew Smart 12 | # 13 | CLASSPATH=/cyc/java/lib/jakarta-oro-2.0.3.jar 14 | CLASSPATH=$CLASSPATH:/cyc/java/lib/commons-collections.jar 15 | CLASSPATH=$CLASSPATH:/cyc/java/lib/ViolinStrings.jar 16 | CLASSPATH=$CLASSPATH:/cyc/java/lib/icu4j.jar 17 | CLASSPATH=$CLASSPATH:/cyc/java/lib/jena.jar 18 | CLASSPATH=$CLASSPATH:/cyc/java/lib/jug.jar 19 | CLASSPATH=$CLASSPATH:/cyc/java/lib/UtilConcurrent.jar 20 | CLASSPATH=$CLASSPATH:/cyc/java/lib/xerces.jar 21 | CLASSPATH=$CLASSPATH:/home/reed/cvs/head/cycorp/cyc/java 22 | 23 | cd /home/reed/cvs/head/cycorp/cyc/java 24 | 25 | java -cp $CLASSPATH org.opencyc.xml.gui.ImportOwlApp $1 26 | 27 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/xml/vowlidator/cache/Readme.txt: -------------------------------------------------------------------------------- 1 | These are commonly used files that have been cached locally for 2 | efficiency and... 3 | 4 | some of these files are not written with up to date RDF, or contain 5 | references to files that no longer exist. Because the RDF parser 6 | being used is more recent than most of these files, I had to clean up 7 | these cache files to prevent errors. It is recommended that you do 8 | not remove or update these cache files (unless you know what you are 9 | doing), otherwise the validator may report addition problems caused 10 | by these files. 11 | 12 | -------------------------------------------------------------------------------- /api/java/openCycMaven/src/main/java/org/opencyc/xml/vowlidator/preferences.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /scripts/run-cyc.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem run-cyc.bat 3 | 4 | rem Shell script to execute the cyc server 5 | 6 | rem After some time loading the world into memory you will see CYC(1): 7 | rem which is the SubL command prompt. 8 | 9 | rem [optional] 10 | rem You can enter SubL expressions such as (+ 1 2) or (genls #$Person) 11 | rem or (all-genls #$Person) at the command line to verify Cyc's operation. 12 | 13 | rem At this point the cyc http server is running and you can access 14 | rem Cyc directly via the local web browser. 15 | rem http://localhost:3602/cgi-bin/cyccgi/cg?cb-start 16 | rem You can browse cyc via the Guest account or perform updates by 17 | rem logging on as CycAdminstrator. 18 | 19 | rem Modified work @ 2014 Andrew Smart 20 | 21 | rem move working directory to scripts/ if not already there 22 | cd %~dp0 23 | 24 | rem See if Ant is on PATH, if not then try to run cyc anyway: 25 | for %%X in (ant.bat) do (set FOUNDANT=%%~$PATH:X) 26 | rem call Ant to verify official binaries are installed; if not it will install them 27 | if defined FOUNDANT (ant -f ant-get-binaries.xml -quiet complete) else (echo "^!^!^!Ant not found on system^!^!^! Attempting to start OpenCyc anyway. If cyc fails to start, install Ant so that this script can retrieve official OpenCyc binaries.") 28 | 29 | cd ..\server\cyc\run 30 | 31 | rem for 64bit WinXP, Vista and Win7 32 | bin\run-cyc.bat 33 | -------------------------------------------------------------------------------- /scripts/run-cyc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # run-cyc.sh 4 | # 5 | # Shell script to execute the cyc server 6 | # 7 | # After some time loading the world into memory you will see CYC(1): 8 | # which is the SubL command prompt. 9 | # [optional] 10 | # You can enter SubL expressions such as (+ 1 2) or (genls #$Person) 11 | # or (all-genls #$Person) at the command line to verify Cyc's operation. 12 | # 13 | # At this point the cyc http server is running and you can access 14 | # Cyc directly via the local web browser. 15 | # http://localhost:3602/cgi-bin/cyccgi/cg?cb-start 16 | # You can browse cyc via the Guest account or perform updates by 17 | # logging on as CycAdminstrator. 18 | # 19 | # Modified work @ 2014 Andrew Smart 20 | scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 21 | cd "${scriptdir}" 22 | 23 | # See if Ant is installed on system, if not then try to run cyc anyway. 24 | if [ "$(command -v ant)" != "" ]; then 25 | # Gets the binary OpenCyc data from official source. 26 | # Gets binary libraries packaged with official OpenCyc distribution. 27 | ant -f ant-get-binaries.xml -quiet complete 28 | else 29 | echo '!!!Ant not found on system!!! Attempting to start OpenCyc anyway. If cyc fails to start, install Ant so that this script can retrieve official OpenCyc binaries.' 30 | fi 31 | 32 | cd ../server/cyc/run 33 | 34 | echo 'Launching CYC server at' $(date) ', type (halt-cyc-image) to quit...' 35 | bin/run-cyc.sh 36 | echo 'Cyc server has shut down at' $(date) 37 | exit 0 38 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-00.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-00.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8881 9 | PORT_OFFSET=00 10 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 11 | #Set INIT_FORM to "(progn)" in order to disable initializations 12 | #INIT_FORM="(progn)" 13 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 14 | (cinc *base-tcp-port* ${PORT_OFFSET}) \ 15 | (load \"init/port-init.lisp\"))" 16 | BASEDIR=`dirname $0` 17 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 18 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-20.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-20.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8882 9 | PORT_OFFSET=20 10 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 11 | #Set INIT_FORM to "(progn)" in order to disable initializations 12 | #INIT_FORM="(progn)" 13 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 14 | (cinc *base-tcp-port* ${PORT_OFFSET}) \ 15 | (load \"init/port-init.lisp\"))" 16 | BASEDIR=`dirname $0` 17 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 18 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-40.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-40.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8883 9 | PORT_OFFSET=40 10 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 11 | #Set INIT_FORM to "(progn)" in order to disable initializations 12 | #INIT_FORM="(progn)" 13 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 14 | (cinc *base-tcp-port* ${PORT_OFFSET}) \ 15 | (load \"init/port-init.lisp\"))" 16 | BASEDIR=`dirname $0` 17 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 18 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-60.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-60.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8884 9 | PORT_OFFSET=60 10 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 11 | #Set INIT_FORM to "(progn)" in order to disable initializations 12 | #INIT_FORM="(progn)" 13 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 14 | (cinc *base-tcp-port* ${PORT_OFFSET}) \ 15 | (load \"init/port-init.lisp\"))" 16 | BASEDIR=`dirname $0` 17 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 18 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-80.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-80.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8885 9 | PORT_OFFSET=80 10 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 11 | #Set INIT_FORM to "(progn)" in order to disable initializations 12 | #INIT_FORM="(progn)" 13 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 14 | (cinc *base-tcp-port* ${PORT_OFFSET}) \ 15 | (load \"init/port-init.lisp\"))" 16 | BASEDIR=`dirname $0` 17 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 18 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-no-init.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-no-init.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8887 9 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 10 | #Set INIT_FORM to "(progn)" in order to disable initializations 11 | INIT_FORM="(progn)" 12 | BASEDIR=`dirname $0` 13 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 14 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc-no-services.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc-no-services.sh 128878 2009-10-02 17:10:33Z tbrussea $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8886 9 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 10 | #Set INIT_FORM to "(progn)" in order to disable initializations 11 | #INIT_FORM="(progn)" 12 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\"))" 13 | BASEDIR=`dirname $0` 14 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 15 | -------------------------------------------------------------------------------- /server/cyc/run/bin/run-cyc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # 3 | # $Id: run-cyc.sh 137116 2011-11-23 16:37:15Z sbrown $ 4 | # Modified work @ 2014 Andrew Smart 5 | # Assumes that java 1.6 or higher is in your path 6 | 7 | #Set AGENT_LIB_PORT to 0 in order to disable remote debugging 8 | AGENT_LIB_PORT=8889 9 | MAIN_CLASS=com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLMain 10 | #Set INIT_FORM to "\"(progn)\"" in order to disable initializations 11 | #INIT_FORM="\"(progn)\"" 12 | INIT_FORM="(progn (load \"init/jrtl-release-init.lisp\") \ 13 | (load \"init/port-init.lisp\"))" 14 | BASEDIR=`dirname $0` 15 | $BASEDIR/cyc-runner.sh "${INIT_FORM}" "${AGENT_LIB_PORT}" "${MAIN_CLASS}" "$@" 16 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/css/fonts-min.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Yahoo! Inc. All rights reserved. 3 | Code licensed under the BSD License: 4 | http://developer.yahoo.net/yui/license.txt 5 | version: 2.5.1 6 | */ 7 | body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;} 8 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/css/sam-autocomplete.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Yahoo! Inc. All rights reserved. 3 | Code licensed under the BSD License: 4 | http://developer.yahoo.net/yui/license.txt 5 | version: 2.5.1 6 | */ 7 | .yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;} 8 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-all-assertions-tms-handler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Confirm Constant TMS Page Help 9 | 10 | 11 | 12 | 13 | 14 |

Confirm Constant TMS 16 | Page Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Performing TMS

23 | 24 |

Performing TMS (Truth-Maintenance) on an assertion essentially 25 | asks the system to reevaluate all of the arguments for that 26 | assertion. This is most useful when the assertion has a deduced 27 | source which depends on an HL (Heuristic Level) support which no 28 | longer holds. Thus, if an assertion looks like it has a stale HL 29 | support justifying it, performing TMS on it will make the stale 30 | argument go away.

31 | 32 |

Choosing to perform full TMS on a constant involves performing 33 | TMS on every assertion involving the constant. Since this is 34 | potentially very time consuming (depending on the number of 35 | assertions involving the constant), this confirmation page 36 | appears as a precaution whenever the "Force TMS" link is selected 37 | in the Constant Index.

38 | 39 |

The text in the middle of the confirmation page lists both the 40 | constant on which TMS is to be performed, as well as the number 41 | of assertions that will be affected if TMS is done. If this 42 | number is somewhat small (e.g., under several hundred), the time 43 | involved will be trivial; however, a larger number of assertions 44 | (e.g., several thousand) will require more time to complete.

45 | 46 |

Press the [Do it!] button to force TMS on every 47 | assertion involving the given constant.

48 | 49 |

Press the [No] button to abort the TMS operation and 50 | return to the Constant Index.

51 |
52 | Go to Top
54 | 55 | 56 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-auxiliary-indices.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Auxiliary Indices Help 9 | 10 | 11 | 12 | 13 | 14 |

Auxiliary Indices 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Auxiliary Indices

23 | 24 |

Most uses of the CYC® KB Browser involve using the 25 | standard Term Index for viewing assertions involving a displayed 26 | constant. However, in addition to this main index, there may be 27 | several other indices available for viewing assertions, depending 28 | on the version of CYC® being used. These indices, if 29 | available, are listed on the Auxiliary Indices page.

30 | 31 |

To select an auxiliary index, simply click on its name in the 32 | list. The Main Display Frame will appear as usual, but the 33 | indexing scheme/content will be different.

34 | 35 |

To return to the standard Term Index, simply choose a constant 36 | to display, either through the Toolbar or by clicking on the 37 | highlighted constant. If the constant cannot be displayed via the 38 | selected auxiliary index (most cannot), the standard Term Index 39 | will be used.

40 |
41 | Go to Top
43 | 44 | 45 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-change-direction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Change Assertion Direction Help 9 | 10 | 11 | 12 | 13 | 14 |

Change Assertion 16 | Direction Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

To change the assertion direction of the displayed assertion, 23 | select a new direction (Forward or Backward), then press the 24 | [Change Direction] button. The assertion itself is 25 | displayed in its EL form at the bottom of the page.

26 | 27 |

This will delete the assertion from the KB, and reassert it 28 | with the new direction. This is better than using the Assert 29 | Similar Formula facility, since it is usually undesirable to have 30 | the same formula asserted with two different directions at the 31 | same time.

32 | 33 |

There is a third direction, Code, for assertions for which 34 | special HL modules have been written to supplant the need for 35 | inference using the assertion itself. These assertions are left 36 | in the KB for pedagogical and documentation reasons, but are not 37 | actually used in inference (outside of the HL modules). Code 38 | assertions cannot be edited via the HTML interface, and the 39 | ability to make Code assertions is only possible in versions of 40 | CYC® with access to the SubL source code.

41 | 42 |

To restore the setting for assertion direction to its value 43 | before editing, press the [Current Value] button.

44 | 45 |

To abort the edit completely and return to the previous page, 46 | press the [Abort Edit] button.

47 | 48 |

For more information on assertions and assertion directions, 49 | see The Syntax of 50 | CycL.

51 |
52 | Go to Top
54 | 55 | 56 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-change-meta-assertion-mt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Change Meta-Assertion Mt Help 9 | 10 | 11 | 12 | 13 | 14 |

16Change Meta-Assertion Mt Help

E-Mail 17 | Comments to: doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 | 22 |

To change the #$Microtheory 24 | (Mt) that the displayed meta-assertions are asserted in, enter 25 | the new microtheory into the input window, then press the 26 | [Change Mt] button. The assertion governed by these 27 | meta-assertions is displayed, in its EL form, at the top of the 28 | page. The affected meta-assertions are displayed in their EL form 29 | at the bottom of the page, with checkboxes 30 | pre-selected.Un-checking any of the checkboxes will leave the Mt 31 | of the respective meta-assertions the same.

32 | 33 |

Changing the meta-assertion's Mt will delete the 34 | meta-assertion from the old microtheory and reassert it into the 35 | new one. To simply add another meta-assertion to a different 36 | microtheory, while still leaving the original meta-assertion 37 | intact the old Mt, go back to the Assertion Display Frame, click 38 | on "Assert Similar", and enter the original meta-assertion using 39 | a new Mt. For help with the Assert Similar Formula tool, see 40 | Assert Similar 41 | Formula Help.

42 | 43 |

To take advantage of constant completion, enter the first part 44 | of a microtheory name, then press the [Complete] 45 | button.

46 | 47 |

To clear the input field, press the [Clear] button.

48 | 49 |

To abort the edit completely and return to the previous page, 50 | press the [Abort Edit] button.

51 |
52 | a light-blue ballGo to Top
54 | 55 | 56 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-change-mt.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Change Assertion Mt Help 9 | 10 | 11 | 12 | 13 | 14 |

16Change Assertion Mt Help

E-Mail Comments 17 | to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

To change the #$Microtheory 24 | (Mt) that the displayed assertion is asserted in, enter the new 25 | microtheory into the input window, then press the [Change 26 | Mt] button. The assertion itself is displayed in its EL form 27 | at the bottom of the page.

28 | 29 |

This will delete the assertion from the old microtheory and 30 | reassert it into the new one. To simply add the assertion to the 31 | new microtheory, while still leaving it in the old Mt, go back to 32 | the Assertion Display Frame, click on "Assert Similar", and enter 33 | the original assertion using a new Mt. For help with the Assert 34 | Similar Formula tool, see Assert Similar Formula Help.

36 | 37 |

To take advantage of constant completion, enter the first part 38 | of a microtheory name, then press the [Complete] 39 | button.

40 | 41 |

To clear the input field, press the [Clear] button.

42 | 43 |

To restore the microtheory name in the input field to its 44 | value before editing, press the [Current Value] 45 | button.

46 | 47 |

To abort the edit completely and return to the previous page, 48 | press the [Abort Edit] button.

49 | 50 |

For more information on assertions and microtheories, see 51 | The Syntax of 52 | CycL.

53 |
54 | a light-blue ballGo to Top
56 | 57 | 58 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-change-strength.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Change Assertion Strength Help 9 | 10 | 11 | 12 | 13 | 14 |

16Change Assertion Strength Help

E-Mail 17 | Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

To change the assertion strength of the displayed assertion, 23 | select a new truth strength (Default or Monotonic), then press 24 | the [Change Strength] button. The assertion itself is 25 | displayed in its EL form at the bottom of the page.

26 | 27 |

This will delete the assertion from the KB, and reassert it 28 | with the new strength. This is better than using the Assert 29 | Similar Formula facility, since it is usually undesirable to have 30 | the same formula asserted with two different strengths at the 31 | same time.

32 | 33 |

Since changing the truth value of an assertion from TRUE to 34 | FALSE or vice-versa is effectively reversing the assertion, that 35 | kind of change is not allowed through this facility. Only the 36 | truth strength of the assertion can be changed here, not the 37 | complete truth value. To change the truth value (not strength), 38 | go back to the Assertion Display Frame, click on "Edit", and 39 | change the truth value. For help with the Edit Formula tool, see 40 | the Edit Assertion 41 | Help.

42 | 43 |

To restore the setting for assertion strength to its value 44 | before editing, press the [Current Value] button.

45 | 46 |

To abort the edit completely and return to the previous page, 47 | press the [Abort Edit] button.

48 | 49 |

For more information on assertions and assertion strengths, 50 | see The Syntax of 51 | CycL.

52 |
53 | a light-blue ballGo to Top
55 | 56 | 57 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-choose-project.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Choose KE Project Help 9 | 10 | 11 | 12 | 13 | 14 |

Choose KE Project 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

KE Projects

23 | 24 |

Knowledge entry work at Cycorp is often done under a 25 | particular entry mode, or project, to help detemine where certain 26 | knowledge falls within the CYC® ontology. However, these 27 | projects are for Cycorp internal uses only, and releases of the 28 | CYC® System may or may not use one or more Cyc-Based Project 29 | as a guideline for determining the content of the release, but 30 | finished releases will very likely diverge from this guideline, 31 | in the manner of additions, subtractions, refinements, and 32 | more.

33 | 34 |

The project currently selected is listed after the "Current 35 | Project" link in the Login Area in the Toolbar frame at the top 36 | of the screen. The default value is "General Cyc KE", meaning 37 | that the knowledge entry done will not be attributed to any 38 | specific project. The projects available for choosing are listed 39 | on the Choose KE Project page, which can be reached by clicking 40 | on the "Current Project" link. Clicking on the name of any 41 | project in this list will take you the KB Browser display for 42 | that constant, where the #$comment will give an 44 | explanation of how and when it is to be used.

45 | 46 |

Choosing a New Project

47 | 48 |

To choose a new project, simply select the radio button to the 49 | left of the desired project. Then press the [Submit] 50 | button. All operations to the KB will now be marked with the new 51 | project, until another project is selected.

52 | 53 |

To return the radio buttons to their original settings, press 54 | the [Reset] button.

55 |
56 | Go to Top
58 | 59 | 60 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-clause-struc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Clause Struc Help 9 | 10 | 11 | 12 | 13 | 14 |

16Clause Struc Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

A clause struc is a knowledge base storage 23 | optimization for those cases where the same assertion 24 | sentence is asserted or concluded (through forward inference) 25 | in different micro-theories.

26 | 27 |

In those situations, the CYC KB will store the assertion 28 | sentence once, inside a clause struc(ture), and reference 29 | that clause struc from within the assertion objects.

30 | 31 |
32 | a light-blue ballGo to Top
34 | 35 | 36 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-conceptually-related-terms.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Conceptually Related Terms Help 9 | 10 | 11 | 12 | 13 | 14 |

16Conceptually Related Terms Help

E-Mail 17 | Comments to: doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-confirm-clear-local-and-restart.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Clear Local Queue and Restart Help 9 | 10 | 11 | 12 | 13 | 14 |

Clear Local Queue 16 | and Restart Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Since clearing the local queue will cause all operations in 23 | the queue to be discarded without being processed, and may result 24 | in loss of work, a confirmation is built into the system.

25 | 26 |

To keep the local queue intact and return to the previous 27 | page, press the [No] button.

28 | 29 |

To go ahead and delete the entire queue, press the [Yes, 30 | Clear Local Queue and Restart Agenda] button.

31 | 32 |

If you want to keep a record of the operations in the local 33 | queue (e.g., to try running them again at some later time), press 34 | the [No] button to return to the previous page. Then view 35 | the contents of the local queue and copy some or all of the 36 | operations to a text file.

37 | 38 |

Frequently, after clearing the local queue, the next step is 39 | to restart the agenda. If you select [Yes, Clear Local Queue 40 | and Restart Agenda], the agenda will be restarted once the 41 | local queue is gone.

42 |
43 | Go to Top
45 | 46 | 47 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-confirm-clear-local-queue.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Clear Local Queue Help 9 | 10 | 11 | 12 | 13 | 14 |

Clear Local Queue 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Since clearing the local queue will cause all operations in 23 | the queue to be discarded without being processed, and may result 24 | in loss of work, a confirmation is built into the system.

25 | 26 |

To keep the local queue intact and return to the previous 27 | page, press the [No] button.

28 | 29 |

To go ahead and delete the entire queue, press the [Yes, 30 | Clear Local Queue] button.

31 | 32 |

If you want to keep a record of the operations in the local 33 | queue (e.g., to try running them again at some later time), press 34 | the [No] button to return to the previous page. Then view 35 | the contents of the local queue and copy some or all of the 36 | operations to a text file.

37 |
38 | Go to Top
40 | 41 | 42 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-confirm-kill.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Confirm Constant Kill Help 9 | 10 | 11 | 12 | 13 | 14 |

Confirm Constant 16 | Kill Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Killing a Constant

23 | 24 |

Killing a constant removes it from the KB; any assertions 25 | which involve it are also removed. The number of assertions 26 | involving the constant will be listed along with the constant to 27 | be killed.

28 | 29 |

It is impossible to reverse a kill (short of creating a new 30 | constant by the same name and reasserting every assertion which 31 | involved the old constant), so it is very important to be sure 32 | that killing is what is desired.

33 | 34 |

To remove the constant from the KB and delete all assertions 35 | involving it, press the [Yes, Kill] button. The number of 36 | assertions that will be removed are listed just above the 37 | confirmation buttons.

38 | 39 |

To leave the constant intact and return to the previous frame, 40 | press the [No] button.

41 | 42 |

Recreating a Constant

43 | 44 |

Killing a constant removes it from the KB entirely. If a new 45 | constant is then created with the same name (i.e., the constant 46 | was killed to remove all of its assertions and allow the user to 47 | start over), it will be created with a new constant ID but the 48 | same name, which might be problematic.

49 | 50 |

A better approach is to use the Recreate Constant tool, which 51 | removes from the KB all of the assertions involving that 52 | constant, while leaving the constant itself intact. This is a 53 | much cleaner and safer way to start over.

54 | 55 |

To reach the Recreate Constant tool, click on the "Recreate" 56 | link.

57 |
58 | Go to Top
60 | 61 | 62 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-constant-review.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Constant Review Help 9 | 10 | 11 | 12 | 13 | 14 |

16Constant Review Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-copy-from-similar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Copy from Similar Help 9 | 10 | 11 | 12 | 13 | 14 |

16Copy from Similar Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-create.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Constant Creation Help 9 | 10 | 11 | 12 | 13 | 14 |

Constant Creation 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

This page allows the user to create a new CYC® 23 | constant.

24 | 25 |

Creating New Constants

To create a 26 | new constant in the KB, enter the name the new constant will have 27 | (minus the "#$"), then press the [Create Constant] button. 28 | If a constant already exists by that name, a message will appear 29 | to that effect. Once a new constant is created, don't forget to 30 | assert defining information about it, including an English 31 | #$comment. 32 | 33 |

To see if any existing constants have similar beginnings, 34 | enter the intial part of the name into the window and press the 35 | [Complete] button. Possible completions will be displayed 36 | in a separate completion window which will be reused for future 37 | completions. Completion is case sensitive, and requires that 38 | JavaScript is enabled in your browser.

39 | 40 |

To clear the window and start again, press the [Clear] 41 | button.

42 | 43 |

To abort out of the create constant option and return to the 44 | previous frame, press the [Cancel Create] button.

45 |
46 | Go to Top
48 | 49 | 50 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-dependents.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Dependents Help 9 | 10 | 11 | 12 | 13 | 14 |

Dependents 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Assertion Dependents

23 | 24 |

Certain assertions in CYC® are used to conclude new 25 | assertions. Those new assertions are the dependents of the 26 | original assertion, because they are dependent upon its existence 27 | for their own. If the original assertion is deleted, its 28 | dependents will also be deleted unless they can still be derived 29 | from another source.

30 | 31 |

Dependents are essentially the converse of arguments. That is, 32 | if assertion A is an argument for assertion B, then B is a 33 | dependent of A. For more information on arguments, see the 34 | Arguments Help.

35 | 36 |

Not all assertions in CYC® will have dependents, since 37 | many conclusions are not drawn until backchaining is applied 38 | during inference, and CYC® does not necessarily permanently 39 | store those conclusions.

40 | 41 |

This page lists the original assertion, followed by all of its 42 | immediate dependents. Each of the dependents is numbered, simply 43 | for reference by the user.

44 | 45 |

A single dependent would be listed as follows:

46 |
47 |   1 : Deduced #3565200 supporting :
48 |      [Dependent-Assertion-1]
49 | 
Clicking on "Deduced" shows in more detail the argument 50 | source for that deduced/dependent assertion. 51 |
52 | Go to Top
54 | 55 | 56 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-describe-nat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Describe NAT Help 9 | 10 | 11 | 12 | 13 | 14 |

16Describe NAT Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-diagnose-assertion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Assertion Diagnostics Help 9 | 10 | 11 | 12 | 13 | 14 |

Assertion 16 | Diagnostics Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

The Assertion Diagnostics tool provides the user with an 23 | internal, low-level diagnosis of the selected assertion.

24 | 25 |

When the Assertion Diagnostics tool is selected, CYC® runs 26 | a set of diagnostics on the selected assertion and returns the 27 | results.

28 | 29 |

The interface for this tool is still in development. A more 30 | detailed description of this tool will be available at a later 31 | time.

32 |
33 | Go to Top
35 | 36 | 37 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-elaborate-term.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Elaborate Term Help 9 | 10 | 11 | 12 | 13 | 14 |

16Elaborate Term Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-find-assertion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Find Assertion Help 9 | 10 | 11 | 12 | 13 | 14 |

16Find Assertion Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2005—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

This page allows the user to find an assertion in 23 | Cyc®.

24 | 25 |

To find an assertion, enter the assertion sentence into the 26 | "EL Sentence" box and press [Find Assertion]. If the 27 | sentence is asserted in an accessible microtheory, it (and the 28 | microtheory in which it is asserted) will be displayed.

29 |
30 | a light-blue ballGo to Top
32 | 33 | 34 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-history.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Browser History Help 9 | 10 | 11 | 12 | 13 | 14 |

Browser History 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

The Browser History provides a list of constants, NATs 23 | (non-atomic terms), assertions, and sentences that have been 24 | recently accessed by the current user in the current CYC® 25 | image.

26 | 27 |

Clicking on the "Clear History" link will remove all CycL 28 | terms that are currently in the KB Browser History, returning the 29 | Browser History to its initial state.

30 | 31 |

By default, formulas in the KB Browser History are displayed 32 | in HL format. To view them in EL format, click on the "EL 33 | Formulas" link. One can use this link to toggle back and forth 34 | between the HL and EL display modes.

35 | 36 |

The KB Browser History is divided into four sections:

37 | 38 | Clicking on the "Clear Constant History" link will remove 52 | all CycL constants that are currently in the KB Browser History, 53 | returning that part of the Browser History to its initial state 54 | (and similarly for "Clear NAT History," "Clear Assertion 55 | History," and "Clear Sentence History"). 56 |
57 | Go to Top
59 | 60 | 61 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-hl-support.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | HL Support Help 9 | 10 | 11 | 12 | 13 | 14 |

16HL Support Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-kct-test-set.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | KCT Test Set Help 9 | 10 | 11 | 12 | 13 | 14 |

16KCT Test Set Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-merge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Merge Help 9 | 10 | 11 | 12 | 13 | 14 |

16Merge Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-partition-load.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Load Partition Help 9 | 10 | 11 | 12 | 13 | 14 |

16Load Partition Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-partition-save.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Save Partition Help 9 | 10 | 11 | 12 | 13 | 14 |

16Save Partition Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-recreate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Recreate Constant Help 9 | 10 | 11 | 12 | 13 | 14 |

Recreate Constant 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Recreating a Constant

23 | 24 |

Recreating a constant removes from the KB all of the 25 | assertions involving that constant, while leaving the constant 26 | itself intact. It is designed for those times when you want to 27 | get rid of old information on a constant, and start over 28 | anew.

29 | 30 |

Recreating a constant is the recommended way of starting over 31 | on a constant. Killing the constant and then creating a new one 32 | by the same name could be problematic, and thus should be 33 | avoided. Kills should be reserved for when the constant itself 34 | should be removed from the KB, not just the assertions on it.

35 | 36 |

It is impossible to reverse a recreation (short of reasserting 37 | all of the assertions that involved it before the recreation), so 38 | it is very important to be sure that killing is what is 39 | desired.

40 | 41 |

To recreate the constant and delete from the KB all assertions 42 | involving it, press the [Yes, Recreate] button. The number 43 | of assertions that will be removed are listed just above the 44 | confirmation buttons.

45 | 46 |

To leave the constant and its assertions intact and return to 47 | the previous frame, press the [No] button.

48 |
49 | Go to Top
51 | 52 | 53 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-rename-variables.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Rename Variables Help 9 | 10 | 11 | 12 | 13 | 14 |

16Rename Variables Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-rename.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Rename Constant Help 9 | 10 | 11 | 12 | 13 | 14 |

Rename Constant 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Important: before renaming any CYC® constant, be sure 23 | to read the document Renaming 24 | and Killing Constants, and follow the procedures outlined 25 | there.

26 | 27 |

Renaming a Constant

28 | 29 |

To rename a constant in the KB, enter the new constant name 30 | into the input window, then press the [Rename] button.

31 | 32 |

This renames the constant in the KB, but leaves intact all 33 | assertions involving the constant. In this way, using the Rename 34 | Constant facility is far preferable to killing a constant and 35 | then re-creating it under a new name, which will cause all 36 | assertions involving it to be deleted and lost.

37 | 38 |

To take advantage of constant completion, enter the first part 39 | of a microtheory name, then press the [Complete] 40 | button.

41 | 42 |

To clear the input field and start over, press the 43 | [Clear] button.

44 | 45 |

To restore the constant name in the input field to its value 46 | before editing, press the [Current Name] button.

47 | 48 |

To abort the rename completely and return to the previous 49 | page, press the [Cancel Rename] button.

50 | 51 |

For information on naming strategies for CYC® constants, 52 | see The Syntax 53 | of CycL.

54 |
55 | Go to Top
57 | 58 | 59 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-sentence.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | CycL Sentence Tools Help 9 | 10 | 11 | 12 | 13 | 14 |

CycL Sentence Tools 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 2002—2009 Cycorp. 19 | All rights reserved.
20 |
21 | 22 |

Viewing a CycL Sentence

23 | 24 |

This page displays a CycL sentence. This sentence might or 25 | might not correspond with any assertion in the KB. It might be 26 | true, false, or unknown.

27 | 28 |

CycL Sentence Details

29 | 30 | 47 | 48 |

Operations on CycL Sentences

49 | 50 |

There are a number of different operations involving CycL 51 | sentences, many of which are similar to operations on assertions.

53 | 54 | For more information about CycL sentences, read the Syntax of CycL. 67 | 68 | 69 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-show-when-handler.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Show When Help 9 | 10 | 11 | 12 | 13 | 14 |

16Show When Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-show-when.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Display by Date Help 9 | 10 | 11 | 12 | 13 | 14 |

Display by Date 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

The Display by Date facility allows the user to find and 23 | display constants or assertions based on the date of their entry 24 | into the KB. Simply specify the kind of object to display 25 | (constant or assertion), starting and ending dates, and whether 26 | to limit the search to any particular cyclist (knowledge-entry 27 | person).

28 | 29 |

Constant vs. Assertion

30 | 31 |

To search for constants, click on the button to the left of 32 | "Constants"; to search for assertions, click on the button for 33 | "Assertions". It is not possible to search for both at the same 34 | time.

35 | 36 |

Dates to Search

37 | 38 |

You can limit the search by choosing start and ending dates. 39 | The search will return all constants or assertions created 40 | between (and including) those dates. Setting the start and ending 41 | dates to the same date will search over that date only. The 42 | default value for both start and ending dates is today's 43 | date.

44 | 45 |

Cyclist to Examine

46 | 47 |

If you want to search for constants or assertions created by a 48 | specific user, you can enter that user's CYC® constant (minus 49 | the "#$") in the input window. The default value is the CYC® 50 | constant of whatever user is logged into the current CYC® 51 | image. The search can be further restricted by setting the start 52 | and ending dates, described above.

53 | 54 |

After setting the search parameters, display the assertions by 55 | pressing the [Submit] button.

56 | 57 |

To reset the parameters to their default values, press the 58 | [Reset] button.

59 |
60 | Go to Top
62 | 63 | 64 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-source.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | (Deduced) Argument Source Help 9 | 10 | 11 | 12 | 13 | 14 |

(Deduced) Argument 16 | Source Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

This page provides a little more detail about the argument 23 | sources for a deduced assertion than the Arguments page.

24 | 25 |

The detailed description of an argument source contains three 26 | sections:

27 | 28 | 39 | 40 |

If an argument for a deduced assertion originated via a 41 | special HL-module, the name of that module (e.g. :ISA) will 42 | apppear in place of the standard colored ball in front of the 43 | argument.

44 |
45 | Go to Top
47 | 48 | 49 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-toe-template-results.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Template Results Help 9 | 10 | 11 | 12 | 13 | 14 |

Template Results 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 2002—2009 Cycorp. 19 | All rights reserved.
20 |
21 | 22 |

The user can add all of the selected operations to the agenda 23 | by pressing [Add Forms to Agenda]. An operation counts as 24 | "selected" if the box in its row under "OK?" is clicked. By 25 | default, all of the operations are selected.

26 | 27 |

See also Template-based OE Help.

28 |
29 | Go to Top
31 | 32 | 33 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-viewpoint.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Viewpoint Help 9 | 10 | 11 | 12 | 13 | 14 |

16Viewpoint Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-wff-check-formula.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Check Formula Well-formedness Help 9 | 10 | 11 | 12 | 13 | 14 |

16Check Formula Well-formedness Help

E-Mail 17 | Comments to: doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/cb-wff.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Formula Diagnosis Help 9 | 10 | 11 | 12 | 13 | 14 |

Formula Diagnosis 16 | Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1998—2009 Cycorp. 19 | All rights reserved.
20 |
21 | 22 |

Diagnosing a Formula

23 | 24 |

This tool examines a CycL formula for syntactic and semantic 25 | well-formedness, allowing the user to test for many common errors 26 | made when writing formulas before actually attempting to assert 27 | such a formula.

28 | 29 |

If no errors can be detected, the tool responds with "OK".

30 |
31 | Go to Top
33 | 34 | 35 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/implementation-constants.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Public Assertions Help 9 | 10 | 11 | 12 | 13 | 14 |

Identifying Terms 16 | that are Not Used for Common Sense

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

Certain constants are included in a Cyc Knowledge Base simply 23 | to support or enable one or more Cyc-based applications or 24 | capabilities. These constants are not used to represent common 25 | sense knowledge; nor are they used to represent knowledge shared 26 | by a significant subset of humans, such as specialized domain 27 | knowledge (e.g. the knowledge of experts in some field of study, 28 | such as nuclear physics). Any constant that meets this 29 | description should be made an instance either of 30 | #$ImplementationConstant or of one of its specializations. This 31 | will help Cyc to distinguish its common sense knowledge from its 32 | application-specific knowledge.

33 | 34 |

For example, suppose you create a Cyc-based application (an 35 | application which relies on the Cyc API) called MailManager, and 36 | you want the program to maintain within the Cyc KB a reified list 37 | of e-mail addresses, called #$MailManagerAddresses. To indicate 38 | the application-specific nature of MailManager constants, you 39 | could first create the new constant 40 | #$MailManagerApplicationConstant as an instance of 41 | #$ApplicationConstant. (#$ApplicationConstant is a specialization 42 | of #$ImplementationConstant.) Then, you could assert (#$isa 43 | #$MailManagerAddresses #$MailManagerApplicationConstant).

44 | 45 |

After asserting that TERM is an instance either of 46 | #$ImplementationConstant or of one of its specializations, the 47 | following sentence will appear just below the term's name in the 48 | Term Content frame of the KB Browser:

49 | 50 |

TERM is not used to 51 | represent common sense knowledge.

52 |
53 | Go to Top
55 | 56 | 57 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/ke-review.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Knowledge Entry Review Help 9 | 10 | 11 | 12 | 13 | 14 |

Knowledge Entry 16 | Review Help

E-Mail Comments to: doc@cyc.com
18 | Copyright© 1997—2009 Cycorp. All rights reserved.
20 |
21 | 22 |

This page allows you to set up appropritae filters for review 23 | of constants and assertions that have been created. It's meant to 24 | make reviewing KE easier!

25 | 26 |

By turning on tags and links, relevant unreviewed constants 27 | and/or assertions will get a little tag which links to a review 28 | page. These pages allow the reviewer to assert that they approve 29 | of the constant or assertion as well as to attach additional 30 | comments to the constant or assertion.

31 | 32 |

Filters for these specific adornments can also be used, 33 | including the start and end date, and the particular cyclists who 34 | must be the #$myCreator for the assertion and or constant.

35 | 36 |

To restore the settings to the state they held when entering 37 | this page, press the [ Current Values] button.

38 | 39 |

To abort the edit completely and return to the previous page, 40 | press the [Back] or [Cancel] buttons.

41 |
42 | Go to Top
44 | 45 | 46 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/help/st-similarity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Similarity Help 9 | 10 | 11 | 12 | 13 | 14 |

16Similarity Help

E-Mail Comments to: 17 | doc@cyc.com
18 | Copyright© 2009 Cycorp. 19 | All rights reserved.
20 |
21 |
22 | a light-blue ballGo to Top
24 | 25 | 26 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/caution-19x19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/caution-19x19.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha-browser-disabled.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha-browser-disabled.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha-browser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha-browser.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/alpha.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/assert-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/assert-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/bl_menu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/bl_menu.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/bl_sdi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/bl_sdi.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/blue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/blue.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/celtic_bar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/celtic_bar.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/compose-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/compose-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/create-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/create-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/cy_menu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/cy_menu.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyan.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyan.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyanstar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyanstar.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyc-logo-3-t.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyc-logo-3-t.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyc-logo-violet-60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/cyc-logo-violet-60.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/dim-red-x-close-15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/dim-red-x-close-15.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/doc-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/doc-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/facet-browser-disabled.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/facet-browser-disabled.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/facet-browser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/facet-browser.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/gr_sdi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/gr_sdi.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/gray.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/green.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/green.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/grnstar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/grnstar.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/help_btn_s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/help_btn_s.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/hierarchy-browser-disabled.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/hierarchy-browser-disabled.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/hierarchy-browser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/hierarchy-browser.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/history-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/history-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/index-browser-disabled.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/index-browser-disabled.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/index-browser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/index-browser.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/mini-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/mini-logo.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/nart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/nart.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/nat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/nat.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/nonwff.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/nonwff.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/opencyc-logo-60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/opencyc-logo-60.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/pink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/pink.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-green.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-green.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-purple.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-purple.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-yellow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/plus-yellow.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/purple.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/purple.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/query-tool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/query-tool.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/red-x-close-15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/red-x-close-15.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/red.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/red.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/red_diam.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/red_diam.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/star.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/star.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/white.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/white.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cb/yellow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cb/yellow.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-down-triangle-violet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-down-triangle-violet.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-left-triangle-violet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-left-triangle-violet.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-10-t.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-10-t.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-25-t.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-25-t.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-50-t.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-50-t.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-sm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-sm.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-tiny.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-tiny.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-violet-16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-violet-16.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-violet-60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-logo-violet-60.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-no-triangle-violet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-no-triangle-violet.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-right-triangle-violet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-right-triangle-violet.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/cyc-up-triangle-violet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/cyc-up-triangle-violet.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/genstring-gray-20x20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/genstring-gray-20x20.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/genstring-purple-20x20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/genstring-purple-20x20.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/graycaution-19x19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/graycaution-19x19.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/graystar-19x19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/graystar-19x19.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/redcaution-19x19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/redcaution-19x19.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/square-blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/square-blank.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/square-minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/square-minus.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/square-plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/square-plus.gif -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/img/yellowstar-19x19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndrewSmart/opencyc/823b6a556165e75b819c6983a444ef65b3aef199/server/cyc/run/httpd/htdocs/cycdoc/img/yellowstar-19x19.png -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/js/event-delegate-min.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2010, Yahoo! Inc. All rights reserved. 3 | Code licensed under the BSD License: 4 | http://developer.yahoo.com/yui/license.html 5 | version: 2.8.2r1 6 | */ 7 | (function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.2r1",build:"7"}); -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/js/lexical.js: -------------------------------------------------------------------------------- 1 | function setStrength(assertionId, strength, doc) { 2 | var callback = { 3 | success: handleSetStrength, 4 | failure: handleFailedSetStrength, 5 | argument: {doc: doc} 6 | }; 7 | var host = window.location.protocol + "//" + window.location.host; 8 | var requestURL = host + "/cgi-bin/ws/xml-set-lexical-mapping-strength?assert=" + assertionId + "&strength=" + strength; 9 | var request = YAHOO.util.Connect.asyncRequest("get", requestURL, callback); 10 | } 11 | 12 | function handleFailedSetStrength (o) { 13 | alert("Error while setting lexical mapping strength."); 14 | } 15 | 16 | function handleSetStrength(o) { 17 | var termId = o.argument.termId; 18 | var inputParent = o.argument.doc.location.reload(); 19 | } 20 | 21 | 22 | 23 | function setGenString(assertionId, action, doc) { 24 | var callback = { 25 | success: handleSetGenString, 26 | failure: handleFailedSetGenString, 27 | argument: {doc: doc} 28 | }; 29 | var host = window.location.protocol + "//" + window.location.host; 30 | var requestURL = host + "/cgi-bin/ws/xml-set-genstring-assertion?assert=" + assertionId + "&action=" + action; 31 | var request = YAHOO.util.Connect.asyncRequest("get", requestURL, callback); 32 | } 33 | 34 | function handleFailedSetGenString (o) { 35 | alert("Error while adding/removing genStringAssertion assertion."); 36 | } 37 | 38 | function handleSetGenString(o) { 39 | var inputParent = o.argument.doc.location.reload(); 40 | } 41 | 42 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/js/visibility.js: -------------------------------------------------------------------------------- 1 | 2 | if (document.layers) { 3 | origWidth = innerWidth; 4 | origHeight = innerHeight; 5 | } 6 | 7 | function reloadPage() { 8 | if (innerWidth != origWidth || innerHeight != origHeight) 9 | location.reload(); 10 | } 11 | 12 | if (document.layers) onresize = reloadPage; 13 | 14 | function setVisibility(objectID,state) { 15 | setIdProperty(objectID, "display", state); 16 | } 17 | 18 | function toggleVisibility(objectID) { 19 | 20 | var state = getIdProperty( objectID, "display"); 21 | if (state == 'none') 22 | setIdProperty(objectID, "display", 'block'); 23 | else if (state == 'block') 24 | setIdProperty( objectID, "display", 'none'); 25 | else 26 | setIdProperty( objectID, "display", 'block'); 27 | } 28 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/cycdoc/toc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | Redirecting to documentation page at OpenCyc.org . . . 10 | 11 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/javascript/cssjsmenudhtml.css: -------------------------------------------------------------------------------- 1 | /* 2 | use xb settings to make ul/li appear the 3 | same in mozilla, ie and opera 4 | */ 5 | 6 | ul.nde-menu-system, ul.nde-menu-system ul 7 | { 8 | display: block; 9 | margin: 0; 10 | padding: 0; 11 | background-color: aqua; 12 | } 13 | 14 | ul.nde-menu-system li 15 | { 16 | margin: 0; 17 | } 18 | 19 | /* 20 | top level items in ul are inline to display horizontally 21 | across page 22 | */ 23 | 24 | ul.nde-menu-system li 25 | { 26 | display: inline; 27 | list-style: none; 28 | position: relative; 29 | margin: 0; 30 | padding: 0; 31 | } 32 | 33 | /* 34 | nested lists inside of the top level items are initially 35 | not displayed 36 | */ 37 | ul.nde-menu-system li ul 38 | { 39 | display: block; 40 | position: absolute; 41 | left: 0; 42 | visibility: hidden; 43 | width: 9em; 44 | z-index: 1000; 45 | } 46 | 47 | /* 48 | fix up the submenu items 49 | voice-family lines screen correct CSS values from browsers that 50 | improperly lay out block-level boxes and have broken CSS parsers 51 | (IE5.5/Win) 52 | */ 53 | ul.nde-menu-system li ul li 54 | { 55 | margin: 0 0 0 -1.5em; 56 | padding: 0; 57 | display: block; 58 | width: 100%; 59 | voice-family: "\"}\""; voice-family: inherit; 60 | margin-left: 0; 61 | } 62 | 63 | ul.nde-menu-system li ul li a 64 | { 65 | display: block; 66 | margin: 0; 67 | padding: 0 0 0 5%; 68 | width: 100%; 69 | voice-family: "\"}\""; voice-family: inherit; 70 | width: 95%; 71 | } 72 | 73 | /* needed to keep IE from bubbling events 74 | from items that are not contained but only 75 | covered. */ 76 | ul.nde-menu-system 77 | { 78 | background-color: navy; 79 | } 80 | 81 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/javascript/cssjsmenuhover.css: -------------------------------------------------------------------------------- 1 | /* 2 | for css based versions extend the li 3 | below the menu so that the mouse will 4 | stay over the li and keep the hover active 5 | */ 6 | 7 | ul.nde-menu-system li.submenu:hover 8 | { 9 | padding-bottom: 30em; 10 | } 11 | 12 | ul.nde-menu-system li.submenu:hover ul 13 | { 14 | left: 0; 15 | visibility: visible; 16 | } 17 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/javascript/cssjsmenupreso.css: -------------------------------------------------------------------------------- 1 | ul.nde-menu-system * 2 | { 3 | font-size: 1em; 4 | } 5 | 6 | ul.nde-menu-system li 7 | { 8 | padding: 0.25em 0 0; 9 | margin: 0; 10 | font-size: 0.9166em; 11 | } 12 | 13 | ul.nde-menu-system li a 14 | { 15 | display: inline; 16 | text-decoration: none; 17 | margin: 0; 18 | } 19 | 20 | ul.nde-menu-system li a:hover 21 | { 22 | color: #FAA; 23 | } 24 | 25 | ul.nde-menu-system li a 26 | { 27 | border-right: 1px solid; 28 | padding: 0.4em 0.125em; 29 | } 30 | 31 | /* override excessive bottom padding which is included 32 | to deal with IE/Win problems with a selector it 33 | doesn't understand to hide the declaration */ 34 | 35 | html>body ul.nde-menu-system li a 36 | { 37 | padding-bottom: 0.3em; 38 | } 39 | 40 | ul.nde-menu-system li ul 41 | { 42 | left: 0; 43 | top: 1.8em !important; 44 | border-top: 1px solid; 45 | } 46 | 47 | ul.nde-menu-system li ul li 48 | { 49 | border-style: solid; 50 | border-width: 0 1px 1px; 51 | list-style: none; 52 | } 53 | 54 | ul.nde-menu-system li ul li a 55 | { 56 | padding: 3px 2.5%; 57 | border-width: 0; 58 | } 59 | 60 | ul.nde-menu-system li ul 61 | { 62 | background-color: aqua; 63 | border-color: white; 64 | } 65 | 66 | ul.nde-menu-system li ul li 67 | { 68 | background-color: #a0ddf0; 69 | border-color: rgb(66%,66%,66%); 70 | } 71 | 72 | ul.nde-menu-system li.submenu ul a 73 | { 74 | color: black !important; 75 | } 76 | -------------------------------------------------------------------------------- /server/cyc/run/httpd/htdocs/javascript/dhtml.js: -------------------------------------------------------------------------------- 1 | function elementContains(elmOuter, elmInner) 2 | { 3 | while (elmInner && elmInner != elmOuter) 4 | { 5 | elmInner = elmInner.parentNode; 6 | } 7 | if (elmInner == elmOuter) 8 | { 9 | return true; 10 | } 11 | return false; 12 | } 13 | 14 | function getPageXY(elm) 15 | { 16 | var point = { x: 0, y: 0 }; 17 | while (elm) 18 | { 19 | point.x += elm.offsetLeft; 20 | point.y += elm.offsetTop; 21 | elm = elm.offsetParent; 22 | } 23 | return point; 24 | } 25 | 26 | function setPageXY(elm, x, y) 27 | { 28 | var parentXY = {x: 0, y: 0 }; 29 | 30 | if (elm.offsetParent) 31 | { 32 | parentXY = getPageXY(elm.offsetParent); 33 | } 34 | 35 | elm.style.left = (x - parentXY.x) + 'px'; 36 | elm.style.top = (y - parentXY.y) + 'px'; 37 | } 38 | -------------------------------------------------------------------------------- /server/cyc/run/init/cyc-init.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Package: CYC; Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: cyc-init.lisp 132323 2010-09-28 16:49:56Z rck $") 6 | 7 | ;;; This file should be the first thing loaded when a cyc 8 | ;;; image is started. 9 | 10 | ;; System parameters 11 | (load-system-parameters) 12 | 13 | ;; CycL code initializations, includes KB-dependent initializations 14 | (system-code-initializations) 15 | 16 | ;; chain to local definitions 17 | (pwhen (probe-file "setup/my-cyc-init.lisp") 18 | (load "setup/my-cyc-init.lisp")) 19 | 20 | ;; this should be the very last step 21 | (csetq *init-file-loaded?* t) 22 | -------------------------------------------------------------------------------- /server/cyc/run/init/jrtl-init.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: jrtl-init.lisp 132325 2010-09-28 16:53:34Z rck $") 6 | 7 | (load-system-parameters) 8 | (system-code-initializations) 9 | 10 | (clet ((units-directory "units/5022/")) 11 | (pif (fboundp 'cyc-load-kb) 12 | (cyc-load-kb units-directory) 13 | (progn 14 | (load-kb units-directory) 15 | (system-code-initializations)))) 16 | -------------------------------------------------------------------------------- /server/cyc/run/init/jrtl-release-init.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: jrtl-release-init.lisp 129137 2009-11-05 03:40:25Z rck $") 6 | 7 | (pwhen-feature :Cyc-ResearchCyc 8 | (pwhen-feature :SL2Java 9 | (csetq *master-license-key* "0000-0000-0000-0000-0000"))) 10 | 11 | #+Ignore 12 | (cunwind-protect 13 | (format t "Starting Named Entity Recognizer.~%") 14 | (csetq *stanford-ner-host* "localhost") 15 | (csetq *stanford-ner-port* 6666) 16 | (run-external-process 17 | "java" 18 | `("-server" "-Xmx1024m" 19 | "-XX:MaxPermSize=512m" 20 | "-cp" "data/stanford-ner-cyc-2006-09-18/stanford-ner.jar" 21 | "edu.stanford.nlp.ie.NERServer" 22 | "-loadClassifier" "data/stanford-ner-cyc-2006-09-18/classifiers/ner-eng-ie.crf-7-muc-distsim.ser.gz" 23 | ,(to-string *stanford-ner-port*)) *NULL-INPUT* *NULL-OUTPUT* *ERROR-OUTPUT*) 24 | (sleep 20) 25 | (progn)) 26 | 27 | (load "init/jrtl-init.lisp") 28 | 29 | (load "init/release-specific-init.lisp") 30 | -------------------------------------------------------------------------------- /server/cyc/run/init/offset-services-init-00.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (csetq *gc-reports* nil) 6 | 7 | (cvs-id "$Id: offset-services-init-00.lisp 127057 2009-02-09 19:50:06Z rck $") 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | ;; determine the amount to offset services 12 | (progn 13 | (csetq *base-tcp-port* 3600) 14 | (format t "Will offset TCP services to port ~A~%" *base-tcp-port*)) 15 | 16 | (load "init/port-init.lisp") 17 | 18 | 19 | -------------------------------------------------------------------------------- /server/cyc/run/init/offset-services-init-20.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (csetq *gc-reports* nil) 6 | 7 | (cvs-id "$Id: offset-services-init-20.lisp 126640 2008-12-04 13:39:36Z builder $") 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | ;; determine the amount to offset services 12 | (progn 13 | (csetq *base-tcp-port* 3620) 14 | (format t "Will offset TCP services to port ~A~%" *base-tcp-port*)) 15 | 16 | (load "init/port-init.lisp") 17 | 18 | 19 | -------------------------------------------------------------------------------- /server/cyc/run/init/offset-services-init-40.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (csetq *gc-reports* nil) 6 | 7 | (cvs-id "$Id: offset-services-init-40.lisp 126640 2008-12-04 13:39:36Z builder $") 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | ;; determine the amount to offset services 12 | (progn 13 | (csetq *base-tcp-port* 3640) 14 | (format t "Will offset TCP services to port ~A~%" *base-tcp-port*)) 15 | 16 | (load "init/port-init.lisp") 17 | 18 | 19 | -------------------------------------------------------------------------------- /server/cyc/run/init/offset-services-init-60.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: offset-services-init-60.lisp 126640 2008-12-04 13:39:36Z builder $") 6 | 7 | (csetq *gc-reports* nil) 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | ;; determine the amount to offset services 12 | (progn 13 | (csetq *base-tcp-port* 3660) 14 | (format t "Will offset TCP services to port ~A~%" *base-tcp-port*)) 15 | 16 | (load "init/port-init.lisp") 17 | 18 | -------------------------------------------------------------------------------- /server/cyc/run/init/offset-services-init-80.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: offset-services-init-80.lisp 126640 2008-12-04 13:39:36Z builder $") 6 | 7 | (csetq *gc-reports* nil) 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | ;; determine the amount to offset services 12 | (progn 13 | (csetq *base-tcp-port* 3680) 14 | (format t "Will offset TCP services to port ~A~%" *base-tcp-port*)) 15 | 16 | (load "init/port-init.lisp") 17 | -------------------------------------------------------------------------------- /server/cyc/run/init/release-specific-init.lisp: -------------------------------------------------------------------------------- 1 | (in-package :cyc) 2 | 3 | (ke-assert-now '(#$languageHasRootLexicon #$EnglishLanguage #$GeneralEnglishMt) 4 | #$GeneralLexiconMt) 5 | (ke-assert-now '(#$languageCodeDigraph #$EnglishLanguage "en") 6 | #$CrossLinguisticLexicalMt) 7 | (ke-assert-now '(#$validatedLexicalPSCForLanguage 8 | #$EnglishLanguage #$AllEnglishValidatedLexicalMicrotheoryPSC) 9 | #$LanguageAndWritingSystemMt) 10 | 11 | (boolean (princ ";; At this point the cyc http server is running and you can access 12 | ;; Cyc directly via the local web browser. 13 | ;; http://localhost:3602/cgi-bin/cyccgi/cg?cb-start 14 | ;; You can browse cyc via the Guest account or perform updates by 15 | ;; logging on as CycAdminstrator. 16 | ")) 17 | 18 | -------------------------------------------------------------------------------- /server/cyc/run/init/services-init.lisp: -------------------------------------------------------------------------------- 1 | ;;; -*- Mode: LISP; Package: CYC; Syntax: ANSI-Common-Lisp -*- 2 | 3 | (in-package "CYC") 4 | 5 | (cvs-id "$Id: services-init.lisp 126640 2008-12-04 13:39:36Z builder $") 6 | 7 | (csetq *gc-reports* nil) 8 | 9 | (load "init/cyc-init.lisp") 10 | 11 | (load "init/port-init.lisp") 12 | --------------------------------------------------------------------------------