diff show/dance2008/patch-rules.n3 @ 439:08a2fcf5eea1

prepare patch, and write a new cwm rule (instead of the patch2n3 convertor from before)
author drewp@bigasterisk.com
date Fri, 13 Jun 2008 04:02:56 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/show/dance2008/patch-rules.n3	Fri Jun 13 04:02:56 2008 +0000
@@ -0,0 +1,18 @@
+@prefix ch: <http://light9.bigasterisk.com/theater/piedmont/channel/> .
+@prefix dmx: <http://light9.bigasterisk.com/dmx/> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix l9: <http://light9.bigasterisk.com/> .
+@prefix log: <http://www.w3.org/2000/10/swap/log#>.
+@prefix string: <http://www.w3.org/2000/10/swap/string#>.
+
+@prefix prep: <http://light9.bigasterisk.com/prepStatements/> .
+
+{ 
+  [prep:name ?name; prep:output ?c] . 
+
+  ch: log:uri ?channelNamespace .
+  (?channelNamespace ?name) string:concatenation ?uriString . 
+  ?chanUri log:uri ?uriString . 
+} => { 
+  ?chanUri a l9:Channel; rdfs:label ?name; l9:output ?c . 
+} .