Skip to content

Instantly share code, notes, and snippets.

View stain's full-sized avatar

Stian Soiland-Reyes stain

View GitHub Profile
{
"@context": "https://w3id.org/ro/crate/1.0/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"conformsTo": {
"@id": "https://w3id.org/ro/crate/1.1"
},
"about": {
{
"@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"about": {
"@id": "./"
},
"conformsTo": {
<html>
<head>
<script type="application/ld+json">
{
"@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
(base) stain@biggie:~/Pictures/whatsapp$ mediainfo VID-20171005-WA0000.mp4
General
Complete name : VID-20171005-WA0000.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp41/mp42/isom)
File size : 3.27 MiB
Duration : 3 min 22 s
Overall bit rate : 135 kb/s
Encoded date : UTC 2017-08-13 16:03:30
@stain
stain / example.xml
Created January 28, 2013 16:54
XSLT for translating OWL ontologies in RDF/XML format (specifically from OWL API/Protege) to a simplistic HTML, with a hyperlink to documentation.html. To use, modify the XML headers of the OWL file as in the example.xml below.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="owl2html.xslt"?>
<rdf:RDF xmlns="http://example.com/ontology/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
@stain
stain / Dataset.yaml
Last active October 8, 2020 02:32
example output from bioschemas/ProfileGenerator
Overwrite Dataset-0.1-DRAFT.html (Y/n): ---
name: Dataset
official_type: Dataset
type_base_url: https://schema.org/
description: "A body of structured information describing some topic(s) of interest."
version: '0.1'
version_date: 20201008T023206
status: DRAFT
spec_type: Profile
group: Dataset
[ NFSMount_Global_Options ]
Proto=tcp6
Retrans=4
Timeo=600
Soft=True
Sec=krb5p:krb5i
Nfsvers=4
root@zfsfun:~# zpool create tank sdb
root@zfsfun:~# zfs create tank/test
root@zfsfun:~# cd /tank/test/
root@zfsfun:/tank/test# for n in 1 2 3 4 5 6 7 8 9 ; do cp -a /boot $n & done
root@zfsfun:/tank/test# zpool status tank
pool: tank
state: ONLINE
@stain
stain / zfs-test.sh
Last active June 19, 2020 13:12
Tested on Ubuntu 20.04 VM
root@zfsfun:/tank/test# zfs --version
zfs-0.8.3-1ubuntu12.1
zfs-kmod-0.8.3-1ubuntu12
root@zfsfun:~# zpool create tank sdb
root@zfsfun:~# zfs create tank/test
root@zfsfun:~# cd /tank/test
@stain
stain / schema-skos-flattened.jsonld
Last active June 12, 2020 16:46
SKOS version of schema.org 8.0 class hierarchy - SPARQL executed on all-frames.nt from https://schema.org/docs/developers.html
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"owl": "http://www.w3.org/2002/07/owl#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"@base": "http://schema.org/"
},
"@graph": [
{