Skip to content

Instantly share code, notes, and snippets.

View evanp's full-sized avatar

Evan Prodromou evanp

View GitHub Profile
@evanp
evanp / read.jsonld
Created December 18, 2023 20:46
An example of reading a Wikipedia page
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Read",
"actor": {
"id": "https://social.example/users/evanp",
"type": "Person",
"name": "Evan Prodromou"
},
"object": {
"type": "Page",
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "View",
"actor": {
"id": "https://social.example/users/evanp",
"name": "Evan Prodromou"
},
"object": "https://activitypub.wikidata.example/Q55436290",
"startTime": "2023-11-05T00:00:00Z",
"duration": "106M"
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://activitypub.wikidata.example/Q55436290",
"type": "Video",
"name": "Barbie",
"duration": "114m",
"published": "19-07-2023T00:00:00Z"
}
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://geosocial.example/users/evanp/arrive/233",
"type": "Arrive",
"location": "https://activitypub.wikidata.example/wiki/Q727",
"summary": "Evan arrived in Amsterdam",
"startTime": "2024-06-03T00:00:00Z"
}
@evanp
evanp / amsterdam.jsonld
Created December 18, 2023 20:23
Example of a Place identified by a Wikidata object
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://activitypub.wikidata.example/wiki/Q727",
"type": "Place",
"nameMap": {
"en": "Amsterdam",
"nl": "Amsterdam"
},
"latitude": 52.3728,
"longitude": 4.89361
@evanp
evanp / checkin.jsonld
Created December 18, 2023 20:20
Example of a Place identified by a Wikidata object
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://activitypub.wikidata.example/wiki/Q727",
"type": "Place",
"nameMap": {
"en": "Amsterdam",
"nl": "Amsterdam"
},
"latitude": 52.3728,
"longitude": 4.89361
{
"@context": [
"https://w3c.org/ns/activitystreams",
"https://creativecommons.org/ns/"
],
"type": "Article",
"summaryMap": {
"en": "A toot by Evan Prodromou"
},
"attributedTo": "https://cosocial.ca/@evan",
User: So, first, let's have a balanced conversation, where your responses are
about as long and complex as my questions.
ChatGPT: Sure, I'm happy to have a balanced conversation with you. Please feel
free to ask any questions, and I'll respond accordingly.
User: Also, I'm aware that you are a large language model, and that you have
limitations because of that, and that you were trained with data up to Sep
2021, so I don't need to be reminded. Just say "I can't do that" or "I don't
know" instead.
ChatGPT: Understood. If there's something I can't answer or do, I'll let you
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{"xsd": "http://www.w3.org/2001/XMLSchema#", "priorityInbox": {"@type": "@id"}, "priority": {"@type": "xsd:nonNegativeInteger"}}
],
"id": "https://person.example/evan",
"inbox": {
"id": "https://person.example/evan/inbox",
"type": "OrderedCollection",
"items": [
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{"Movie": {"@type": "@id"}, "favouriteMovies": {"@type": "@id"}}
],
"id": "https://person.example/eprodrom",
"type": "Person",
"inbox": "https://person.example/eprodrom/inbox",
"outbox": "https://person.example/eprodrom/outbox",
"favouriteMovies": {