aboutsummaryrefslogtreecommitdiffstats
path: root/lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 03:45:41 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 03:45:41 +0100
commit0713986dcd50195c81675d5819e1cf6658a38fee (patch)
tree9e54416abec4d9eed2161df080dc61f210814c1f /lv2
parent7d6c1c188417ddebefab360c8b0390dc354510cb (diff)
downloadlv2-0713986dcd50195c81675d5819e1cf6658a38fee.tar.xz
Add patch:context property
Diffstat (limited to 'lv2')
-rw-r--r--lv2/lv2plug.in/ns/ext/patch/lv2-patch.doap.ttl2
-rw-r--r--lv2/lv2plug.in/ns/ext/patch/patch.h1
-rw-r--r--lv2/lv2plug.in/ns/ext/patch/patch.ttl17
3 files changed, 20 insertions, 0 deletions
diff --git a/lv2/lv2plug.in/ns/ext/patch/lv2-patch.doap.ttl b/lv2/lv2plug.in/ns/ext/patch/lv2-patch.doap.ttl
index cf10aa6..34c091f 100644
--- a/lv2/lv2plug.in/ns/ext/patch/lv2-patch.doap.ttl
+++ b/lv2/lv2plug.in/ns/ext/patch/lv2-patch.doap.ttl
@@ -17,6 +17,8 @@
dcs:changeset [
dcs:item [
rdfs:label "Add patch:accept property."
+ ] , [
+ rdfs:label "Add patch:context property."
]
]
] , [
diff --git a/lv2/lv2plug.in/ns/ext/patch/patch.h b/lv2/lv2plug.in/ns/ext/patch/patch.h
index e78164d..fed6a87 100644
--- a/lv2/lv2plug.in/ns/ext/patch/patch.h
+++ b/lv2/lv2plug.in/ns/ext/patch/patch.h
@@ -48,6 +48,7 @@
#define LV2_PATCH__accept LV2_PATCH_PREFIX "accept" ///< http://lv2plug.in/ns/ext/patch#accept
#define LV2_PATCH__add LV2_PATCH_PREFIX "add" ///< http://lv2plug.in/ns/ext/patch#add
#define LV2_PATCH__body LV2_PATCH_PREFIX "body" ///< http://lv2plug.in/ns/ext/patch#body
+#define LV2_PATCH__context LV2_PATCH_PREFIX "context" ///< http://lv2plug.in/ns/ext/patch#context
#define LV2_PATCH__destination LV2_PATCH_PREFIX "destination" ///< http://lv2plug.in/ns/ext/patch#destination
#define LV2_PATCH__property LV2_PATCH_PREFIX "property" ///< http://lv2plug.in/ns/ext/patch#property
#define LV2_PATCH__readable LV2_PATCH_PREFIX "readable" ///< http://lv2plug.in/ns/ext/patch#readable
diff --git a/lv2/lv2plug.in/ns/ext/patch/patch.ttl b/lv2/lv2plug.in/ns/ext/patch/patch.ttl
index 79ada4e..71c51a3 100644
--- a/lv2/lv2plug.in/ns/ext/patch/patch.ttl
+++ b/lv2/lv2plug.in/ns/ext/patch/patch.ttl
@@ -295,6 +295,23 @@ patch:body
The details of this property's value depend on the type of message it is a
part of.""" .
+patch:context
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:domain patch:Message ;
+ rdfs:comment """The context of properties in this message.
+
+For example, a plugin may have a special context for ephemeral properties which
+are only relevant during the lifetime of the instance and should not be saved
+in state.
+
+The specific uses for contexts are application specific. However, the context
+MUST be a URI, and can be interpreted as the ID of a data model where
+properties should be stored. Implementations MAY have special support for
+contexts, for example by storing in a quad store or serializing to a format
+that supports multiple RDF graphs such as TriG.
+""" .
+
patch:destination
a rdf:Property ,
owl:ObjectProperty ,