You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Michael Brunnbauer <br...@netestate.de> on 2012/09/03 13:41:41 UTC

Re: Cleaning triples with Riot

Hello Andy,

On Tue, Aug 28, 2012 at 04:53:55PM +0100, Andy Seaborne wrote:
> >Can anyone tell me how to rewrite this portion of code so that the parser
> >will throw an exception for the invalid integer ?
> 
> No need - TDB ought to handle that (invalid values aren't supposed to be 
> errors - things just get a little less efficient).
> 
> "riot --validate" will issue a warning.
> 
> The TDB system is supposed to handle out-of-range number - plain old 
> bug, now fixed in SVN.

Thank you. I replaced jena-tdb-0.9.3.jar with 
jena-tdb-0.9.4-20120829.061613-27.jar in my jena-2.7.3 distribution and was
able to do create the TDB. Unfortunately, dumping the TDB does not seem to
be possible with the new jar:

 Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/hpl/jena/sparql/core/DatasetGraphTrackActive

Well - you already said that replacing jar files in lib/ might break things.
I will use the old TDB .jar for the dump.

Nightly builds of the Jena distribution - not only of the components - would 
be nice.

Regards,

Michael Brunnbauer

-- 
++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail brunni@netestate.de
++  http://www.netestate.de/
++
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel

Re: Cleaning triples with Riot

Posted by Andy Seaborne <an...@apache.org>.
On 03/09/12 12:41, Michael Brunnbauer wrote:
>
> Hello Andy,
>
> On Tue, Aug 28, 2012 at 04:53:55PM +0100, Andy Seaborne wrote:
>>> Can anyone tell me how to rewrite this portion of code so that the parser
>>> will throw an exception for the invalid integer ?
>>
>> No need - TDB ought to handle that (invalid values aren't supposed to be
>> errors - things just get a little less efficient).
>>
>> "riot --validate" will issue a warning.
>>
>> The TDB system is supposed to handle out-of-range number - plain old
>> bug, now fixed in SVN.
>
> Thank you. I replaced jena-tdb-0.9.3.jar with
> jena-tdb-0.9.4-20120829.061613-27.jar in my jena-2.7.3 distribution and was
> able to do create the TDB. Unfortunately, dumping the TDB does not seem to
> be possible with the new jar:
>
>   Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/hpl/jena/sparql/core/DatasetGraphTrackActive
>
> Well - you already said that replacing jar files in lib/ might break things.
> I will use the old TDB .jar for the dump.
>
> Nightly builds of the Jena distribution - not only of the components - would
> be nice.
>
> Regards,
>
> Michael Brunnbauer
>

Michael,

You'll need to use a consistent set of jars - all the 20120829 build. 
In this case, the version of ARQ now has DatasetGraphTrackActive in it, 
moved up from TDB.

The two ways to get a consistent set of jars are:

1/ Use maven
2/ Download the combined distribution

https://repository.apache.org/content/groups/snapshots/org/apache/jena/apache-jena/2.7.4-SNAPSHOT/

currently:
apache-jena-2.7.4-20120903.055710-30.zip

which has all the jars in it

	Andy