Skip to content

Instantly share code, notes, and snippets.

@mathiasp
mathiasp / cactus-part.omn
Created March 9, 2019 11:06
Ausschnitt aus händisch erstellter Ontologie - nur Kategorien
Class: OrderCategory
SubClassOf: gist:Category
Annotations: rdfs:comment "Category of orders, use with Order -> gist:categorizedBy -> OrderCategory"
Individual: MobileProductsAllowed
Types: OrderCategory
Annotations: rdfs:comment "find old flag in rdfs:label"
Annotations: rdfs:label "A"
Individual: MobileAndHardwareProductsAllowed
Types: OrderCategory
Annotations: rdfs:comment "find old flag in rdfs:label"
@mathiasp
mathiasp / gist.clj
Created March 8, 2019 09:50
How do I import gist in tawny-owl?
(ns csd.gist
(:require [tawny
[owl :as owl]
[read :as rd]
[reasoner :as rs]
[lookup :as lk]])
(:import
(org.semanticweb.owlapi.model
OWLOntologyID)))
@mathiasp
mathiasp / gist:6450181
Created September 5, 2013 13:36
Still trying to understand how binding / go blocks interact
(defn start-loop []
(binding [srh/*remote-uri* "/opnenablement/_shoreleave"]
(go (while true
(let [e (<! dirty_c)]
(dommy/set-text! out "SAVED!")
;;; this does not work, goes to /_shoreleave
;;; allmost regardless of where the (binding ... is
(srm/rpc (save-config "myConfig") [result]
:on-success (js/alert (str "Success: " result))
:on-error (js/alert (str "Error: " result)))
(ns opnenablement.ui
(:require-macros
[cljs.core.async.macros :refer [go]]
[shoreleave.remotes.macros :as srm]
[dommy.macros :refer [sel sel1]])
(:require
[cljs.core.async :refer [>! <! alts! puts! put! chan timeout dropping-buffer]]
[shoreleave.remotes.http-rpc :as srh]
[dommy.core :as dommy]))