Activity Streams 2.0 Ontology (AS2)¶
The Activity Streams 2.0 Ontology (AS2) is a W3C standard vocabulary for describing social activities, actions, and interactions on the web. It provides a set of classes and properties for modeling activities such as posting, liking, sharing, following, and commenting, as well as the actors, objects, and targets involved. AS2 enables interoperability between social networking platforms, federated social web applications, and activity tracking systems by providing a common semantic framework. The ontology supports extensibility, allowing developers to define custom activity types and properties for domain-specific use cases. AS2 is widely used in decentralized social networks, content syndication, and social analytics, enabling rich representation and exchange of activity data. By standardizing the description of social actions, AS2 facilitates data integration, aggregation, and analysis across diverse social platforms.
Example Usage: Annotate a social networking application with AS2 terms to describe user activities such as posting a status update, liking a photo, or following another user, enabling interoperability with other platforms and activity streams consumers.
Metrics & Statistics¶
Total Nodes |
426 |
Total Edges |
945 |
Root Nodes |
0 |
Leaf Nodes |
120 |
Classes |
107 |
Individuals |
1 |
Properties |
69 |
Maximum Depth |
0 |
Minimum Depth |
0 |
Average Depth |
0.00 |
Depth Variance |
0.00 |
Maximum Breadth |
0 |
Minimum Breadth |
0 |
Average Breadth |
0.00 |
Breadth Variance |
0.00 |
Term Types |
1 |
Taxonomic Relations |
55 |
Non-taxonomic Relations |
1 |
Average Terms per Type |
1.00 |
Usage Example¶
Use the following code to import this ontology programmatically:
from ontolearner.ontology import AS2
ontology = AS2()
ontology.load("path/to/AS2-ontology.ttl")
# Extract datasets
data = ontology.extract()
# Access specific relations
term_types = data.term_typings
taxonomic_relations = data.type_taxonomies
non_taxonomic_relations = data.type_non_taxonomic_relations