Skip to content

Instantly share code, notes, and snippets.

View elf-pavlik's full-sized avatar

elf Pavlik elf-pavlik

View GitHub Profile
<rdf:RDF xmlns="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://www.w3.org/2000/01/rdf-schema#">
<rdf:Description rdf:about="">
<dc:title>Issue Tracking Ontology</dc:title>
<dct:creator rdf:resource="http://www.w3.org/People/Berners-Lee/card#i"/>
@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#> .
@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 ;
@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 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 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 vf: <https://w3id.org/valueflows/> .
# Classes
vf:Agent
a owl:Class ;

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
@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',
@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