Skip to content

Instantly share code, notes, and snippets.

View elf-pavlik's full-sized avatar

elf Pavlik elf-pavlik

View GitHub Profile
<!doctype html><html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Solid Use Cases and Requirements</title>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<style data-fill-with="stylesheet">/******************************************************************************
* Style sheet for the W3C specifications *
*
* Special classes handled by this style sheet include:
*
@elf-pavlik
elf-pavlik / vf-snippets.json
Last active January 7, 2019 18:36
ValueFlow snippets - TextMate snippets syntax
{
"vf:EconomicEvent": {
"prefix": "vffe",
"body": [
"- '@id': ${1:CURIE}",
" '@type': EconomicEvent",
" action: ${2|increment,create,receive,unload,improve,cite,decrement,consume,give,load,accept|}",
" observedQuantity:",
" qudt:unit: unit:${3:unit}",
" qudt:numericValue: ${4:value}",
@elf-pavlik
elf-pavlik / README.md
Created February 12, 2018 20:56 — forked from diegovalle/README.md
Topojson of Mexican municipalities and states

How to create the topojson map:

curl -o estados.zip http://mapserver.inegi.org.mx/MGN/mge2010v5_0.zip
curl -o  municipios.zip http://mapserver.inegi.org.mx/MGN/mgm2010v5_0.zip
unzip estados.zip 
unzip municipios.zip
ogr2ogr states.shp Entidades_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
ogr2ogr municipalities.shp Municipios_2010_5.shp -t_srs "+proj=longlat +ellps=WGS84 +no_defs +towgs84=0,0,0"
topojson -o mx_tj.json -s 1e-7 -q 1e5 states.shp municipalities.shp -p state_code=+CVE_ENT,state_name=NOM_ENT,mun_code=+CVE_MUN,mun_name=NOM_MUN
@elf-pavlik
elf-pavlik / under-question.js
Last active March 7, 2017 21:36
schema.org context '@type': '@id'
[ 'http://schema.org/schemaVersion',
'http://schema.org/acceptsReservations',
'http://schema.org/applicationCategory',
'http://schema.org/applicationSubCategory',
'http://schema.org/featureList',
'http://schema.org/fileFormat',
'http://schema.org/genre',
'http://schema.org/memoryRequirements',
'http://schema.org/menu',
'http://schema.org/releaseNotes',

WebID TLS in Chrome/Chromium

  1. allow Key generation in chrome://settings/content chromium-key-generation
  2. register an account that will generate a cert - eg. https://databox.me/ creates user.crt
  3. on OSX
  • Under 'Keychains' on the left, select 'Login' then 'File' > 'Import Items...'
  • Select certificate in 'My Certificates' and set it to Always Trust osx-keychain
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vf: <https://w3id.org/valueflows/> .
# Classes
vf:Agent
a owl:Class ;
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/#> .
@prefix schema: <http://schema.org/> .
@prefix vf: <https://w3id.org/valueflows/> .
# Classes
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix vf: <https://w3id.org/valueflows/> .
@prefix qudt: <http://qudt.org/1.1/schema/qudt#> .
vf:Process
a owl:Class ;
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vf: <https://w3id.org/valueflows/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
# Classes
foaf:Agent
@prefix vf: <https://w3id.org/valueflows/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
vf:Resource a rdfs:Class .
vf:MaterialItem a rdfs:Class ;
rdfs:subClassOf vf:Resource .
vf:Service a rdfs:Class ;