Skip to content

Instantly share code, notes, and snippets.

@tetron
Created October 28, 2024 03:47
Show Gist options
  • Save tetron/2714b63983063548af4705a7cf9defa2 to your computer and use it in GitHub Desktop.
Save tetron/2714b63983063548af4705a7cf9defa2 to your computer and use it in GitHub Desktop.
very incomplete conversion of activitystreams2.owl to schema salad representation
[
{
"type": "record",
"name": "Accept",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Accept",
"doc": "Actor accepts the Object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Activity",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Activity",
"doc": "An Object representing some form of Action that has been taken",
"extends": "Object",
"fields": [
{
"name": "actor",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#actor",
"type": [
"Object",
"Link"
]
},
{
"name": "result",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#result",
"type": [
"Object",
"Link"
]
},
{
"name": "target",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#target",
"type": [
"Object",
"Link"
]
},
{
"name": "origin",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#origin",
"type": [
"Object",
"Link"
]
},
{
"name": "instrument",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#instrument",
"type": [
"Object",
"Link"
]
},
{
"name": "verb",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#verb",
"type": "string"
}
]
},
{
"type": "record",
"name": "Block",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Block",
"extends": "Ignore",
"fields": []
},
{
"type": "record",
"name": "IntransitiveActivity",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#IntransitiveActivity",
"doc": "An Activity that has no direct object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Add",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Add",
"doc": "To Add an Object or Link to Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Announce",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Announce",
"doc": "Actor announces the object to the target",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Application",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Application",
"doc": "Represents a software application of any sort",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Arrive",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Arrive",
"doc": "To Arrive Somewhere (can be used, for instance, to indicate that a particular entity is currently located somewhere, e.g. a \"check-in\")",
"extends": "IntransitiveActivity",
"fields": []
},
{
"type": "record",
"name": "Article",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Article",
"doc": "A written work. Typically several paragraphs long. For example, a blog post or a news article.",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Audio",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Audio",
"doc": "An audio file",
"extends": "Document",
"fields": []
},
{
"type": "record",
"name": "Collection",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Collection",
"doc": "An ordered or unordered collection of Objects or Links",
"extends": "Object",
"fields": [
{
"name": "current",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#current",
"type": [
"CollectionPage",
"Link"
]
},
{
"name": "first",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#first",
"type": [
"CollectionPage",
"Link"
]
},
{
"name": "items",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#items",
"type": [
"OrderedItems"
]
},
{
"name": "last",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#last",
"type": [
"CollectionPage",
"Link"
]
},
{
"name": "totalItems",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#totalItems",
"type": "int"
}
]
},
{
"type": "record",
"name": "CollectionPage",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#CollectionPage",
"doc": "A subset of items from a Collection",
"extends": "Collection",
"fields": [
{
"name": "next",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#next",
"type": [
"CollectionPage",
"Link"
]
},
{
"name": "prev",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#prev",
"type": [
"CollectionPage",
"Link"
]
},
{
"name": "partOf",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#partOf",
"type": [
"Collection",
"Link"
]
}
]
},
{
"type": "record",
"name": "OrderedCollectionPage",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#OrderedCollectionPage",
"doc": "An ordered subset of items from an OrderedCollection",
"extends": "OrderedCollection",
"fields": [
{
"name": "startIndex",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#startIndex",
"type": "int"
}
]
},
{
"type": "record",
"name": "Relationship",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Relationship",
"doc": "Represents a Social Graph relationship between two Individuals (indicated by the 'a' and 'b' properties)",
"extends": "Object",
"fields": [
{
"name": "subject",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#subject",
"type": [
"Link",
"Object"
]
},
{
"name": "relationship",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#relationship",
"type": []
}
]
},
{
"type": "record",
"name": "Create",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Create",
"doc": "To Create Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Delete",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Delete",
"doc": "To Delete Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Dislike",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Dislike",
"doc": "The actor dislikes the object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Document",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Document",
"doc": "Represents a digital document/file of any sort",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Event",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Event",
"doc": "An Event of any kind",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Flag",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Flag",
"doc": "To flag something (e.g. flag as inappropriate, flag as spam, etc)",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Follow",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Follow",
"doc": "To Express Interest in Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Group",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Group",
"doc": "A Group of any kind.",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Ignore",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Ignore",
"doc": "Actor is ignoring the Object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Image",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Image",
"doc": "An Image file",
"extends": "Document",
"fields": []
},
{
"type": "record",
"name": "Invite",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Invite",
"doc": "To invite someone or something to something",
"extends": "Offer",
"fields": []
},
{
"type": "record",
"name": "Join",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Join",
"doc": "To Join Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Leave",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Leave",
"doc": "To Leave Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Like",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Like",
"doc": "To Like Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "View",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#View",
"doc": "The actor viewed the object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Listen",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Listen",
"doc": "The actor listened to the object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Read",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Read",
"doc": "The actor read the object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Move",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Move",
"doc": "The actor is moving the object. The target specifies where the object is moving to. The origin specifies where the object is moving from.",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Travel",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Travel",
"doc": "The actor is traveling to the target. The origin specifies where the actor is traveling from.",
"extends": "IntransitiveActivity",
"fields": []
},
{
"type": "record",
"name": "Link",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Link",
"doc": "Represents a qualified reference to another resource. Patterned after the RFC5988 Web Linking Model",
"fields": [
{
"name": "height",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#height",
"type": "int"
},
{
"name": "href",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#href",
"type": "string"
},
{
"name": "hreflang",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#hreflang",
"type": "string"
},
{
"name": "rel",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#rel",
"type": "string"
},
{
"name": "width",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#width",
"type": "int"
}
]
},
{
"type": "record",
"name": "Mention",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Mention",
"doc": "A specialized Link that represents an @mention",
"extends": "Link",
"fields": []
},
{
"type": "record",
"name": "Note",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Note",
"doc": "A Short note, typically less than a single paragraph. A \"tweet\" is an example, or a \"status update\"",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Object",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Object",
"fields": [
{
"name": "attachment",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#attachment",
"type": [
"Link",
"Object"
]
},
{
"name": "attachments",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#attachments",
"type": [
"Object",
"Link"
]
},
{
"name": "author",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#author",
"type": [
"Object",
"Link"
]
},
{
"name": "bcc",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#bcc",
"type": [
"Object",
"Link"
]
},
{
"name": "bto",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#bto",
"type": [
"Object",
"Link"
]
},
{
"name": "cc",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#cc",
"type": [
"Object",
"Link"
]
},
{
"name": "context",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#context",
"type": [
"Object",
"Link"
]
},
{
"name": "generator",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#generator",
"type": [
"Object",
"Link"
]
},
{
"name": "icon",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#icon",
"type": [
"Image",
"Link"
]
},
{
"name": "image",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#image",
"type": [
"Image",
"Link"
]
},
{
"name": "inReplyTo",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#inReplyTo",
"type": [
"Object",
"Link"
]
},
{
"name": "location",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#location",
"type": [
"Object",
"Link"
]
},
{
"name": "provider",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#provider",
"type": [
"Object",
"Link"
]
},
{
"name": "replies",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#replies",
"type": []
},
{
"name": "audience",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#audience",
"type": [
"Object",
"Link"
]
},
{
"name": "tag",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#tag",
"type": [
"Object",
"Link"
]
},
{
"name": "tags",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#tags",
"type": [
"Object",
"Link"
]
},
{
"name": "to",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#to",
"type": [
"Object",
"Link"
]
},
{
"name": "url",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#url",
"type": [
"Link",
"Thing"
]
},
{
"name": "content",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#content",
"type": null
},
{
"name": "downstreamDuplicates",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#downstreamDuplicates",
"type": "string"
},
{
"name": "duration",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#duration",
"type": "string"
},
{
"name": "endTime",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#endTime",
"type": "string"
},
{
"name": "objectType",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#objectType",
"type": "string"
},
{
"name": "published",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#published",
"type": "string"
},
{
"name": "rating",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#rating",
"type": null
},
{
"name": "startTime",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#startTime",
"type": "string"
},
{
"name": "summary",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#summary",
"type": null
},
{
"name": "updated",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#updated",
"type": "string"
},
{
"name": "upstreamDuplicates",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#upstreamDuplicates",
"type": "string"
}
]
},
{
"type": "record",
"name": "Offer",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Offer",
"doc": "To Offer something to someone or something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "OrderedCollection",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#OrderedCollection",
"doc": "A variation of Collection in which items are strictly ordered",
"fields": []
},
{
"type": "record",
"name": "OrderedItems",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#OrderedItems",
"doc": "A rdf:List variant for Objects and Links",
"fields": []
},
{
"type": "record",
"name": "Page",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Page",
"doc": "A Web Page",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Person",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Person",
"doc": "A Person",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Organization",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Organization",
"doc": "An Organization",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "Profile",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Profile",
"doc": "A Profile Document",
"extends": "Object",
"fields": [
{
"name": "describes",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#describes",
"type": []
}
]
},
{
"type": "record",
"name": "Place",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Place",
"doc": "A physical or logical location",
"extends": "Object",
"fields": [
{
"name": "accuracy",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#accuracy",
"type": null
},
{
"name": "altitude",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#altitude",
"type": "float"
},
{
"name": "latitude",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#latitude",
"type": "float"
},
{
"name": "longitude",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#longitude",
"type": "float"
},
{
"name": "radius",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#radius",
"type": null
},
{
"name": "units",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#units",
"type": null
}
]
},
{
"type": "record",
"name": "Question",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Question",
"doc": "A question of any sort.",
"extends": "IntransitiveActivity",
"fields": [
{
"name": "oneOf",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#oneOf",
"type": [
"Object",
"Link"
]
},
{
"name": "anyOf",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#anyOf",
"type": [
"Object",
"Link"
]
}
]
},
{
"type": "record",
"name": "Reject",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Reject",
"doc": "Actor rejects the Object",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Remove",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Remove",
"doc": "To Remove Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Service",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Service",
"doc": "A service provided by some entity",
"extends": "Object",
"fields": []
},
{
"type": "record",
"name": "TentativeAccept",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#TentativeAccept",
"doc": "Actor tentatively accepts the Object",
"extends": "Accept",
"fields": []
},
{
"type": "record",
"name": "TentativeReject",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#TentativeReject",
"doc": "Actor tentatively rejects the object",
"extends": "Reject",
"fields": []
},
{
"type": "record",
"name": "Tombstone",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Tombstone",
"doc": "A placeholder for a deleted object",
"extends": "Object",
"fields": [
{
"name": "formerType",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#formerType",
"type": []
},
{
"name": "deleted",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#deleted",
"type": "string"
}
]
},
{
"type": "record",
"name": "Undo",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Undo",
"doc": "To Undo Something. This would typically be used to indicate that a previous Activity has been undone.",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Update",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Update",
"doc": "To Update/Modify Something",
"extends": "Activity",
"fields": []
},
{
"type": "record",
"name": "Video",
"jsonldPredicate": "http://www.w3.org/ns/activitystreams#Video",
"doc": "A Video document of any kind.",
"extends": "Document",
"fields": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment