Skip to content

Instantly share code, notes, and snippets.

@milt
milt / keybase.md
Created September 24, 2014 17:52
Keybase Claim

Keybase proof

I hereby claim:

  • I am milt on github.
  • I am milt (https://keybase.io/milt) on keybase.
  • I have a public key whose fingerprint is EBEE AC25 2F31 2BDD 6F23 8692 42A3 2F59 D253 09FA

To claim this, I am signing this object:

(def history (Html5History.))
(.setUseFragment history false)
(.setPathPrefix history "")
(.setEnabled history true)
(let [navigation (listen history EventType/NAVIGATE)]
(go
(while true
(let [token (.-token (<! navigation))]
(secretary/dispatch! token)))))
@milt
milt / ontology.ttl
Created May 28, 2019 15:31
Possible xAPI ontology with sub-namespaces
@prefix : <https://w3id.org/xapi/ontology#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix verb: <https://w3id.org/xapi/ontology/verb#> .
@prefix actor: <https://w3id.org/xapi/ontology/actor#> .
@milt
milt / ontology.jsonld
Last active May 28, 2019 15:37
possible xapi ontology - jsonld for playground
{
"@graph": [
{
"@id": "http://www.w3.org/2002/07/owl#sameAs",
"@type": "http://www.w3.org/2002/07/owl#AnnotationProperty"
},
{
"@id": "http://xmlns.com/foaf/0.1/Agent",
"@type": [
"http://www.w3.org/2002/07/owl#Class",
@milt
milt / statement-context.jsonld
Last active May 30, 2019 14:40
Prospective xAPI statement JSON-LD context (extensions not implemented yet, turned off)
{
"@context": {
"@version": 1.1,
"xapi": "https://w3id.org/xapi/ontology#",
"xapi-statement": "https://w3id.org/xapi/ontology/statement#",
"xapi-sub-statement": "https://w3id.org/xapi/ontology/sub-statement#",
"xapi-statement-context": "https://w3id.org/xapi/ontology/statement/context#",
"xapi-statement-result": "https://w3id.org/xapi/ontology/statement/result#",
"xapi-verb": "https://w3id.org/xapi/ontology/verb#",
"xapi-actor": "https://w3id.org/xapi/ontology/actor#",