@Override public void load(Model model) { doPutPost(model, null, false); }
@Override public void load(String graphName, Model model) { doPutPost(model, graphName, false); }
@Override public void load(String graphName, Model model) { doPutPost(model, graphName, false); }
@Override public void load(Model model) { doPutPost(model, null, false); }
@Override public void put(String graphName, Model model) { checkGSP(); doPutPost(model, graphName, true); }
@Override public void put(Model model) { checkGSP(); doPutPost(model, null, true); }
@Override public void put(String graphName, Model model) { checkGSP(); doPutPost(model, graphName, true); }
@Override public void put(Model model) { checkGSP(); doPutPost(model, null, true); }
/** Send a file to named graph (or "default" or null for the default graph). * <p> * The Content-Type is inferred from the file extension. * <p> * "Replace" means overwrite existing data, othewise the date is added to the target. */ protected void upload(String graph, String file, boolean replace) { // if triples Lang lang = RDFLanguages.filenameToLang(file); if ( RDFLanguages.isQuads(lang) ) throw new ARQException("Can't load quads into a graph"); if ( ! RDFLanguages.isTriples(lang) ) throw new ARQException("Not an RDF format: "+file+" (lang="+lang+")"); String url = LibRDFConn.urlForGraph(svcGraphStore, graph); doPutPost(url, file, lang, replace); }
/** Send a file to named graph (or "default" or null for the default graph). * <p> * The Content-Type is inferred from the file extension. * <p> * "Replace" means overwrite existing data, othewise the date is added to the target. */ protected void upload(String graph, String file, boolean replace) { // if triples Lang lang = RDFLanguages.filenameToLang(file); if ( RDFLanguages.isQuads(lang) ) throw new ARQException("Can't load quads into a graph"); if ( ! RDFLanguages.isTriples(lang) ) throw new ARQException("Not an RDF format: "+file+" (lang="+lang+")"); String url = LibRDFConn.urlForGraph(svcGraphStore, graph); doPutPost(url, file, lang, replace); }