Skip to content

Instantly share code, notes, and snippets.

elf Pavlik elf-pavlik

Block or report user

Report or block elf-pavlik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elf-pavlik
elf-pavlik / vf-snippets.json
Last active Jan 7, 2019
ValueFlow snippets - TextMate snippets syntax
View vf-snippets.json
{
"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 Feb 12, 2018 — forked from diegovalle/README.md
Topojson of Mexican municipalities and states
View README.md

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 Mar 7, 2017
schema.org context '@type': '@id'
View under-question.js
[ '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',
View webid-tls-chromium.md

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
View loose-input.ttl
@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 ;
View vf:Agent.ttl
@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
View valueflows.ttl
@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 ;
View vf:Process.ttl
@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
View vf:Resrouce.ttl
@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 ;
View cco.ttl
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns0: <http://purl.org/vocab/vann/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ns1: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
You can’t perform that action at this time.