/* This software was developed within the context of the Metaphor Science Museums Project in the framework of the Information Society Technology Programme, part of the Fifth Research And Technological Development Framework Programme of the European Community, under the Consortium Agreement dated , between INRIA, Finsiel Spa, IMSS, Valoris , CSI, ICS-FORTH, ENSTB, EDW International. */ package gr.forth.ics.rssdb.rssdbgui; import gr.forth.ics.rssdb.storage.specrepr.SpecReprDBStorage; import gr.forth.ics.rssdb.storage.DBStorage; /** * This test shows how you can call the RSSDB Loader & store an RDF file/thesaurus * * @author Sofia Alexaki * @version 2.0 (23 July 2003) */ public class TestRSSDBAPI { public TestRSSDBAPI() { // Creates a SpecReprDBStorage for the storage of descriptions // in SPECIFIC representation. If you want to store descriptions //in SPECIFIC VARIATION representation creata a SpecReprVAr1DBStorage //object instead SpecReprDBStorage storage = new SpecReprDBStorage(DBStorage.SPECIFIC); storage.setAuthentication("alexaki", ""); //Take a look at the methods setStoredSchema(), setNewData(), setStoredData() storage.setNewSchema(true); storage.setVerbose(true); //storage.setModifiedNamespace("http://mysite/RDF_Schemas#cweb.rdf"); //storage.setOutFile("D:/tmp_local_users/alexaki/examples/output.txt"); //to store an RDF file storage.store("http://139.91.183.30:9090/RDF/VRP/Examples/demo/metaschema.rdf", "athena:8080/testdb"); //Store a thesaurus //storage.storeThesaurus("C:/alexaki/RDF_examples/rssdb_ex/thes/thes_example.xml" ,"athena.ics.forth.gr:8080/testdb"); } public static void main(String[] args) { new TestRSSDBAPI(); } }