Skip to content

Instantly share code, notes, and snippets.

View csarven's full-sized avatar
👽
https://csarven.ca/#i

Sarven Capadisli csarven

👽
https://csarven.ca/#i
View GitHub Profile
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>
PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>
CONSTRUCT {
?resource skos:prefLabel ?prefLabel .
}
WHERE {
#$ diff cc-ns.original.html cc-ns.fixed.html
14c14
< <h1><a href="/"><span><img src="https://creativecommons.org/images/logo_trademark_250.png" alt="Creative Commons" id="cc-title" border="0"/></a></h1>
---
> <h1><a href="/"><img src="https://creativecommons.org/images/logo_trademark_250.png" alt="Creative Commons" id="cc-title" border="0"/></a></h1>
241a242
> </div>
@csarven
csarven / inbox.html
Last active December 19, 2015 12:18
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8" />
<title>Inbox timeline</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
/* ceur-ws.css defines how links are displayed and */
/* possibly some other details of page rendering within */
/* CEUR-WS.org. */
/* Copyright 2002-2015 by Manfred Jeusfeld */
/* Use permitted within CEUR-WS.org. */
/* Modification permitted for members of the CEUR-WS TEAM.*/
/* */
/* THIS STYLE FILE IS FOR EXCLUSIVE USE WITHIN */
/* CEUR-WS.ORG! DO NOT COPY IT AS A WHOLE OR AS PARTS. */
/* IN PARTICULAR, THE TAGS CEUR* DEFINED BELOW MAY NOT BE */
/* ceur-ws.css defines how links are displayed and */
/* possibly some other details of page rendering within */
/* CEUR-WS.org. */
/* Copyright 2002-2015 by Manfred Jeusfeld */
/* Use permitted within CEUR-WS.org. */
/* Modification permitted for members of the CEUR-WS TEAM.*/
/* */
/* THIS STYLE FILE IS FOR EXCLUSIVE USE WITHIN */
/* CEUR-WS.ORG! DO NOT COPY IT AS A WHOLE OR AS PARTS. */
/* IN PARTICULAR, THE TAGS CEUR* DEFINED BELOW MAY NOT BE */
#!/bin/bash
git clone https://github.com/nicola/simplerdf.git
cd simplerdf
sudo npm install rdf-store-ldp -g
sudo npm install rdf-ext -g
sudo npm install browserify -g
browserify index.js > simplerdf.js
Issued to: E=info@csarven.ca,CN=Sarven Capadisli,OU=http://csarven.ca/,O=http://csarven.ca/
Serial Number: 00:95:53:F3:96:F3:5A:05:B7
Valid from 2012-12-08 15:11:55 to 2112-11-14 15:11:55
Email: info@csarven.ca
Issued by: E=info@csarven.ca,CN=Sarven Capadisli,OU=http://csarven.ca/,O=http://csarven.ca/
Stored in: Software Security Device
Request==========
Accept
text/turtle,text/n3,application/rdf+xml
@csarven
csarven / useSchemaOrg.sed
Last active February 7, 2016 19:38
Replacing non-schema.org terms (in Linked Research) with schema.org
s/biblio:Paper/schema:ScholarlyArticle/g
s/bibo:shortTitle/schema:alternateName/g
s/cal:dtend/schema:endDate/g
s/cal:dtstart/schema:startDate/g
s/cal:location/schema:location/g
s/cal:Vevent/schema:Event/g
s/cc:license/schema:license/g
s/dcterms:abstract/schema:abstract/g
s/dcterms:contributor/schema:contributor/g
s/dcterms:creator/schema:creator/g
@csarven
csarven / gist:b1af825f489796f28b6d
Last active August 29, 2015 14:20
gulp browser output
$ uname -a
Linux nevrasc 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ gulp -v
[18:02:30] CLI version 3.8.11
[18:02:30] Local version 3.8.11
$ gulp browser
[18:01:48] Using gulpfile /var/www/rdfstore-js/gulpfile.js
[18:01:48] Starting 'parseGrammar'...
$('#views.lr button').on('click', function(event) {
var selected = $(this);
$('head link[rel~="stylesheet"]:not([href$="lr.css"])').each(function(i, stylesheet) {
if ($(this).prop('title').toLowerCase() == selected.text().toLowerCase()) {
var s = $('<link>').prop({type: 'text/css', rel: 'stylesheet', href: $(this).prop('href'), title: $(this).prop('title')});
}
else {
var s = $('<link>').prop({type: 'text/css', rel: 'stylesheet alternate', href: $(this).prop('href'), title: $(this).prop('title')});
}