Skip to content

steve-bate/activitypub-ontology

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActivityPub / Mastodon Ontologies

This ontology is an unofficial version of an ActivityPub OWL ontology for experimentation and exploration purposes. It's based on an old Activity Streams ontology that was abandoned in favor of JSON-LD in ActivityPub. I also created a separate ontology for Mastodon (toot) extensions.

The ontology is represented in the RDF Turtle format. It can be viewed and browsed in tools like Protégé.

Changes to the original AS ontology

  • Deprecated terms from the original Activity Streams ontology have been removed.
  • Activity Pub extensions have been added to the Activity Streams namespace to be compatible with the Activity Streams JSON-LD context.
  • An Actor class has been added. Any Object with an inbox is an Actor.
  • I've added type-restricted collections (e.g. OrderedActivityCollection).

Known Issues

  • The OWL range for as:url is challenging because the specification defines it as a union of a class (Object) and a data type (xsd::anyURI). I'm not sure how to model that in OWL or if it's even possible.
  • Several of the terms in the activitystreams JSON-LD context are only mentioned in the ActivityStreams 2.0 Terms document. Most of them have no definition and the document is described as being "internal" and having "no official standing of any kind". I've done my best to guess as a proper interpretation.

ontology dendogram

Disclaimer

I'm not an ontology engineer so I make no claims that this is the best way (or even a good one) to represent the ontologies. I'm using this for my own purposes and releasing it in case someone else has a use for it (or wants to collaborate on improving it).

References

About

An unofficial and experimental OWL ontology for ActivityPub, ActivityStreams 2 and Mastodon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published