Ok, this explains it: http://openjena.org/wiki/TDB/ValueCanonicalization
while I'm not sure what TDB does is perflectly legal, it is unsefull anyway to make the SimpleLiteraFactory more flexible and I've posted CLEREZZA-123. Cheers, reto On Fri, Feb 12, 2010 at 11:25 AM, Reto Bachmann-Gmuer <[email protected]> wrote: > weird! > > With the sesame backend its > <j.0:width rdf:datatype="http://www.w3.org/2001/XMLSchema#int">100</j.0:width> > > With tdb its: > <j.0:width > rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">100</j.0:width> > > should check the storage tests. > > Cheers, > reto > > On Thu, Feb 11, 2010 at 11:19 PM, Reto Bachmann-Gmuer > <[email protected]> wrote: >> >> Thanks Tsuy, I've the exception as well. interesting... >> Will look at it tomorrow. >> >> On Thu, Feb 11, 2010 at 9:52 PM, Tsuyoshi Ito <[email protected]> wrote: >>> >>> Yes, it also occurs on my local machine >>> >>> uri to get thumbnails (hope you mean this uri) >>> >>> http://localhost:8080/thumbnail-service?uri=http://localhost:8080/digital-assets/30da1ac4-0767-45d9-877b-5db6f2803c5c&width=200 >>> >>> queryparams: >>> >>> uri: uri of the image >>> width: max width of the image >>> height : max height of the image >>> >>> width or height have to be defined (means one of them is optionally) >>> >>> On Feb 11, 2010, at 9:39 PM, Reto Bachmann-Gmuer wrote: >>> >>> > Does it also occur on your local machine? and please remind me, what's the >>> > uri of the thumbnail service (should definitively get those maven sites >>> > online...) >>> > >>> > cheers, >>> > reto >>> > >>> > On Thu, Feb 11, 2010 at 9:33 PM, Tsuyoshi Ito <[email protected]> >>> > wrote: >>> > >>> >> >>> >> On Feb 11, 2010, at 5:14 PM, Reto Bachmann-Gmuer wrote: >>> >> >>> >>> Hi >>> >>> >>> >>> I've fixed tdb today by updating the jena version, it seems this problem >>> >> is >>> >>> solved as well. >>> >>> >>> >>> >>> >> >>> >> I have downloaded latest tdb launcher from hudson (build #102) and tested >>> >> it on the trialox demo server. The problem still exists. >>> >> >>> >> >>> >>> >>> >>> On Mon, Feb 8, 2010 at 7:53 PM, Tsuyoshi Ito <[email protected]> >>> >> wrote: >>> >>> >>> >>>> Hi there >>> >>>> >>> >>>> I have remove the org.apache.clerezza.com.ext.hp.hpl.jena dependency in >>> >>>> launcher.tdb. The goods news are: I can start the launcher and upload >>> >>>> images... But there is a problem with the >>> >>>> org.apache.clerezza.platform.content.representations >>> >>>> >>> >>>> I can upload images but cannot display the thumbnails via thumbnail >>> >>>> service. The following error occured >>> >>>> >>> >>>> RuntimeException (with no exception mapper) >>> >>>> org.apache.clerezza.rdf.core.InvalidLiteralTypeException: Cannot create >>> >> a >>> >>>> class java.lang.Integer from a literal of type < >>> >>>> http://www.w3.org/2001/XMLSchema#integer> >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(SimpleLiteralFactory.java:152) >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(SimpleLiteralFactory.java:139) >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory.createObject(SimpleLiteralFactory.java:230) >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.platform.content.representations.core.ThumbnailService.getSurfaceSizeIfFitting(ThumbnailService.java:176) >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.platform.content.representations.core.ThumbnailService.isFittingImage(ThumbnailService.java:195) >>> >>>> at >>> >>>> >>> >> org.apache.clerezza.platform.content.representations.core.ThumbnailService.getThumbnailUri(ThumbnailService.java:146 >>> >>>> >>> >>>> >>> >>>> Points to >>> >>>> >>> >>>> Integer thumbnailWidth = LiteralFactory.getInstance().createObject( >>> >>>> Integer.class, (TypedLiteral) >>> >>>> exifWidths.next()); >>> >>>> Integer thumbnailHeight = LiteralFactory.getInstance().createObject( >>> >>>> Integer.class, (TypedLiteral) >>> >>>> exifHeights.next()); >>> >>>> >>> >>>> The error doesn't occur when using >>> >>>> >>> >>>> Integer thumbnailWidth = Integer.valueOf(((Literal) >>> >>>> exifWidths.next()).getLexicalForm()); >>> >>>> Integer thumbnailHeight = Integer.valueOf(((Literal) >>> >>>> exifHeights.next()).getLexicalForm()); >>> >>>> >>> >>>> What should we do? >>> >>>> >>> >>>> >>> >>>> Tsuy >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >>> --trialox ag-------------------------------------- >>> >>> Tsuyoshi Ito >>> Binzmuehlestrasse 14 >>> CH-8050 Zürich >>> Tel. +41-44 635 7577 >>> Fax +41-44 635 7574 >>> URL: http://trialox.org >>> >>> >>> >>> >> >
