|
|
|
@ -17,6 +17,14 @@
|
|
|
|
|
::owl/DeprecatedProperty
|
|
|
|
|
::xsd/anyURI))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#result
|
|
|
|
|
(s/def ::result
|
|
|
|
|
(s/and
|
|
|
|
|
::owl/ObjectProperty
|
|
|
|
|
::Class
|
|
|
|
|
::Object
|
|
|
|
|
::Link))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#attachment
|
|
|
|
|
(s/def ::attachment
|
|
|
|
|
(s/and
|
|
|
|
@ -25,34 +33,40 @@
|
|
|
|
|
::Link
|
|
|
|
|
::Object))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#result
|
|
|
|
|
(s/def ::result
|
|
|
|
|
(s/and
|
|
|
|
|
::owl/ObjectProperty
|
|
|
|
|
::Class
|
|
|
|
|
::Object
|
|
|
|
|
::Link))
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#Relationship
|
|
|
|
|
;TODO: definition in progress
|
|
|
|
|
(s/def ::Relationship
|
|
|
|
|
(s/and (s/keys :opt-un [::object])))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#Activity
|
|
|
|
|
;TODO: definition in progress
|
|
|
|
|
(s/def ::Activity
|
|
|
|
|
(s/and ::Object
|
|
|
|
|
(s/keys :opt-un [::result])))
|
|
|
|
|
(s/keys :opt-un [::result
|
|
|
|
|
::object])))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#Object
|
|
|
|
|
;TODO: definition in progress
|
|
|
|
|
(s/def ::Object (s/keys :opt-un [::id ::attachment]))
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#object
|
|
|
|
|
(s/def ::object
|
|
|
|
|
(s/and
|
|
|
|
|
::owl/ObjectProperty
|
|
|
|
|
::Class
|
|
|
|
|
(s/or ::Object
|
|
|
|
|
::Link)))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#object
|
|
|
|
|
(s/def ::Object
|
|
|
|
|
(s/keys :opt-un [::id ::Class]))
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#Link
|
|
|
|
|
;TODO: definition in progress
|
|
|
|
|
(s/def ::Link (s/keys :opt-un [::id]))
|
|
|
|
|
|
|
|
|
|
;TODO: There is no as:Class! Why do we need this?
|
|
|
|
|
;Answer jem: I do not want to enhance owl/Class inline from here.
|
|
|
|
|
(s/def
|
|
|
|
|
::Class
|
|
|
|
|
(s/merge ::owl/Class
|
|
|
|
|
(s/keys :opt-un [::id])))
|
|
|
|
|
(s/keys :opt-un [::id ::object])))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;http://www.w3.org/ns/activitystreams#Like
|
|
|
|
|