From: Rob V. <rv...@do...> - 2012-09-20 16:16:39
|
Hi Antonio This is a bug in the library, I filed this as CORE-278 [1] and have fixed this in Trunk Unfortunately there is no workaround currently so you can either wait for the new release (next week or so), build yourself from latest Trunk [2] or pick up a nightly build from [3] Regards, Rob Vesse [1]: http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=278 [2]: http://bitbucket.org/dotnetrdf/dotnetrdf [3]: http://dotnetrdf.hg.sourceforge.net/hgweb/dotnetrdf/binaries-nightly/file/ti p/Libraries/Core From: antonio nunziante <nun...@gm...> Reply-To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: Thursday, September 20, 2012 3:55 AM To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Subject: [dotNetRDF-Develop] Update System.UriFormatException: URI not valid > Hi all, > > I'm using the following instructions in order to update an OWLIM-Lite > repository: > > //Get an Update Parser > SparqlUpdateParser parser = new SparqlUpdateParser(); > > //Generate a Command > SparqlParameterizedString cmdString = new SparqlParameterizedString(); > cmdString.CommandText = query; > > //Parse the command into a SparqlUpdateCommandSet > SparqlUpdateCommandSet cmds = parser.ParseFromString(cmdString); > > //Connect to Sesame and create a GenericUpdateProcessor to apply the update > SesameHttpProtocolConnector sesame = new > SesameHttpProtocolConnector(endpointBaseUri, storeId); > GenericUpdateProcessor processor = new GenericUpdateProcessor(sesame); > processor.ProcessCommandSet(cmds); > > > Generally it works, but I receveid exception in > "processor.ProcessCommandSet(cmds);" when probably the query string is too > long. The exception is: > > > System.UriFormatException: URI not valid. String Uri too long. in > System.Uri.EscapeString(String input, Int32 start, Int32 end, Char[] dest, > Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd) in > System.Uri.EscapeDataString(String stringToEscape) in > VDS.RDF.Storage.SesameHttpProtocolVersion6Connector.Update(String > sparqlUpdate) in > VDS.RDF.Update.GenericUpdateProcessor.ProcessCommandSet(SparqlUpdateCommandSet > commands) in TripleStoreController.RunUpdateSparqlQuery(String query, String > endpointBaseUri, String storeId) in > C:\Users\Nunziante\Dropbox\CRMPA\Progetti\SIRET\Documenti\OR1\D1.3\CompetenceM > odelDataManagement\CompetenceModelDataManagement\TripleStoreController.cs:riga > 79 > > > > I hope anyone could help me. Thanks a lot > -- > Antonio Nunziante > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. Make your web apps faster with > AppDynamics Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html__________________ > _____________________________ dotNetRDF-develop mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop |