AKSW / xodx

An implementation of Semantic Pingback and PuSH for a DSSN
http://aksw.org/Projects/Xodx
GNU General Public License v2.0
5 stars 6 forks source link

Fix verbs and object-types #20

Open white-gecko opened 11 years ago

white-gecko commented 11 years ago

In the activitystrea.ms atom specification examples [1] one can see that verbs and object-types are no URIs. So we should also export the feeds with only a verb/object-type instead of URIs and do the mapping to aair: [2] internally.

[1] http://activitystrea.ms/specs/atom/1.0/#examples [2] http://xmlns.notu.be/aair#

white-gecko commented 11 years ago

In the Specs we see:

An IRI reference that identifies the action of the activity. This value MUST be an absolute IRI, or a IRI relative to the base IRI of http://activitystrea.ms/schema/1.0/. An Activity construct MUST have exactly one verb. (http://activitystrea.ms/specs/atom/1.0/#activity.verb)

An IRI reference that identifies the type of object. This value MUST be an absolute IRI, or a IRI relative to the base IRI of http://activitystrea.ms/schema/1.0/. An Object construct MAY have a type, but MUST NOT have more than one. (http://activitystrea.ms/specs/atom/1.0/#object.type)

So it MUST be an URI/IRI or just the verb/type, if it is from the activity namespace!

But we should export them with the activity namespace (http://activitystrea.ms/schema/1.0/) instead of the aair namespace (http://activitystrea.ms/schema/1.0/).