Linux command
rdfproc 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Query RDF store
rdfproc [store] query sparql - "[SELECT * WHERE { ?s ?p ?o }]"
Parse RDF file
rdfproc [store] parse [file.rdf]
Serialize to format
rdfproc [store] serialize ntriples
Add statement
rdfproc [store] add [subject] [predicate] [object]
Print all statements
rdfproc [store] print
说明
rdfproc is a command-line utility for processing RDF data using the Redland RDF library. It can parse, store, query, and serialize RDF data.
参数
- parse _file_
- Parse and load RDF file.
- query _lang_ _uri_ _query_
- Execute query.
- serialize _format_
- Output in format.
- Print all statements.
- add _s_ _p_ _o_
- Add triple.
- remove _s_ _p_ _o_
- Remove triple.
FAQ
What is the rdfproc command used for?
rdfproc is a command-line utility for processing RDF data using the Redland RDF library. It can parse, store, query, and serialize RDF data.
How do I run a basic rdfproc example?
Run `rdfproc [store] query sparql - "[SELECT * WHERE { ?s ?p ?o }]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does parse _file_ do in rdfproc?
Parse and load RDF file.