External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4KB

  1. From 8817d4c13380da4e06fe9497c41a251038eaf5d4 Mon Sep 17 00:00:00 2001
  2. From: David Robillard <d@drobilla.net>
  3. Date: Fri, 12 Mar 2021 23:36:23 -0500
  4. Subject: [PATCH] Fix type and range of patch:value
  5. This was obviously wrong. I'm not sure how this happened, probably a
  6. copy/paste mistake.
  7. ---
  8. lv2/patch/patch.ttl | 4 +---
  9. wscript | 3 +++
  10. 2 files changed, 4 insertions(+), 3 deletions(-)
  11. diff --git a/lv2/patch/patch.ttl b/lv2/patch/patch.ttl
  12. index 78040094..0fb2012f 100644
  13. --- a/lv2/patch/patch.ttl
  14. +++ b/lv2/patch/patch.ttl
  15. @@ -230,11 +230,9 @@ patch:subject
  16. rdfs:comment "The subject this message applies to." .
  17. patch:value
  18. - a rdf:Property ,
  19. - owl:DatatypeProperty ;
  20. + a rdf:Property ;
  21. rdfs:label "value" ;
  22. rdfs:domain patch:Set ;
  23. - rdfs:range rdf:Property ;
  24. rdfs:comment "The value of a property in a patch:Set message." .
  25. patch:wildcard
  26. diff --git a/wscript b/wscript
  27. index 6ecb0d92..37a24e86 100644
  28. --- a/wscript
  29. +++ b/wscript
  30. @@ -686,6 +686,9 @@ def test_vocabularies(check, specs, files):
  31. # Check that all properties are either datatype or object properties
  32. for r in sorted(model.triples([None, rdf.type, rdf.Property])):
  33. subject = r[0]
  34. + if str(subject) == 'http://lv2plug.in/ns/ext/patch#value':
  35. + continue # patch:value is just a "promiscuous" rdf:Property
  36. +
  37. types = list(model.objects(subject, rdf.type))
  38. check(lambda: ((owl.DatatypeProperty in types) or