I hereby claim:
- I am joeltg on github.
- I am joelg (https://keybase.io/joelg) on keybase.
- I have a public key ASAT5TnVT1VjbgzrxQPWCTHhakVO_WvhLQ2fWl2pFMnUPwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const jsonld = require("jsonld") | |
const dagPB = require("ipld-dag-pb") | |
const dagOptions = { format: "dag-pb", hashAlg: "sha2-256" } | |
function parseJSON(bytes, callback) { | |
const string = bytes.toString("utf8") | |
let res = null, | |
error = null | |
try { |
Split into two stages to allow IPLD to develop further:
dweb:/ipfs/Qm...
, using fragments for nodes within documents: dweb:/ipfs/Qm...#node-id
files
API, andEvery interface implementation is a class with at least two static properties type: string[]
and data: {[property: string]: string}
, and (depending on the interface(s) it implements) zero or more public async functions. Every interface class will be constructed with new Class(options: {})
.
Indicates a service that manages some context-scoped concept of identity
type: ["http://underlay.mit.edu/interface/namespace"]
data.namespace: string
"http://www.wikidata.org/"
apt update | |
apt upgrade -y | |
apt install -y make git jq | |
wget https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.11.1.linux-amd64.tar.gz | |
rm go1.11.1.linux-amd64.tar.gz | |
echo "export PATH=\$PATH:/usr/local/go/bin:/root/go/bin" >> /etc/profile | |
source /etc/profile | |
go get -u github.com/ipfs/ipfs-update | |
ipfs-update install latest |
I'm going to use the words "schema" and "ontology" interchangeably and there's nothing you can do to stop me.
There's lots of structured data out in the wild, but it's only structured internally, relative to itself. For example, IMDB will let you download CSVs of its archives, but they're in IMDB's own schema, with made-up IMDB names for all the columns. If you're consuming their data, you still need to read their interface docs and transform the data into an externally compatible format. Their data is only usable intentionally.
What we'd really love is for data to also be usable incidentally - reachable, retrievable, and interpretable from outside worlds without any human in the loop. One way to achieve this is through standardization (getting IMDB to switch all their property names to fully-qualified URIs in some standardized movie-ish ontology), but a far more practical & scalable strategy is through self-des
package loader | |
import ( | |
"io" | |
"net/url" | |
ipfs "github.com/ipfs/go-ipfs-api" | |
"github.com/piprate/json-gold/ld" | |
) |
if ( $post->post_parent ) | |
{ | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
} | |
else | |
{ | |
wp_redirect( site_url(), 301 ) ); | |
} | |
die(); |
// this is now a module: | |
// https://github.com/WebReflection/backtick-template#es2015-backticks-for-es3-engines-- | |
var template = require('backtick-template'); | |
// just string | |
const info = 'template'; | |
`some ${info}` === template('some ${info}', {info}); |
using System; | |
using System.IO; | |
using System.Net; | |
public static class FileDownloader | |
{ | |
private const string GOOGLE_DRIVE_DOMAIN = "drive.google.com"; | |
private const string GOOGLE_DRIVE_DOMAIN2 = "https://drive.google.com"; | |
// Normal example: FileDownloader.DownloadFileFromURLToPath( "http://example.com/file/download/link", @"C:\file.txt" ); |