This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # usage: rdfdiff <file1> <file2> [git-diff options...] | |
| # set base URI with the BASE environment variable, if necessary | |
| # requires a "release" build of sophia examples 'parse' and 'canonicalize' | |
| # in a clone of https://github.com/pchampin/sophia_rs | |
| # indicated by SOPHIA_HOME (defaults to ~/dev/sophia_rs) | |
| # | |
| # To produce them, run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # dependency: https://github.com/pchampin/sophia-cli | |
| sop parse "$1" --base x-dummy-base: ! canonicalize | |
| # NB: we use a dummy base so that the result does not depend on the location of "$1". | |
| # Indeed, I use this script primarily to re-process RDF files before git diff, | |
| # so the different copies of the *same* files should not be considered to have different bases. | |
| # | |
| # Snippet from by ~/.gitconfig file |
OlderNewer