DB2triples是一个jar工具包 rdb2rdf
使用命令行
db2triples 参数
参数帮助
usage: db2triples v1.0 - See https://github.com/antidot/db2triples for
more informations.
-b,--database <database_name> database name
-d,--driver <driver> Driver to use (default :
com.mysql.jdbc.Driver )
-f Force loading of existing repository
(without remove data)
-i,--base_uri <base_uri> Base URI (default :
http://foo.example/DB/)
-l,--url <url> Database URL (default :
jdbc:mysql://localhost/)
-m,--mode <mode> Mandatory conversion mode, 'r2rml'
for R2RML and 'dm' for Direct
Mapping
-n,--native_output <nativeOutput> Native store output directory
-o,--output <output> Output RDF filename (default :
output)
-p,--pass <password> Database password
-q,--sparql_output <sparql_output> Transformed graph output file
(optionnal if sparql option is not
specified, default : sparql_output
otherwise)
-r,--r2rml_file <r2rml_file> R2RML config file used to convert
relationnal database into RDF terms.
-s,--sparql <sparql> Sparql transform request file
(optionnal)
-t,--format <format> RDF syntax output format ('RDFXML',
'N3', 'NTRIPLES' or 'TURTLE')
-u,--user <user_name> Database user name
-v,--version <version> Version of norm to use (1 = Working
Draft 20 September 2011 (default), 2
= Working Draft 23 March 2011)