Hi Martin, I just tried with a small test db and was unable to reproduce your case, even with the #. I attach the SQL and mapping file I am using as well as the output, produce with the command ./dump-rdf -f RDF/XML -b "http://purl.org/test/" -o testMapping.owl testMapping.ttl
As you can see in the output, it creates classes with URI of type <rdf:Description rdf:about="1"> (the base URI being defined as xml:base="http://purl.org/test/", this would be expanded as http://purl.org/test/1) and classes with an absolute URI such as <rdf:Description rdf:about="http://purl.obolibrary.org/obo#testName1"> Cheers, Melanie
testMapping.owl
Description: Binary data
testMapping.ttl
Description: Binary data
testd2r.sql
Description: Binary data
On 2013-06-27, at 9:42 AM, martin roberts wrote: > Hi Melanie > In our case we have used the second format but with the following style of url > > http://purl.obolibrary.org/obo#ObjectName_@@data.code@@ > > I am wondering as we have used # in the uri whether Jena has taken this to be > wrong for the dump. It works if I run the server but not if I use dump. > > Martin > On 27/06/2013 17:37, Melanie Courtot wrote: >> Hi Martin, >> >> Do you have a small example? >> >> I use both a relative URI with d2rq:uriPattern >> "@@positiveData.key_ID|urlify@@" and an absolute URI with d2rq:uriPattern >> "http://purl.obolibrary.org/obo/@@data.code@@" in the same mapping file, and >> I get the expected output, i.e. in the first case my base URI is prepended, >> while in the second the URI is kept as is. >> >> I use dump-rdf -b "my-base-uri". >> >> Cheers, >> Melanie >> >> >> On 2013-06-27, at 7:46 AM, martin roberts wrote: >> >>> Hi >>> can you explain why the dump-rdf feature does not use the uriPattern >>> properties for generate the full URI for the objects extracted, but >>> instead uses the base uri passed in? >>> >>> Is there a way to make this work? >>> >>> Martin >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> d2rq-map-devel mailing list >>> d2rq-map-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel >> --- >> Mélanie Courtot >> Ph.D. Candidate, >> BCCRC - Terry Fox Laboratory - 12th floor >> 675 West 10th Avenue >> Vancouver, BC >> V5Z 1L3, Canada >> >> >> >> >> >> >> >> >> >> >> >
------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev
_______________________________________________ d2rq-map-devel mailing list d2rq-map-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel