Hi Josep, the format is determined using content-negotiation - if you request a resource using e.g. an Accept-Header of "text/turtle" you will get turtle:
curl -H "Accept: text/turtle" "http://localhost:8080/marmotta/resource?uri=http%3A%2F%2Frhizomik.net%2FPests%23PestTest" The browser view is only the html-serialisation of the resource, since your browser is sending "Accept: text/html" If you want to download a complete context/named graph, you can use the Export service where you can explicitly choose the format: http://localhost:8080/marmotta/core/admin/export.html Best, Jakob On 10 September 2014 11:01, Josep Maria Brunetti <jos...@gmail.com> wrote: > Hi Jakob, > > Thank you for your answer. I had already seen this view. Is there anyway to > obtain that resource as RDF, JSON or any format? > > Thank you. > > Best, > > Josep > > > On Tue, Sep 9, 2014 at 3:26 PM, Jakob Frank <ja...@apache.org> wrote: >> >> Hi Josep, >> >> looks like the UI does not encode the # correctly. Please file a bug >> report in Jira [1]. >> >> For the snapshot service - the admin-pages of the versioning module >> seem to contain an outdated description. >> >> To access/browse previous versions of your triple store, use the >> memento support from the versioning module. >> >> Eg. from the resource browser (e.g. >> >> http://localhost:8080/marmotta/resource?uri=http%3A%2F%2Frhizomik.net%2FPests%23PestTest >> ) - in the top-right corner you will find a grey clock-icon which will >> list the available versions of the current resource. >> >> HTH - best, >> Jakob >> >> [1] https://issues.apache.org/jira/browse/MARMOTTA >> >> Am 03.09.2014 12:09 schrieb "Josep Maria Brunetti" <jos...@gmail.com>: >> > >> > Hi Jakob, >> > >> > Thank you very much, you were right. Please excuse me for my error. >> > >> > I have another question, related with versioning I have uploaded the >> > same RDF resource (with minor changes) via the admin UI and I can see a new >> > version is created at /versions/list with the ID "507093512716697602". >> > >> > However, i can't get a snapshot of the resource. I'm trying to access >> > the following URL: >> > >> > http://localhost:8080/marmotta/snapshot?resource=http%3A%2F%2Frhizomik.net%2FPests%23PestTest&version=507093512716697602 >> > The server response is 404 and this is the log: >> > 11:56:39.673 DEBUG o.a.m.p.c.s.m.MarmottaResourceServiceImpl - resource >> > /snapshot not found in any module >> > >> > Moreover, I think that there is a minor bug in the timemap. When >> > accessing the timemap of the resource, it seems it only works when the "#" >> > character is encoded. The service doesn't work with the resource URI >> > completely encoded. >> > >> > >> > http://localhost:8080/marmotta/memento/timemap/http://rhizomik.net/Pests#PestTest >> > --> doesn't find the resource >> > >> > http://localhost:8080/marmotta/memento/timemap/http%3A%2F%2Frhizomik.net%2FPests%23PestTest >> > --> doesn't find the resource >> > >> > http://localhost:8080/marmotta/memento/timemap/http://rhizomik.net/Pests%23PestTest >> > --> WORKS >> > >> > Am I doing something wrong regarding the snapshot service? >> > >> > Thank you very much. >> > >> > Best, >> > >> > Josep Maria Brunetti >> > >> > On Tue, Sep 2, 2014 at 1:32 PM, Jakob Frank <ja...@apache.org> wrote: >> >> >> >> Hi Josep, >> >> >> >> the dataview is grouped in three sections: the context/graph view, the >> >> classes/types view, and the resource list. >> >> >> >> If you select a graph in the first chart, the two other sections will >> >> be updated to show only data from the selected graph. >> >> >> >> If you select a type/class in the second chart, the resource list will >> >> show only resources with this type assigned. >> >> >> >> Try selecting <http://rhizomik.net/Pests#PestTest> in the second chart >> >> and see whether your "missing" resource is listed... >> >> >> >> Best, >> >> Jakob >> >> >> >> On 2 September 2014 13:02, Josep Maria Brunetti <jos...@gmail.com> >> >> wrote: >> >> > Hi Jakob, >> >> > >> >> > I'm also using version 3.2.1. >> >> > >> >> > This is the query generated to list the resources: >> >> > >> >> > "SELECT ?a ?b ?c WHERE {?a ?b ?c.{SELECT ?a WHERE {?a ?b ?c.FILTER >> >> > NOT >> >> > EXISTS {?a a ?class}}ORDER BY ?a LIMIT 5}}" >> >> > >> >> > I think that the problem is with the "FILTER NOT EXISTS{?a a >> >> > ?class}", which >> >> > only lists resources without rdf:type. >> >> > >> >> > Anyway, I see the resource is still available at >> >> > http://localhost:8080/marmotta/resource?uri=[uri] even if it is not >> >> > listed, >> >> > so I supose I can use versioning with it. >> >> > >> >> > I will keep working with Marmotta and I will report again if I have >> >> > any >> >> > doubt. >> >> > >> >> > Thank you again, >> >> > >> >> > Best, >> >> > >> >> > -- >> >> > Josep Maria Brunetti Fernández >> >> > Escola Politècnica Superior (EPS) - Universitat de Lleida >> >> > C\ Jaume II 69, 25001 Lleida >> > >> > >> > >> > >> > -- >> > Josep Maria Brunetti Fernández >> > Escola Politècnica Superior (EPS) - Universitat de Lleida >> > C\ Jaume II 69, 25001 Lleida > > > > > -- > Josep Maria Brunetti Fernández > Escola Politècnica Superior (EPS) - Universitat de Lleida > C\ Jaume II 69, 25001 Lleida