8000 Add collection properties and relationship types by jasnell · Pull Request #191 · w3c/activitystreams · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions activitystreams-core/activitystreams2-context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"Read": "as:Read",
"Move": "as:Move",
"Travel": "as:Travel",
"isBlocking": "as:isBlocking",
"isIgnoring": "as:isIgnoring",
"isFollowing": "as:isFollowing",
"isFollowedBy": "as:isFollowedBy",
"isMemberOf": "as:isMemberOf",
"subject": {
"@id": "as:subject",
"@type": "@id"
Expand Down Expand Up @@ -182,8 +187,20 @@
"@id": "as:provider",
"@type": "@id"
},
"replies": {
"@id": "as:replies",
"inbox": {
"@id": "as:inbox",
"@type": "@id"
},
"outbox": {
"@id": "as:outbox",
"@type": "@id"
},
"relationships": {
"@id": "as:relationships",
"@type": "@id"
},
"store": {
"@id": "as:store",
"@type": "@id"
},
"result": {
Expand Down
86 changes: 80 additions & 6 deletions activitystreams-vocabulary/activitystreams2.owl
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ as:provider a owl:ObjectProperty,
owl:unionOf ( as:Object as:Link )
] .

as:replies a owl:ObjectProperty ;
rdfs:label "replies"@en ;
rdfs:range as:Collection ;
rdfs:domain as:Object .

as:result a owl:ObjectProperty ;
rdfs:label "result"@en ;
rdfs:domain as:Activity ;
Expand Down Expand Up @@ -366,7 +361,7 @@ as:relationship a owl:ObjectProperty;
rdfs:comment "On a Relationship object, describes the type of relationship"@en;
rdfs:subPropertyOf rdf:predicate ;
rdfs:domain as:Relationship ;
rdfs:range rdf:Property .
rdfs:range owl:Thing .

as:describes a owl:ObjectProperty,
owl:FunctionalProperty;
Expand All @@ -375,6 +370,85 @@ as:describes a owl:ObjectProperty,
rdfs:domain as:Profile ;
rdfs:range as:Object .

#################################################################
#
# Collection properties
#
#################################################################

as:CollectionProperty a rdfs:Class ;
rdfs:label "CollectionProperty"@en ;
rdfs:comment "The class of Collection Properties" ;
rdfs:subClassOf owl:ObjectProperty .

as:replies a as:CollectionProperty ;
rdfs:label "replies"@en ;
rdfs:comment "A collection of known responses to the object."@en ;
rdfs:range [
a owl:Class ;
owl:unionOf ( as:Link as:Collection )
] ;
rdfs:domain as:Object .

as:inbox a as:CollectionProperty ;
rdfs:label "inbox"@en;
rdfs:comment "A collection of objects directed at an object using implicit or explicit audience targeting."@en ;
rdfs:range [
a owl:Class ;
owl:unionOf ( as:Link as:Collection )
] ;
rdfs:domain as:Object .

as:outbox a as:CollectionProperty ;
rdfs:label "outbox"@en;
rdfs:comment "A collection of objects attributed to the object."@en ;
rdfs:range [
a owl:Class ;
owl:unionOf ( as:Link as:Collection )
] ;
rdfs:domain as:Object .

as:store a as:CollectionProperty ;
rdfs:label "objects"@en;
rdfs:comment "A collection of objects 'stored' for an actor."@en ;
rdfs:range [
a owl:Class ;
owl:unionOf ( as:Link as:Collection )
] ;
rdfs:domain as:Actor .

as:relationships a as:CollectionProperty ;
rdfs:label "relationships"@en;
rdfs:comment "A collection of Relationships associated with the object"@en ;
rdfs:range [
a owl:Class ;
owl:unionOf ( as:Link as:Collection )
] ;
rdfs:domain as:Object .

#################################################################
#
# Relationship Types (for use with as:relationship)
#
#################################################################
as:RelationshipProperty a owl:Class ;
rdfs:subClassOf rdf:Property .
as:isBlocking a as:RelationshipProperty ;
rdfs:label "isBlocking"@en;
rdfs:comment "The subject (typically an as:Actor) is blocking the object"@en .
as:isIgnoring a as:RelationshipProperty ;
rdfs:label "isIgnoring"@en;
rdfs:comment "The subject (typically an as:Actor) is ignoring the object"@en .
as:isFollowing a as:RelationshipProperty ;
rdfs:label "isFollowing"@en;
rdfs:comment "The subject (typically an as:Actor) is following the object"@en .
as:isFollowedBy a as:RelationshipProperty ;
rdfs:label "isFollowedBy"@en;
rdfs:comment "The subject (any as:Object) is being followed by the object (typically an as:Actor)"@en .
as:isMemberOf a as:RelationshipProperty ;
rdfs:label "isMemberOf"@en ;
rdfs:comment "The subject is a member of the object (typically an as:Group or as:Organization)" .

#################################################################
#
# Data properties
Expand Down
Loading
0