Linux command
roqet 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Execute SPARQL query
roqet -i sparql "[query]" [data.rdf]
Query file
roqet -i sparql [query.rq] [data.rdf]
Query with results
roqet -r json -i sparql "[SELECT * WHERE { ?s ?p ?o }]" [data.rdf]
Explain query
roqet -e "[query]"
说明
roqet is a SPARQL/RDQL query utility from the Redland RDF library. It executes queries against RDF data and outputs results in various formats. Part of Redland RDF libraries.
参数
- -i, --input _format_
- Query format (sparql, rdql).
- -r, --results _format_
- Output format (xml, json, csv).
- -e, --exec _query_
- Execute query string.
- -D, --data _uri_
- Data source.
- -d, --dump-query
- Show parsed query.
FAQ
What is the roqet command used for?
roqet is a SPARQL/RDQL query utility from the Redland RDF library. It executes queries against RDF data and outputs results in various formats. Part of Redland RDF libraries.
How do I run a basic roqet example?
Run `roqet -i sparql "[query]" [data.rdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --input _format_ do in roqet?
Query format (sparql, rdql).