On 30 May 2012, at 16:34, YU Fan wrote: > 1) When I use this command to get a mapping file. > > H:\d2rq-0.8>generate-mapping -u root -o db_a.ttl -b xxxx > jdbc:mysql://127.0.0.1:3306/db_a > > And I got this name prefix declaration in db_a.ttl file: > > @prefix vocab: <xxxxvocab/resource/> . > > which has a unwanted suffix of "vocab/resource".
If you don't want it, just edit the generated mapping file to remove it. The point of generate-mapping is that it quickly creates a default mapping for you that you can then customize. Obviously the default mapping can't make everybody happy. > 2) And for the dump-rdf utility, -b xxxx will only generate something like: > > file://theRdffile/xxxx/1 > > There is a unwanted prefix to xxxx. All URIs in N-Triples have to be absolute (protocol://server/....), so dump-rdf has to fill in *something* to create an absolute URI. Leaving the prefix out would result in an invalid N-Triples file. If you don't like what it's filling in, then just specify a full absolute base URI with the -b parameter, like: dump-rdf -b http://whateveryouwant/ ... Best, Richard > > > Did i do something wrong or can D2RQ remove this annoying suffix for the > next version? > > > Fan YU > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > d2rq-map-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
