Skip to content

sop, a swiss-army knife for processing RDF and Linked Data on the command line

License

Notifications You must be signed in to change notification settings

pchampin/sophia-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semantic Operation Pipeline

sop aims to be a swiss-army knife for processing RDF and Linked Data on the command line.

sop stands for "Semantic Operation Pipeline", or as a shortcut for Sophia, the library it is based on.

Build from source

With Docker

If you have a working Rust toolchain, you might prefer to build directly with cargo.

docker build -t sop_builder .
docker run --rm -v $(pwd):/outside sop_builder -c "cp /app/target/release/sop /outside"

With Cargo

cargo build --release
cp target/release/sop .

or

cargo install --path .

to install it directly in your path.

Quick start

./sop --help

TODO show how to do basic tasks with sop...

JSON-LD Document loader

By default, the JSON-LD processor will only accept inline contexts. Two document loaders are available via command-line options:

  • a local document loader (--loader_local or -l): this option expects a path to a directory. Every file or subdirectory ITEM of that path is interpreted as a local cache for the https://ITEM/ namespace.

  • a URL document loader (--loader_url or -u): with this option, any context IRI will be fetched (from the Web or from the filesystem, depending). This option is provided for convenience, but is not fit for production as it presents security and privacy issues.

With both options, the local version will be used in priority.

About

sop, a swiss-army knife for processing RDF and Linked Data on the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published