incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmuer <>
Subject Re: DAM Problem at
Date Thu, 04 Feb 2010 19:33:03 GMT
Hi Oli

Just for completeness, after getting and modifying the content.graph
you should do a PUT do the same address you got the graph from.

For example, if you did

curl -u admin:admin  -H "Accept: application/rdf+xml"
http://localhost:8080/graph?name=http://tpf.localhost/content.graph >

to GET the graph, you would do

curl -u admin:admin  -H "Content-Type: application/rdf+xml" -T
sysgraph http://localhost:8080/graph?name=http://tpf.localhost/content.graph

to PUT it back.

The procedure described by Tsuy uses POST to add triples to the system
graph, this works as by default there's no defaultBaseUri to modify an
existing default base use you have to use GET and PUT analogously to
the method descibred abobe for the content-graph.

NOTE: The current ontology usage in the system graph is bogus, the
property defaultBaseUri should not be on but on an instance of
platform:Instance. Once this is fixed (I will post an issue) the
subject of the defaultBaseUri statement will probably be a bnode this
will render the post method impossible.


On Thu, Feb 4, 2010 at 6:38 PM, Tsuyoshi Ito <> wrote:
> Hi Oli
> All UriRefs of the mediatypes' icons are hardcoded in the contentgraph: You can change
these UriRefs (and also the UriRefs of existing images incl. thumbnails) by get the contentgraph
via GET (http://localhost:8080/graph?name=http://tpf.localhost/content.graph) and change this
UriRefs and than post it to your instance  (you can also use the backup service)
> Probably there is an easier way to do that? What to you think Manuel?
> The DefaultBaseUri of the instance can be changed by posting the following triple to
the system.graph of your instance.
> <rdf:RDF
>        xmlns:rdf="">
> <rdf:Description rdf:about="">
>        <defaultBaseUri xmlns="" rdf:resource=""/>
> </rdf:Description>
> </rdf:RDF>
> You can put it via curl
> curl -u admin:admin -F "graph=@/PATH_TO_RDF.rdf;type=application/rdf+xml" -F "name=http://tpf.localhost/system.graph"
-F "mode=append"
> On Feb 4, 2010, at 5:30 PM, Oliver Strässer wrote:
>> Today is installed all new bundles  / launcher on the
>> All is working very well . The only Problem is, that i can't see the uploaded image
(no thumbnails, ... )
>> If want to create a thumbnail i got the following error message:
>> Any Ideas ?
>> at org.apache.clerezza.platform.content.representations.core.ThumbnailService.getThumbnailUri(
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>        at java.lang.reflect.Method.invoke(
>>        at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.handleWithMethod(
>>        at org.apache.clerezza.triaxrs.RootResourceExecutorImpl.execute(
>>        at org.apache.clerezza.triaxrs.JaxRsHandler.handle(
>>        at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler$RegisteredHandler.handle(
>>        at org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler.handle(
>>        at$
>>        at Method)
>>        at
>>        at
>>        at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(
>>        at org.apache.clerezza.platform.xhtml2html.Xhtml2HtmlFilter.handle(
>>        at org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(
>>        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(
>>        at javax.servlet.http.HttpServlet.service(
>>        at org.mortbay.jetty.servlet.ServletHolder.handle(
>>        at org.mortbay.jetty.servlet.ServletHandler.handle(
>>        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(
>>        at org.mortbay.jetty.servlet.SessionHandler.handle(
>>        at org.mortbay.jetty.handler.ContextHandler.handle(
>>        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(
>>        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(
>>        at org.mortbay.jetty.handler.HandlerWrapper.handle(
>>        at org.mortbay.jetty.Server.handle(
>>        at org.mortbay.jetty.HttpConnection.handleRequest(
>>        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
>>        at org.mortbay.jetty.HttpParser.parseNext(
>>        at org.mortbay.jetty.HttpParser.parseAvailable(
>>        at org.mortbay.jetty.HttpConnection.handle(
>>        at
>>        at org.mortbay.thread.QueuedThreadPool$
> Cheers
> Tsuy

View raw message