Package | Description |
---|---|
com.ge.research.sadl.server | |
com.ge.research.sadl.server.client | |
com.ge.research.sadl.server.server |
Modifier and Type | Method and Description |
---|---|
boolean |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.addRule(java.lang.String modelName,
java.lang.String ruleAsString)
Call this method to add a rule to the specified model
|
boolean |
ISadlServerPE.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 |
ISadlServer.addTriple(java.lang.String subjName,
java.lang.String predName,
java.lang.Object objValue)
This method is called to add a triple to the instance data.
|
boolean |
ISadlServerPE.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 |
ISadlServer.ask(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.
|
com.ge.research.sadl.reasoner.ResultSet |
ISadlServerPE.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.
|
com.ge.research.sadl.reasoner.ResultSet[] |
ISadlServer.atomicQuery(java.lang.String serviceName,
javax.activation.DataSource dataSrc,
java.lang.String inputFormat,
java.lang.String[] query)
Method to provide instance data and then execute a set of queries in an atomic (stateless) manner, returning a ResultSet for each query.
|
com.ge.research.sadl.reasoner.ResultSet[] |
ISadlServer.atomicQueryCsvData(java.lang.String serviceName,
javax.activation.DataSource csvDataSrc,
boolean includesHeader,
java.lang.String csvTemplate,
java.lang.String[] query)
Method to provide CSV instance data and then execute a set of queries in an atomic (stateless) manner, returning a ResultSet for each query.
|
boolean |
ISadlServer.clearCache()
Method to clear the cache for the current kbase model.
|
void |
ISadlServer.collectTimingInformation(boolean bCollect)
Turn on/off collection of timing information
|
javax.activation.DataSource |
ISadlServer.construct(java.lang.String query)
Executes a construct query, which will return a subgraph of the knowledge base and instance data.
|
java.lang.String |
ISadlServer.createInstance(java.lang.String name,
java.lang.String className)
This method creates a new Individual of the class identified.
|
java.lang.String |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.deleteModel(java.lang.String modelName)
Call this method to delete a model from the knowledge base.
|
boolean |
ISadlServer.deleteTriple(java.lang.String subjName,
java.lang.String predName,
java.lang.Object objValue)
This method is called to delete a triple from the instance data.
|
boolean |
ISadlServerPE.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.lang.String[] |
ISadlServerMD.getAllowedRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the names of classes that are allowed in the range of the given property on the given class
|
java.lang.Object[] |
ISadlServerMD.getAllowedValuesOfDataPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the allowed values of the given property on the given class.
|
java.lang.String[] |
ISadlServerMD.getAllowedValuesOfObjectPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the names of instances that are allowed values of the given property on the given class
|
java.lang.String[] |
ISadlServerMD.getAllSubclassesOfTaxonomy(java.lang.String root)
This method returns all of the subclasses of the classification hierarchy starting at root
|
java.lang.String[] |
ISadlServerMD.getAncestorClassesOfTaxonomy(java.lang.String className)
This method returns all of the ancestor classes given a starting class,
"className", in a class hierarchy.
|
java.lang.String |
ISadlServer.getClassName()
This method returns the name of the class implementing the ISadlService interface.
|
java.lang.Object |
ISadlServerMD.getDefaultValueOfPropertyOnClass(java.lang.String cls,
java.lang.String prop)
This method returns the default value of the given property on the given class
|
javax.activation.DataSource |
ISadlServer.getDerivations()
Gets derivations of all inferred statements (if the reasoner supports derivations)
|
java.lang.String[] |
ISadlServerMD.getDirectSubclassesOfTaxonomy(java.lang.String root)
This method returns all of the direct subclasses (one level down) of root in a class hierarchy.
|
java.lang.String[] |
ISadlServerMD.getDirectSuperclassesOfTaxonomy(java.lang.String className)
This method returns all of the direct super classes (one level up) given
a starting class, "className", in a class hierarchy.
|
java.util.List<com.ge.research.sadl.reasoner.ModelError> |
ISadlServerPE.getErrors()
Call this method to retrieve the errors that have been accumulated.
|
java.lang.String[] |
ISadlServerMD.getInstancesOfClass(java.lang.String cls)
This method returns all the instances of the given class
|
java.lang.String[] |
ISadlServerMD.getLeafClassesOfTaxonomy(java.lang.String root)
This method returns all the leaf classes of the classification hierarchy starting at root
|
java.lang.String[] |
ISadlServerMD.getPropertyDomain(java.lang.String property)
This method returns the class(es) which are the domain of the property, if any.
|
java.lang.String[] |
ISadlServerMD.getPropertyRange(java.lang.String property)
This method returns the class(es) or XSD types which are the range of the property, if any.
|
java.lang.String |
ISadlServer.getReasonerVersion()
Gets the version of the reasoner.
|
java.lang.String[] |
ISadlServerMD.getRequiredRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the classes that must be represented in the range of the given property on the given class
|
java.lang.String |
ISadlServer.getServiceVersion()
This method returns the Source Code Control System (SCC) Version of the class implementing the ISadlService interface
|
com.ge.research.sadl.reasoner.ReasonerTiming[] |
ISadlServer.getTimingInformation()
Gets timing information for a given session, if the reasoner supports this capability.
|
java.lang.String |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.getUniqueNamespaceUri(java.lang.String baseNamespace)
Call this method to obtain a unique unused namespace URI based on the base namespace provided.
|
boolean |
ISadlServerMD.isDatatypeProperty(java.lang.String property)
This method returns true if and only if the property is an DatatypeProperty
|
boolean |
ISadlServerMD.isObjectProperty(java.lang.String property)
This method returns true if and only if the property is an ObjectProperty
|
boolean |
ISadlServer.loadCsvData(java.lang.String serverCsvDataLocator,
boolean includesHeader,
java.lang.String serverCsvTemplateLocator)
This method is called to cause abox data to be loaded by mapping from a CSV data file to semantic data using the mapping template specified
|
boolean |
ISadlServer.loadData(java.lang.String serverDataLocator)
This method is called to cause abox data to be loaded from the server environment.
|
java.lang.String |
ISadlServer.parameterizeQuery(java.lang.String queryStr,
java.util.List<java.lang.Object> values)
Method to substitute parameter values for "?" terms in a query string.
|
boolean |
ISadlServerPE.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 |
ISadlServerPE.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 |
ISadlServerPE.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.
|
java.lang.String |
ISadlServer.prepareQuery(java.lang.String query)
Method to expand prefixes, find namespaces, and do whatever
other processing may be necessary to prepare a query string
for execution by the target query engine.
|
com.ge.research.sadl.reasoner.ResultSet |
ISadlServer.query(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.
|
com.ge.research.sadl.reasoner.ResultSet |
ISadlServerPE.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 |
ISadlServer.reset()
This method is called to delete all instance data added by calls to addTriple or forms of loadInstanceData.
|
java.lang.String |
ISadlServer.selectServiceModel(java.lang.String serviceName)
This method is called to identify the model (tbox) to use by service name.
|
java.lang.String |
ISadlServer.selectServiceModel(java.lang.String knowledgeBaseIdentifier,
java.lang.String modelName)
This method is called to identify the knowledgeBaseIdentifier and model (tbox) to use in this knowledge service session.
|
boolean |
ISadlServer.sendCsvData(javax.activation.DataSource csvDataSrc,
boolean includesHeader,
java.lang.String csvTemplateIdentifier)
This method is called to send abox data in CSV format to be converted to semantic data using the identified mapping template.
|
boolean |
ISadlServer.sendData(javax.activation.DataSource dataSrc)
This method passes input data as a semantic model as a DataSource
|
boolean |
ISadlServer.sendData(javax.activation.DataSource dataSrc,
java.lang.String inputFormat)
This method passes input data as a semantic model as a DataSource with a specified format
|
boolean |
ISadlServerPE.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.
|
java.lang.String |
ISadlServer.setInstanceDataNamespace(java.lang.String namespace)
This method sets the default instance data namespace.
|
void |
ISadlServer.setOwlFileOutputFormat(java.lang.String outputFormat)
Sets the Owl file output format to be used for output, e.g., when responding to a SPARQL construct query.
|
void |
ISadlServer.setQueryTimeout(long timeout)
Method to set the timeout for queries.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
SadlServerMain.getAllowedRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the names of classes that are allowed in the range of the given property on the given class
|
java.lang.Object[] |
SadlServerMain.getAllowedValuesOfDataPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the allowed values of the given property on the given class.
|
java.lang.String[] |
SadlServerMain.getAllowedValuesOfObjectPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the names of instances that are allowed values of the given property on the given class
|
java.lang.String[][] |
SadlServerMain.getDataAsStringArray(java.lang.String query) |
java.lang.String[] |
SadlServerMain.getInstancesOfClass(java.lang.String cls)
This method returns all the instances of the given class
|
java.lang.String[] |
SadlServerMain.getLeafClassesOfTaxonomy(java.lang.String root)
This method returns all the leaf classes of the classification hierarchy starting at root
|
java.lang.String[] |
SadlServerMain.getPropertyDomain(java.lang.String property)
This method returns the class(es) which are the domain of the property, if any.
|
java.lang.String[] |
SadlServerMain.getPropertyRange(java.lang.String property)
This method returns the class(es) or XSD types which are the range of the property, if any.
|
java.lang.String[] |
SadlServerMain.getRequiredRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property)
This method returns all the classes that must be represented in the range of the given property on the given class
|
boolean |
SadlServerMain.isDatatypeProperty(java.lang.String property)
This method returns true if and only if the property is an DatatypeProperty
|
boolean |
SadlServerMain.isObjectProperty(java.lang.String property)
This method returns true if and only if the property is an ObjectProperty
|
java.lang.String |
SadlServerMain.process(java.lang.String[] args)
This method has the same meaning of args as for the main method but is not a static invocation and returns the session key.
|
Modifier and Type | Method and Description |
---|---|
com.ge.research.sadl.reasoner.ResultSet |
SadlServerPEImpl.ask(java.lang.String modelName,
java.lang.String subjName,
java.lang.String propName,
java.lang.Object objValue) |
com.ge.research.sadl.reasoner.ResultSet[] |
SadlServerImpl.atomicQuery(java.lang.String serviceName,
javax.activation.DataSource dataSrc,
java.lang.String inputFormat,
java.lang.String[] sparql) |
com.ge.research.sadl.reasoner.ResultSet[] |
SadlServerImpl.atomicQueryCsvData(java.lang.String serviceName,
javax.activation.DataSource csvDataSrc,
boolean includesHeader,
java.lang.String csvTemplate,
java.lang.String[] sparql) |
boolean |
SadlServerImpl.clearCache() |
java.lang.String[] |
SadlServerMDImpl.getAllowedRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property) |
java.lang.Object[] |
SadlServerMDImpl.getAllowedValuesOfDataPropertyOfClass(java.lang.String cls,
java.lang.String property) |
java.lang.String[] |
SadlServerMDImpl.getAllowedValuesOfObjectPropertyOfClass(java.lang.String cls,
java.lang.String property) |
java.lang.String[] |
SadlServerMDImpl.getAllSubclassesOfTaxonomy(java.lang.String root) |
java.lang.String[] |
SadlServerMDImpl.getAncestorClassesOfTaxonomy(java.lang.String className)
Return all of the ancestor class names given a starting class in a hierarchy
|
java.lang.String |
SadlServerImpl.getClassName() |
java.lang.Object |
SadlServerMDImpl.getDefaultValueOfPropertyOnClass(java.lang.String cls,
java.lang.String prop) |
java.lang.String[] |
SadlServerMDImpl.getDirectSubclassesOfTaxonomy(java.lang.String root) |
java.lang.String[] |
SadlServerMDImpl.getDirectSuperclassesOfTaxonomy(java.lang.String className)
Returns an array of class type names of all of the direct (one level up)
ancestors in a class hierarchy.
|
java.lang.String[] |
SadlServerMDImpl.getInstancesOfClass(java.lang.String cls) |
java.lang.String[] |
SadlServerMDImpl.getLeafClassesOfTaxonomy(java.lang.String root) |
java.lang.String[] |
SadlServerMDImpl.getPropertyDomain(java.lang.String property) |
java.lang.String[] |
SadlServerMDImpl.getPropertyRange(java.lang.String property) |
java.lang.String[] |
SadlServerMDImpl.getRequiredRangeClassesOfPropertyOfClass(java.lang.String cls,
java.lang.String property) |
java.lang.String |
SadlServerImpl.getServiceVersion() |
java.lang.String |
SadlServerPEImpl.getUniqueInstanceUri(java.lang.String namespace,
java.lang.String baseLocalName) |
java.lang.String |
SadlServerPEImpl.getUniqueInstanceUri(java.lang.String modelName,
java.lang.String namespace,
java.lang.String baseLocalName) |
java.lang.String |
SadlServerPEImpl.getUniqueNamespaceUri(java.lang.String baseUri) |
boolean |
SadlServerMDImpl.isDatatypeProperty(java.lang.String property) |
boolean |
SadlServerMDImpl.isObjectProperty(java.lang.String property) |
boolean |
SadlServerPEImpl.persistInstanceModel(java.lang.String owlInstanceFileName,
java.lang.String globalPrefix) |
com.ge.research.sadl.reasoner.ResultSet |
SadlServerPEImpl.query(java.lang.String modelName,
java.lang.String query) |
void |
SadlServerImpl.setQueryTimeout(long timeout) |
void |
TestSadlServerPEOnShapes.test0() |
void |
TestSadlServerMD_Mobius.testCreateAndDelete() |
void |
TestSadlServerPEOnShapes.testGetUniqueNS() |
void |
TestSadlServerDemo.testSadlServerClientSideScenario() |
void |
TestSadlServerDemo.testSadlServerClientSideScenarioWithPersistence() |
void |
TestSadlServerDemo.testSadlServerParameterizedQuery()
This method uses the hierarchical models
|
void |
TestSadlServerDemo.testSadlServerServerSideScenario() |
void |
TestSadlServerDemo.testServerVersionInfo() |
void |
TestSadlServerMD_Mobius.testWithJenaReasoner() |
Constructor and Description |
---|
SadlServerMDImpl(java.lang.String modelsFolder,
java.lang.String moduleName) |