diff --git a/light9/web/graph.coffee b/light9/web/graph.coffee
--- a/light9/web/graph.coffee
+++ b/light9/web/graph.coffee
@@ -192,7 +192,7 @@ class window.SyncedGraph
@_autoDeps.graphChanged(patch)
getObjectPatch: (s, p, newObject, g) ->
- # send a patch which removes existing values for (s,p,*,c) and
+ # make a patch which removes existing values for (s,p,*,c) and
# adds (s,p,newObject,c). Values in other graphs are not affected.
existing = @graph.findByIRI(s, p, null, g)
return {
@@ -300,3 +300,9 @@ class window.SyncedGraph
nextNumberedResource: (base) ->
@nextNumberedResources(base, 1)[0]
+ contextsWithPattern: (s, p, o) ->
+ ctxs = []
+ for q in @graph.find(s, p, o)
+ ctxs.push(q.graph)
+ return _.unique(ctxs)
+
diff --git a/light9/web/resource-display.html b/light9/web/resource-display.html
--- a/light9/web/resource-display.html
+++ b/light9/web/resource-display.html
@@ -1,11 +1,37 @@
+
+
+
{{label}}
-
+
+
+
+
+ New label:
+
+
+
+
+