public interface ISadlServerPE extends ISadlServer
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllValuesFromRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String restrictionName)
Call this method to restrict the values of a object property on a class to instances from a particular class in the named model.
|
boolean |
addCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
Call this method to add a cardinality restriction to a property on a class in the named model.
|
boolean |
addClass(java.lang.String modelName,
java.lang.String className,
java.lang.String superClassName)
Call this method to create a new class in the specified named model
|
boolean |
addExistingModel(java.lang.String modelPublicUri,
java.lang.String modelAltUrl,
java.lang.String modelPrefix)
Call this method to create a new mapping to the specified existing model.
|
boolean |
addHasValueRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String valueInstanceName)
Call this method to add to restrict an object property on a class to a particular value in the named model.
|
boolean |
addImport(java.lang.String modelName,
java.lang.String importedModelUri)
Call this model to add an import to the named model.
|
boolean |
addInstance(java.lang.String modelName,
java.lang.String instName,
java.lang.String className)
Call this method to create a new instance of the specified class in the named model.
|
boolean |
addMaxCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
Call this method to add a max cardinality restriction to a property on a class in the named model.
|
boolean |
addMinCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
Call this method to add a min cardinality restriction to a property on a class in the named model.
|
boolean |
addObjectPropertyRangeClass(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String rangeClassName)
Call this method to add a class to the range of an object property in the named model.
|
boolean |
addOntProperty(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String superPropertyName)
Call this method to create a new ontology property, either ObjectProperty or DatatypeProperty, in the named model.
|
boolean |
addOntPropertyDomainClass(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String domainClassName)
Call this method to add a class to the domain of a property in the named model.
|
boolean |
addRule(java.lang.String modelName,
java.lang.String ruleAsString)
Call this method to add a rule to the specified model
|
boolean |
addSomeValuesFromRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String restrictionName)
Call this method to require that the values of a object property on a class include instances from a particular class in the named model.
|
boolean |
addTriple(java.lang.String modelName,
java.lang.String subject,
java.lang.String predicate,
java.lang.Object value)
Call this method to add the specified triple to the specified existing model.
|
com.ge.research.sadl.reasoner.ResultSet |
ask(java.lang.String modelName,
java.lang.String subjName,
java.lang.String propName,
java.lang.Object objValue)
This method retrieves the results of an RDF triple matching request as a list of matching statements.
|
java.lang.String |
createInstance(java.lang.String modelName,
java.lang.String name,
java.lang.String className)
This method creates a new Individual of the class identified in the specified named model.
|
boolean |
createServiceModel(java.lang.String kbid,
java.lang.String serviceName,
java.lang.String modelName,
java.lang.String owlFileName,
java.lang.String prefix)
Call this method to create a new named service with the specified new model name
and global prefix to be saved to the specified OWL file in the specified kbase.
|
boolean |
deleteModel(java.lang.String modelName)
Call this method to delete a model from the knowledge base.
|
boolean |
deleteTriple(java.lang.String modelName,
java.lang.String subject,
java.lang.String predicate,
java.lang.Object value)
Call this method to delete the specified triple from the specified existing model.
|
java.util.List<com.ge.research.sadl.reasoner.ModelError> |
getErrors()
Call this method to retrieve the errors that have been accumulated.
|
java.lang.String |
getUniqueInstanceUri(java.lang.String namespace,
java.lang.String baseLocalName)
Call this method to obtain a unique unused URI based on the namespace and baseLocalName provided.
|
java.lang.String |
getUniqueInstanceUri(java.lang.String modelName,
java.lang.String namespace,
java.lang.String baseLocalName)
Call this method to obtain a unique unused URI based on the namespace and baseLocalName provided.
|
java.lang.String |
getUniqueNamespaceUri(java.lang.String baseNamespace)
Call this method to obtain a unique unused namespace URI based on the base namespace provided.
|
boolean |
persistChangesToServiceModels()
Call this method to persist any changes that have been made to the
service model or to any of the models that it imports.
|
boolean |
persistInstanceModel(java.lang.String owlInstanceFileName,
java.lang.String globalPrefix)
Call this method to persist the instance data which has been added
during this session as model on the server.
|
boolean |
persistInstanceModel(java.lang.String modelName,
java.lang.String owlInstanceFileName,
java.lang.String globalPrefix)
Call this method to persist the instance data which has been added
during this session as model on the server with the specified model URI.
|
com.ge.research.sadl.reasoner.ResultSet |
query(java.lang.String modelName,
java.lang.String query)
This method retrieves the results of a kbase query as a List array, 1st element being a List of
the column headings and second being a List of rows, each of which is a List of values.
|
boolean |
setDatatypePropertyRange(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String xsdRange)
Call this method to set the range of a datatype property in the named model.
|
boolean |
updateRdfsLabel(java.lang.String uri,
java.lang.String label,
java.lang.String language)
Method to add or update the rdfs:label for the ontology Resource identified by uri and of the specified language
|
boolean |
updateRdfsLabel(java.lang.String modelName,
java.lang.String uri,
java.lang.String label,
java.lang.String language)
Method to add or update the rdfs:label for the ontology Resource identified by uri and of the specified language
|
addTriple, ask, atomicQuery, atomicQueryCsvData, clearCache, collectTimingInformation, construct, createInstance, deleteTriple, getClassName, getDerivations, getInstanceDataNamespace, getInstanceModelName, getKBaseIdentifier, getKbaseRoot, getModelName, getReasonerVersion, getServiceNameMap, getServiceVersion, getTimingInformation, loadCsvData, loadData, parameterizeQuery, prepareQuery, query, reset, selectServiceModel, selectServiceModel, selectServiceModel, selectServiceModel, sendCsvData, sendData, sendData, setInstanceDataNamespace, setKbaseRoot, setOwlFileOutputFormat, setQueryTimeout, setServiceNameMapboolean persistInstanceModel(java.lang.String owlInstanceFileName,
java.lang.String globalPrefix)
throws com.ge.research.sadl.reasoner.ConfigurationException,
SessionNotFoundException,
java.io.IOException
owlInstanceFileName - File name containing instance in OWL format. For absolute paths use "file:///"globalPrefix - Global prefix (must be unique in the knowledge base)com.ge.research.sadl.server.ConfigurationExceptionSessionNotFoundExceptionjava.io.IOExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionboolean persistInstanceModel(java.lang.String modelName,
java.lang.String owlInstanceFileName,
java.lang.String globalPrefix)
throws com.ge.research.sadl.reasoner.ConfigurationException,
SessionNotFoundException,
java.io.IOException
modelName - Model nameowlInstanceFileName - File name containing instance in OWL formatglobalPrefix - Global prefixcom.ge.research.sadl.server.ConfigurationExceptionSessionNotFoundExceptionjava.io.IOExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionboolean persistChangesToServiceModels()
throws SessionNotFoundException
SessionNotFoundExceptionjava.util.List<com.ge.research.sadl.reasoner.ModelError> getErrors()
throws SessionNotFoundException
SessionNotFoundExceptionboolean addTriple(java.lang.String modelName,
java.lang.String subject,
java.lang.String predicate,
java.lang.Object value)
throws com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.TripleNotFoundException,
com.ge.research.sadl.reasoner.ReasonerNotFoundException,
SessionNotFoundException
modelName - Model namesubject - Subjectpredicate - Predicatevalue - Object valuecom.ge.research.sadl.server.ConfigurationExceptioncom.ge.research.sadl.server.ReasonerNotFoundExceptioncom.ge.research.sadl.server.TripleNotFoundExceptionSessionNotFoundExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptioncom.ge.research.sadl.reasoner.TripleNotFoundExceptioncom.ge.research.sadl.reasoner.ReasonerNotFoundExceptionjava.lang.String createInstance(java.lang.String modelName,
java.lang.String name,
java.lang.String className)
throws com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.InvalidNameException,
SessionNotFoundException,
java.io.IOException
modelName - Model namename - -- the name of the new instance to be created or null to create a blank nodeclassName - -- the name of the OntClass to which the new Individual will belongcom.ge.research.sadl.reasoner.ConfigurationExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionSessionNotFoundExceptionjava.io.IOExceptionboolean deleteTriple(java.lang.String modelName,
java.lang.String subject,
java.lang.String predicate,
java.lang.Object value)
throws com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.TripleNotFoundException,
com.ge.research.sadl.reasoner.ReasonerNotFoundException,
SessionNotFoundException
modelName - Model namesubject - Subjectpredicate - Predicatevalue - Object valuecom.ge.research.sadl.server.ConfigurationExceptioncom.ge.research.sadl.server.ReasonerNotFoundExceptioncom.ge.research.sadl.server.TripleNotFoundExceptionSessionNotFoundExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptioncom.ge.research.sadl.reasoner.TripleNotFoundExceptioncom.ge.research.sadl.reasoner.ReasonerNotFoundExceptionboolean addClass(java.lang.String modelName,
java.lang.String className,
java.lang.String superClassName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class name or null if nonesuperClassName - Super class name or null if noneSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.lang.String getUniqueInstanceUri(java.lang.String namespace,
java.lang.String baseLocalName)
throws com.ge.research.sadl.reasoner.InvalidNameException,
SessionNotFoundException
namespace - -- namespace of the new URIbaseLocalName - -- local fragment base of the URISessionNotFoundExceptioncom.ge.research.sadl.server.InvalidNameExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.lang.String getUniqueInstanceUri(java.lang.String modelName,
java.lang.String namespace,
java.lang.String baseLocalName)
throws com.ge.research.sadl.reasoner.InvalidNameException,
SessionNotFoundException
modelName - Model namenamespace - -- namespace of the new URIbaseLocalName - -- local fragment base of the URISessionNotFoundExceptioncom.ge.research.sadl.server.InvalidNameExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.lang.String getUniqueNamespaceUri(java.lang.String baseNamespace)
throws com.ge.research.sadl.reasoner.InvalidNameException,
SessionNotFoundException,
java.net.MalformedURLException,
com.ge.research.sadl.reasoner.ConfigurationException
baseNamespace - -- base namespace of the new URISessionNotFoundExceptioncom.ge.research.sadl.server.InvalidNameExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionjava.net.MalformedURLExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addInstance(java.lang.String modelName,
java.lang.String instName,
java.lang.String className)
throws com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.InvalidNameException,
SessionNotFoundException
modelName - Model nameinstName - Instance nameclassName - Class name or null if nonecom.ge.research.sadl.server.ConfigurationExceptionSessionNotFoundExceptioncom.ge.research.sadl.server.InvalidNameExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addOntProperty(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String superPropertyName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model namepropertyName - Property namesuperPropertyName - Super property nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addMaxCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namecardValue - Cardinality valueSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addMinCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namecardValue - Cardinality valueSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addCardinalityRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
int cardValue)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namecardValue - Cardinality valueSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addHasValueRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String valueInstanceName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namevalueInstanceName - Value instance nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addSomeValuesFromRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String restrictionName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namerestrictionName - Restriction nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addAllValuesFromRestriction(java.lang.String modelName,
java.lang.String className,
java.lang.String propertyName,
java.lang.String restrictionName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model nameclassName - Class namepropertyName - Property namerestrictionName - Restriction nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean createServiceModel(java.lang.String kbid,
java.lang.String serviceName,
java.lang.String modelName,
java.lang.String owlFileName,
java.lang.String prefix)
throws SessionNotFoundException
kbid - Knowledge base identifierserviceName - Service namemodelName - Model nameowlFileName - OWL file nameprefix - global prefix nameSessionNotFoundExceptionboolean addExistingModel(java.lang.String modelPublicUri,
java.lang.String modelAltUrl,
java.lang.String modelPrefix)
throws com.ge.research.sadl.reasoner.InvalidNameException,
com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
java.net.URISyntaxException
modelPublicUri - modelAltUrl - modelPrefix - com.ge.research.sadl.reasoner.InvalidNameExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionjava.net.URISyntaxExceptionjava.io.IOExceptionboolean addImport(java.lang.String modelName,
java.lang.String importedModelUri)
throws com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
com.ge.research.sadl.reasoner.InvalidNameException,
java.net.URISyntaxException
modelName - importedModelUri - com.ge.research.sadl.reasoner.ConfigurationExceptionjava.net.URISyntaxExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.io.IOExceptionboolean addOntPropertyDomainClass(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String domainClassName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model namepropertyName - Property namedomainClassName - Domain class nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addObjectPropertyRangeClass(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String rangeClassName)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model namepropertyName - Property namerangeClassName - Range class nameSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean setDatatypePropertyRange(java.lang.String modelName,
java.lang.String propertyName,
java.lang.String xsdRange)
throws SessionNotFoundException,
com.ge.research.sadl.reasoner.InvalidNameException
modelName - Model namepropertyName - Property namexsdRange - XSD range fragment: string | boolean | decimal | int | long | float | double | duration | dateTime | time | date | gYearMonth | gYear | gMonthDay | gDay | gMonth | hexBinary | base64Binary | anyURI | dataSessionNotFoundExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionboolean addRule(java.lang.String modelName,
java.lang.String ruleAsString)
throws com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
SessionNotFoundException
modelName - Model nameruleAsString - Rulecom.ge.research.sadl.server.ConfigurationExceptionjava.io.IOExceptionSessionNotFoundExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionboolean deleteModel(java.lang.String modelName)
throws com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
SessionNotFoundException
modelName - -- the public URI identifying the model to be deletedjava.io.IOExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionSessionNotFoundExceptionboolean updateRdfsLabel(java.lang.String uri,
java.lang.String label,
java.lang.String language)
throws com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
com.ge.research.sadl.reasoner.InvalidNameException,
java.net.URISyntaxException
uri - -- uri identifying Resource for which the label is to be added or updatedlabel - -- the new labellanguage - -- the language to be updated; if null update any labelcom.ge.research.sadl.reasoner.ConfigurationExceptionjava.net.URISyntaxExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.io.IOExceptionboolean updateRdfsLabel(java.lang.String modelName,
java.lang.String uri,
java.lang.String label,
java.lang.String language)
throws com.ge.research.sadl.reasoner.ConfigurationException,
java.io.IOException,
com.ge.research.sadl.reasoner.InvalidNameException,
java.net.URISyntaxException
modelName - -- the public URI identifying the model to be editeduri - -- uri identifying Resource for which the label is to be added or updatedlabel - -- the new labellanguage - -- the language to be updated; if null update any labeljava.net.URISyntaxExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptionjava.io.IOExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptioncom.ge.research.sadl.reasoner.ResultSet ask(java.lang.String modelName,
java.lang.String subjName,
java.lang.String propName,
java.lang.Object objValue)
throws com.ge.research.sadl.reasoner.TripleNotFoundException,
com.ge.research.sadl.reasoner.ReasonerNotFoundException,
com.ge.research.sadl.reasoner.QueryCancelledException,
SessionNotFoundException,
java.io.IOException,
com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.InvalidNameException,
java.net.URISyntaxException
modelName - -- the public URI identifying the model to be editedsubjName - propName - objValue - com.ge.research.sadl.reasoner.QueryCancelledExceptioncom.ge.research.sadl.reasoner.TripleNotFoundExceptioncom.ge.research.sadl.reasoner.ReasonerNotFoundExceptionSessionNotFoundExceptionjava.net.URISyntaxExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionjava.io.IOExceptioncom.ge.research.sadl.reasoner.ResultSet query(java.lang.String modelName,
java.lang.String query)
throws com.ge.research.sadl.reasoner.QueryCancelledException,
com.ge.research.sadl.reasoner.QueryParseException,
com.ge.research.sadl.reasoner.ReasonerNotFoundException,
SessionNotFoundException,
java.io.IOException,
com.ge.research.sadl.reasoner.ConfigurationException,
com.ge.research.sadl.reasoner.InvalidNameException,
java.net.URISyntaxException
modelName - -- the public URI identifying the model to be editedquery - a query stringcom.ge.research.sadl.reasoner.QueryCancelledExceptioncom.ge.research.sadl.reasoner.QueryParseExceptioncom.ge.research.sadl.reasoner.ReasonerNotFoundExceptionSessionNotFoundExceptionjava.net.URISyntaxExceptioncom.ge.research.sadl.reasoner.InvalidNameExceptioncom.ge.research.sadl.reasoner.ConfigurationExceptionjava.io.IOException