|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceModel
Common interface for all SSWAP Models that have their own underlying Jena model.
Method Summary | |
---|---|
void |
addDependentModel(ModelImpl dependentModel)
Adds a dependent SSWAP Model to this source model (i.e., a SSWAP model that is created based on the information read from the Jena model) |
void |
addImport(java.net.URI uri)
Adds an import to the list of OWL imports of this model. |
boolean |
checkProfile(Expressivity expressivity)
Checks whether the model is in one of the expressivity profiles |
void |
dereference()
Attempts to populate the model with data by retrieving it from the URI of the model. |
void |
dereference(java.io.InputStream is)
Attempts to populate the model with data by retrieving it from the given stream. |
void |
dereference(com.hp.hpl.jena.rdf.model.Model model)
Attempts to populate the model with data retrieved from the given Jena model. |
int |
doClosure()
For every URI in the model, do an HTTP GET and read in the model. |
com.hp.hpl.jena.rdf.model.Model |
getClosedWorldModel()
Gets the model that is used to close the worlds for specific parts of this model (but the statements from the closed world model should not "pollute" the main model). |
com.hp.hpl.jena.rdf.model.Model |
getClosureModel()
Gets the Jena model containing the closure. |
SSWAPModel |
getDependentModel(java.net.URI uri)
Returns the dependent model, identified by its URI, for this source model |
java.util.Collection<SSWAPModel> |
getDependentModels(java.net.URI uri)
Returns all dependent models with the specified uri |
javax.persistence.EntityManager |
getEntityManager()
Gets the Empire Entity manager that manages objects created based on the information from that Jena model |
java.util.Collection<java.lang.String> |
getImports()
Gets the list of OWL imports in this model (the top-level only). |
com.hp.hpl.jena.rdf.model.Model |
getModel()
Gets the underlying Jena model. |
java.util.Map<java.lang.String,java.lang.String> |
getNsPrefixMap()
Gets the map of currently defined namespace prefixes. |
ReasoningService |
getReasoningService()
Gets the reasoning service associated with the model. |
boolean |
isClosureEnabled()
Returns information whether this source model will perform the closure to deliver terms to its reasoning service |
boolean |
isDereferenced()
Returns information whether the source model is dereferenced (i.e., was populated with data). |
boolean |
isValueValidationEnabled()
Returns information whether this source model performs validation of values for properties. |
void |
removeDependentModel(ModelImpl dependentModel)
Removes a dependent SSWAP model from this source model |
void |
removeImport(java.net.URI uri)
Removes an import from the list of imports |
void |
removeNsPrefix(java.lang.String prefix)
Removes a namespace prefix. |
void |
serialize(java.io.OutputStream os)
Serializes the contents of this object to the specified stream as RDF/XML. |
void |
serialize(java.io.OutputStream os,
RDFRepresentation representation,
boolean commentedOutput)
Serializes the contents of this object to the specified stream. |
void |
setClosureEnabled(boolean enabled)
Sets flag whether this source model will perform the closure to deliver terms to its reasoning service, or whether the reasoning service should solely rely on terms in this source model. |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Sets the Empire Entity manager that manages objects created based on the information from that Jena model. |
void |
setMaxClosureBytes(long maxClosureBytes)
Sets a model-specific byte limit for retrieving closure for this source model, or restores the system-wide limit. |
void |
setMaxClosureThreads(int maxClosureThreads)
Sets a model-specific concurrent thread limit for retrieving closure for this source model, or restores the system-wide limit. |
void |
setMaxClosureTime(long maxClosureTime)
Sets a model-specific time limit for retrieving closure for this source model, or restores the system-wide limit. |
void |
setModel(com.hp.hpl.jena.rdf.model.Model model)
Replaces the underlying Jena model with another one. |
void |
setNsPrefix(java.lang.String prefix,
java.net.URI uri)
Sets a namespace prefix that will be used in serialization of this model. |
void |
setValueValidationEnabled(boolean validationEnabled)
Turns on or off validation of values for properties in this model (i.e., values set via SSWAPIndividual.addProperty() and SSWAPIndividual.setProperty() methods) |
Methods inherited from interface info.sswap.api.model.SSWAPDocument |
---|
createAnonymousDatatype, createAnonymousType, createIndividual, createIndividual, createIntersectionOf, createList, createLiteral, createTypedLiteral, createUnionOf, getDatatype, getPredicate, getType, newIndividual, newIndividual |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
getDocument, getInputStream, getTypeSignature, getURI, validate |
Method Detail |
---|
com.hp.hpl.jena.rdf.model.Model getModel()
com.hp.hpl.jena.rdf.model.Model getClosureModel()
com.hp.hpl.jena.rdf.model.Model getClosedWorldModel()
void setModel(com.hp.hpl.jena.rdf.model.Model model)
model
- the new model.javax.persistence.EntityManager getEntityManager()
void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the Empire entity manager for the Jena modelvoid addDependentModel(ModelImpl dependentModel)
dependentModel
- the dependent modelvoid removeDependentModel(ModelImpl dependentModel)
dependentModel
- the dependent model to be removedboolean isDereferenced()
isDereferenced
in interface SSWAPModel
void dereference()
dereference
in interface SSWAPModel
void dereference(java.io.InputStream is)
dereference
in interface SSWAPModel
is
- the input stream to read the model contentsvoid dereference(com.hp.hpl.jena.rdf.model.Model model)
model
- the Jena model that contains the dataReasoningService getReasoningService()
getReasoningService
in interface SSWAPModel
int doClosure()
doClosure
in interface SSWAPModel
void serialize(java.io.OutputStream os)
serialize
in interface SSWAPModel
os
- output streamvoid serialize(java.io.OutputStream os, RDFRepresentation representation, boolean commentedOutput)
serialize
in interface SSWAPModel
os
- output streamrepresentation
- the representation, in which the contents should be written (e.g., RDF/XML).commentedOutput
- true, if the output should contain comments about various standard sections of an RDG (valid only for
RDF/XML)void setNsPrefix(java.lang.String prefix, java.net.URI uri)
setNsPrefix
in interface SSWAPModel
prefix
- the prefixuri
- the corresponding URIvoid removeNsPrefix(java.lang.String prefix)
removeNsPrefix
in interface SSWAPModel
prefix
- the prefix to be removed.java.util.Map<java.lang.String,java.lang.String> getNsPrefixMap()
getNsPrefixMap
in interface SSWAPModel
java.util.Collection<java.lang.String> getImports()
getImports
in interface SSWAPModel
void addImport(java.net.URI uri)
addImport
in interface SSWAPModel
uri
- the URI of the import to be addedvoid removeImport(java.net.URI uri)
removeImport
in interface SSWAPModel
uri
- the import to be removedSSWAPModel getDependentModel(java.net.URI uri)
uri
-
java.util.Collection<SSWAPModel> getDependentModels(java.net.URI uri)
uri
- the uri
boolean checkProfile(Expressivity expressivity)
checkProfile
in interface SSWAPModel
expressivity
- the expressivity to be checked
void setMaxClosureBytes(long maxClosureBytes)
maxClosureBytes
- the new model-specific byte limit for closure for this model, or -1 to restore the
system-wide limitvoid setMaxClosureTime(long maxClosureTime)
maxClosureTime
- the new model-specific time limit (in ms) for closure for this model, or -1 to restore the
system-wide limitvoid setMaxClosureThreads(int maxClosureThreads)
maxClosureThreads
- the new model-specific concurrent thread limit for closure for this model, or -1 to restore the
system-wide limitboolean isValueValidationEnabled()
void setValueValidationEnabled(boolean validationEnabled)
validationEnabled
- true if the values should be validated, false if the validation should be turned offboolean isClosureEnabled()
void setClosureEnabled(boolean enabled)
enabled
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |