Activity Streams 2.0 Ontology (AS2)¶
The Activity Streams 2.0 Ontology (AS2) is a W3C standard vocabulary and syntax for describing social activities, actions, interactions, and content on the Web [1] [2]. It provides a set of classes and properties for modeling activities such as posting, liking, sharing, following, creating, updating, and deleting, as well as the actors, objects, targets, collections, and links involved in those activities [1]. AS2 enables interoperability between social networking platforms, federated social web applications, content syndication systems, and activity tracking systems by providing a common semantic framework for representing activity data [1] [2]. The vocabulary supports extensibility, allowing developers to use additional vocabularies or define specialized activity types and properties for domain-specific use cases [1]. AS2 is used in decentralized social web systems and social data exchange, enabling rich representation, publication, aggregation, and analysis of activity streams across platforms [1] [2]. By standardizing the description of social actions and their related entities, AS2 facilitates data integration, interoperability, and machine-readable exchange of social activity information [1].
Example Usage: Annotate a social networking application with AS2 terms to describe user activities such as posting a status update, liking a photo, following another user, or sharing content. This enables interoperability with other platforms, federated social web applications, and activity stream consumers [1] [2].
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