In my example file I have both T-Boxes and A-Boxes. An A-Box example in the file is “Bridge_1”. (which is an individual of the A-box “Bridge” in the same file).
What I would like to do is to be able to get the data via: "http://dbpedia.org/resource/<http://dbpedia.org/resource/Switzerland>Bridge_1” So what name space (baseURI) should I define for my file to be able to do that? Guess I wrongly thought it has to be: "http://dbpedia.org/resource/<http://dbpedia.org/resource/Switzerland>” From: Fabian Cretton [mailto:fabian.cret...@hevs.ch] Sent: vrijdag 10 oktober 2014 10:09 To: users@marmotta.apache.org Subject: RE: Rép. : Re: How to use Marmotta for Linked data publishing ? Michel, Actually I am not really sure what you try to achieve. We talk about Linked Data publishing, right ? So making data from the store accessible via their URI, with content negociation. I would make a distinction between the ontology (let say T-Box) and the data (A-Box). As in DBPedia, both have different prefixes: "http://dbpedia.org/resource/<http://dbpedia.org/resource/Switzerland>" for the A-Box and for instance "http://dbpedia.org/ontology/" for the T-Box. I don't think Marmotta is intended to publich the T-Box on "/resource" eventhoug it is feasible, but it would be misleading I think. Also, it seems reasonable to publish a T-Box on a "hash URI", as people will want to access the all T-Box and not just one resource. I think you don't want to assert this: http://localhost:8080/marmotta/resource rdf:type owl:Ontology ; I don't know how Marmotta handles that, but it seems a wrong assertion. Taking a much simple exemple, you can declare: <http://localhost:8080/resource/tstLDRes> a <http://xmlns.com/foaf/0.1/Person>; rdfs:label "A resource to test Marmotta's Linked Data publishing" . And then have a "linked data" access to: http://localhost:8080/resource/tstLDRes If we wanted to handle T-Box, we could create a new Marmotta module, for instance on a "/ontology" web service. That was suggested in the discutions by the Team, and that would be not too complicated to implement. As an example, we did a little demonstrator for eGov projects, where we use pubby to publish the A-Box, as for instance: http://logd.ch/eCH-0070/id/10 (here we used 'id' instead of 'resource', as it is also often used, and shorter) And we did use a tool called "LODE" to publish the .html version of the T-Box, as: http://logd.ch/voc/service Hope this helps Fabian >>> "Bohms, H.M. (Michel)" <michel.bo...@tno.nl<mailto:michel.bo...@tno.nl>> >>> 09.10.2014 17:22 >>> I now imported a file: # baseURI: http://localhost:8080/marmotta/resource # imports: http://localhost:8080/marmotta/resource/cbnl-extension.ttl @prefix : <http://localhost:8080/marmotta/resource#> . @prefix ext: <http://localhost:8080/marmotta/resource/cbnl-extension.ttl#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix unit: <http://qudt.org/vocab/unit#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <http://localhost:8080/marmotta/resource> rdf:type owl:Ontology ; owl:imports <http://localhost:8080/marmotta/resource/cbnl-extension.ttl> ; . :Deck rdf:type owl:Class ; rdfs:subClassOf owl:Thing ; . :Deck_1 rdf:type :Deck ; .. I get: [cid:image001.png@01CFE62E.63A31530] Must be something small? Dr. ir. H.M. (Michel) Bohms Sr. Research Scientist Structural Reliability T +31 (0)88 866 31 07 M +31 (0)63 038 12 20 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. -----Original Message----- From: Sergio Fernández [mailto:wik...@apache.org] Sent: donderdag 9 oktober 2014 16:33 To: users@marmotta.apache.org<mailto:users@marmotta.apache.org> Subject: Re: Rép. : Re: How to use Marmotta for Linked data publishing ? Hi, On 09/10/14 09:32, Fabian Cretton wrote: > I think it is because your real resource URL is not > <http://localhost:8080/marmotta/resource/Deck_1> > But it is <http://ont.cbnl.org/cbnl-extension-example.ttl#Deck_1> > Marmotta doesn't handle URL-rewriting. See in my example that I did > use the Marmotta's url for my test resources. then you can alternatively request: http://localhost:8080/marmotta/resource?uri=http%3A%2F%2Font.cbnl.org%2Fcbnl-extension-example.ttl%23Deck_1 But that's a very basic Linked Data assumption: you can't directly serve resources named with uris you do not control ;-) I'll try dump to the webpage/wiki some of the hint I'm collecting for the ISWC tutorial. BTW, if someone is attending, you may find it interesting: http://marmotta.apache.org/events/iswc2014 Cheers, -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 660 2747 925 e: sergio.fernan...@redlink.co<mailto:sergio.fernan...@redlink.co> w: http://redlink.co