Skip to content

Commit

Permalink
Fix jsonld convert
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Oct 27, 2023
1 parent c708708 commit 7b1cf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/reify.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function reifyTurtle(inputPath, graphName) {
export function convert(inputPath, outputPath, outputFormat, graphName) {
let command = `rdfpipe --output-format ${outputFormat} ${inputPath}`;
if (isJsonLd(inputPath)) {
command = `cat ${inputPath} | jsonld expand | rdfpipe --input-format json-ld --output-format ${outputFormat}`;
command = `cat ${inputPath} | jsonld expand | rdfpipe --input-format json-ld --output-format ${outputFormat} -`;
}
if (graphName && outputFormat === 'application/n-quads') {
command += ` | perl -pe 's|\\Qfile://${inputPath}\\E|${graphName}|g'`;
Expand Down

0 comments on commit 7b1cf67

Please sign in to comment.