This is a very simple cli.
Let’s say that we have the following RDF file:
<http://swat.cse.lehigh.edu/onto/univ-bench.owl#FullProfessor> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor> . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor> <http://www.w3.org/2000/01/rdf-schema#label> "professor" . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty> . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf> <http://www.w3.org/2000/01/rdf-schema#label> "is the head of" . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf> <http://www.w3.org/2000/01/rdf-schema#subPropertyOf> <http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor> . <http://swat.cse.lehigh.edu/onto/univ-bench.owl#memberOf> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> .
This program will turn it into something like this:
28 17 29 28 4 13 28 25 30 28 20 31 31 20 32 32 20 33
How to run:
cargo run --release -- ./tests/data/tbox.nt ./tests/data/abox.nt 2