diff --git a/data/source/timrdf.github.com/agency.md b/data/source/timrdf.github.com/agency.md new file mode 100644 index 00000000..dd57b2ca --- /dev/null +++ b/data/source/timrdf.github.com/agency.md @@ -0,0 +1,3 @@ +SD Dataset: 'timrdf.github.com' + +Homepage: https://github.com/timrdf diff --git a/data/source/timrdf.github.com/file-formats/dataset.md b/data/source/timrdf.github.com/file-formats/dataset.md new file mode 100644 index 00000000..e18ac6b1 --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/dataset.md @@ -0,0 +1,3 @@ +SD Dataset: 'timrdf.github.com/file-formats' + +File formats that I made up. diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/manual/H0n3y-BadgeR.sh b/data/source/timrdf.github.com/file-formats/version/2021-10-30/manual/H0n3y-BadgeR.sh new file mode 100644 index 00000000..21845c99 --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/2021-10-30/manual/H0n3y-BadgeR.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +gnaw () { + # Determine what properties are or could be declared about the subject. + # Example contents of $subject that finds both 'num_wires' and '#network': + # - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # num_wires=3 + # #3> <#network> prov:specializationOf ; + # #3> rdfs:comment "The first three parts of an IP" . + # #network=192.168.1 + # - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # https://github.com/timrdf/csv2rdf4lod-automation/wiki/H0n3y-BadgeR + local subject="$1" + # ^ File path of a resource represention describing subject of interest. + grep "^.*=" $subject | sed 's/=.*$//' + # properties beginning with '#' are not declared but could be. +} + +splash () { + # Export every declared property into the Bash execution scope. + # This allows a property e.g. '^num_wires=3` to be available as $num_wires. + # https://github.com/timrdf/csv2rdf4lod-automation/wiki/H0n3y-BadgeR + local subject="$1" + # ^ File path of a resource represention describing subject of interest. + alias=${subject%.properties} && alias=`basename "$alias"` # => 'nas' + >&2 echo "\"$alias\" (according to some of the $(wc -l "$subject" | awk '{print $1}') bytes within $subject)" + tab=$(echo "$alias" | sed 's/./ /g') + for predicate in $(gnaw "$subject" | grep -v '^#'); do + # Only those that are actually declared --^^ + object=$(bite "$subject" "$predicate") + export $predicate="$object" # TODO: could we just have sourced the thing? :-) + >&2 echo "$tab $predicate: $object" + done +} + +bite () { + # Determine the [object] value of a given property of a given subject. + # https://github.com/timrdf/csv2rdf4lod-automation/wiki/H0n3y-BadgeR + local subject="$1" + # ^ File path of a resource represention describing subject of interest. + local predicate="$2" + # ^ Relative path within $subject to a particular [object] value to obtain. + grep "^$predicate=" $subject | sed 's/^.*=//;s/\s*$//' +} + +# https://github.com/timrdf/csv2rdf4lod-automation/wiki/H0n3y-BadgeR +err='BadgeR did not find a value for this property; check the property file and try again.' + +# echo -e this to instantiate boilerplate: +tuft='#!/bin/bash\n#3> <> dcterms:format .' diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Honey-Badgers.youtube.webloc b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Honey-Badgers.youtube.webloc new file mode 100644 index 00000000..bf4f04ee --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Honey-Badgers.youtube.webloc @@ -0,0 +1,8 @@ + + + + + URL + https://www.youtube.com/watch?v=box0-koAuIY + + diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Leet.wikipedia.webloc b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Leet.wikipedia.webloc new file mode 100644 index 00000000..321aec1b --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Leet.wikipedia.webloc @@ -0,0 +1,8 @@ + + + + + URL + https://simple.wikipedia.org/wiki/Leet + + diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.pdf b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.pdf new file mode 100644 index 00000000..d2d6e0fe Binary files /dev/null and b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.pdf differ diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.webloc b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.webloc new file mode 100644 index 00000000..c39dfe4e --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Properties-File-Format.webloc @@ -0,0 +1,8 @@ + + + + + URL + https://docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/s0204propertiesfileformat01.html + + diff --git a/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Writing-a-Simple-Bash-Script.webloc b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Writing-a-Simple-Bash-Script.webloc new file mode 100644 index 00000000..0d024a4e --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/2021-10-30/source/Writing-a-Simple-Bash-Script.webloc @@ -0,0 +1,8 @@ + + + + + URL + https://www.linux.com/training-tutorials/writing-simple-bash-script/ + + diff --git a/data/source/timrdf.github.com/file-formats/version/versions.md b/data/source/timrdf.github.com/file-formats/version/versions.md new file mode 100644 index 00000000..91bf684e --- /dev/null +++ b/data/source/timrdf.github.com/file-formats/version/versions.md @@ -0,0 +1,12 @@ +SD Dataset: timrdf.github.com/file-formats + +versions: + +# 2021-10-30 +* version identifier chosen as date created. +* New decade, new format! +* Defines and provides parsers for both BadgeP and H0n3yBadgeR formats. + +# 2021-10-04 +* version identifier chosen as date created. +* First commit of [wiki page](https://github.com/timrdf/csv2rdf4lod-automation/wiki/tic-turtle-in-comments) per [history](https://github.com/timrdf/csv2rdf4lod-automation/wiki/tic-turtle-in-comments/_history) and [tic.sh](https://github.com/timrdf/csv2rdf4lod-automation/commits/master/bin/util/tic.sh).