Skip to content
Snippets Groups Projects
Commit 136fefac authored by Christian Boulanger's avatar Christian Boulanger
Browse files

Added transformation to Bibframe/XML and Bibframe/JSON-LD

parent 3d90df4c
No related branches found
No related tags found
No related merge requests found
Showing
with 98824 additions and 9 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/usr/bin/env bash
bibutils_cmd=$1
ext=${bibutils_cmd#*2}
for file_path in mods/*.xml
do
out_file=$(basename ${file_path/\.mods\.xml/.$ext})
echo "Running $bibutils_cmd to convert $file_path to $ext/$out_file..."
$bibutils_cmd -i utf8 -o utf8 "$file_path" > "$ext/$out_file" 2>&1
done
\ No newline at end of file
#!/usr/bin/env bash
for file_path in mods/*.xml
do
out_file=$(basename ${file_path/-bibl\.MODS\.xml/.ris})
echo "Converted $file_path to ris/$out_file"
xml2ris -i utf8 -o utf8 "$file_path" > "ris/$out_file"
done
\ No newline at end of file
......@@ -4,4 +4,5 @@ schema-automator
quantulum3[classifier]
xmlschema
xmltodict
nameparser
\ No newline at end of file
nameparser
rdflib
\ No newline at end of file
......@@ -457,3 +457,4 @@ AU - Service, Gay Rights
TI - The Bride Wore Pink; Legal Recognition of Our Relationships
ID - ref68
ER -
xml2ris: Processed 68 references.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment