added to anc cc
This commit is contained in:
parent
ec20d3d575
commit
87a089f0a0
2 changed files with 19 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
(s/def ::Object
|
(s/def ::Object
|
||||||
(s/and
|
(s/and
|
||||||
::owl/Class
|
::owl/Class
|
||||||
(sh/map-spec (s/keys :opt-un [::id ::type ::attachment ::bcc ::bto]))))
|
(sh/map-spec (s/keys :opt-un [::id ::type ::attachment ::bcc ::bto ::cc ::to]))))
|
||||||
|
|
||||||
;http://www.w3.org/ns/activitystreams#Link
|
;http://www.w3.org/ns/activitystreams#Link
|
||||||
;TODO: definition in progress
|
;TODO: definition in progress
|
||||||
|
@ -73,6 +73,18 @@
|
||||||
::Object
|
::Object
|
||||||
::Link))
|
::Link))
|
||||||
|
|
||||||
|
;http://www.w3.org/ns/activitystreams#cc
|
||||||
|
(s/def ::cc
|
||||||
|
(s/and ::owl/ObjectProperty
|
||||||
|
::Object
|
||||||
|
::Link))
|
||||||
|
|
||||||
|
;http://www.w3.org/ns/activitystreams#to
|
||||||
|
(s/def ::to
|
||||||
|
(s/and ::owl/ObjectProperty
|
||||||
|
::Object
|
||||||
|
::Link))
|
||||||
|
|
||||||
;https://www.w3.org/TR/activitystreams-vocabulary/#dfn-type
|
;https://www.w3.org/TR/activitystreams-vocabulary/#dfn-type
|
||||||
;TODO: this can not be found in the ttl / namespace. Where is this exactly defined?
|
;TODO: this can not be found in the ttl / namespace. Where is this exactly defined?
|
||||||
(s/def ::type
|
(s/def ::type
|
||||||
|
|
|
@ -51,6 +51,12 @@
|
||||||
(deftest bto-test
|
(deftest bto-test
|
||||||
(is (s/valid? ::sut/bto ["http://joe.example.org"])))
|
(is (s/valid? ::sut/bto ["http://joe.example.org"])))
|
||||||
|
|
||||||
|
(deftest cc-test
|
||||||
|
(is (s/valid? ::sut/cc ["http://joe.example.org"])))
|
||||||
|
|
||||||
|
(deftest to-test
|
||||||
|
(is (s/valid? ::sut/to ["http://joe.example.org"])))
|
||||||
|
|
||||||
(deftest Activity-test
|
(deftest Activity-test
|
||||||
(is (s/valid? ::sut/Activity
|
(is (s/valid? ::sut/Activity
|
||||||
{:type "Activity",
|
{:type "Activity",
|
||||||
|
|
Loading…
Reference in a new issue