|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is abstraction for an interace onto a datastore. Each configured DataSource will have some associated datastore.
Each data store provides:
| Method Summary | |
void |
addData(com.hp.hpl.jena.rdf.model.Model newdata,
java.lang.String url)
Add a set of statements into the data source, reseting appropriate caches. |
void |
annotate(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property prop,
com.hp.hpl.jena.rdf.model.RDFNode value)
Add a single annotation to a resource. |
void |
annotateClassification(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property prop,
com.hp.hpl.jena.rdf.model.RDFNode value)
Add a classification annotation to a resource. |
void |
clearCache()
Call to flush all caches and make sure future loads see fresh state data. |
com.hp.hpl.jena.rdf.model.Model |
getDataModel()
Return the aggregated data in the store as a Jena model. |
MultiModel |
getDataMultiModel()
Return the aggregated data in the store as a multi model. |
com.hp.hpl.jena.ontology.OntModel |
getOntologyModel()
Return the ontology model for the data source. |
FilterQuery |
getRootQuery()
Return a FilterQuery which will find all candidate root resources in this data source. |
com.hp.hpl.jena.rdf.model.Resource |
getStatementSource(com.hp.hpl.jena.rdf.model.Statement stmt)
Return a resource representing the data source of the given statement or null if it is not known. |
java.util.List |
listCompatibleRelations(com.hp.hpl.jena.rdf.model.Resource source,
com.hp.hpl.jena.rdf.model.Resource target)
Return a list of (wrapped) properties which can be used as explicit relation links by this datasource. |
void |
loadData(java.io.InputStream ins,
java.lang.String url,
java.lang.String lang)
Load a new block of data into the main data model. |
boolean |
loadKS(java.lang.String urlIn)
Load additional additional source definitions into this source, along with any referenced sourceURLs. |
void |
saveAnnotations()
Save all the annotations out to a local file. |
void |
updateRefinementCounts()
Update the set of cached refinement counts. |
| Method Detail |
public com.hp.hpl.jena.rdf.model.Model getDataModel()
public MultiModel getDataMultiModel()
public com.hp.hpl.jena.rdf.model.Resource getStatementSource(com.hp.hpl.jena.rdf.model.Statement stmt)
public com.hp.hpl.jena.ontology.OntModel getOntologyModel()
TODO generalize to multiple source options and non-file sources.
public FilterQuery getRootQuery()
public java.util.List listCompatibleRelations(com.hp.hpl.jena.rdf.model.Resource source,
com.hp.hpl.jena.rdf.model.Resource target)
public void loadData(java.io.InputStream ins,
java.lang.String url,
java.lang.String lang)
public void addData(com.hp.hpl.jena.rdf.model.Model newdata,
java.lang.String url)
public void updateRefinementCounts()
public void annotate(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property prop,
com.hp.hpl.jena.rdf.model.RDFNode value)
public void annotateClassification(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.rdf.model.Property prop,
com.hp.hpl.jena.rdf.model.RDFNode value)
public void saveAnnotations()
throws java.io.IOException
java.io.IOExceptionpublic boolean loadKS(java.lang.String urlIn)
public void clearCache()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||