Skip to content

Instantly share code, notes, and snippets.

@phochste
Last active October 4, 2023 07:06
Show Gist options
  • Save phochste/08a3898bd59ce7c2c80bee1ae8a38aa0 to your computer and use it in GitHub Desktop.
Save phochste/08a3898bd59ce7c2c80bee1ae8a38aa0 to your computer and use it in GitHub Desktop.
@prefix ex: <http://example.org/> .
@prefix as: <https://www.w3.org/ns/activitystreams#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix pol: <https://www.example.org/ns/policy#> .
@prefix fno: <https://w3id.org/function/ontology#> .
{
# We need an Announce
?id a as:Announce .
# We need an object
?id as:object ?object .
}
=>
{
# Send a notification to an indexing service
ex:MySendNotificationDemo pol:policy [
a fno:Execution ;
fno:executes ex:sendNotification ;
ex:to <http://indexing.for.us/inbox/> ;
ex:notification [
a as:Offer ;
as:actor <https://repository.edu/profile/card#me> ;
as:origin <https://repository.edu/orchestator/card#me> ;
as:object ?object ;
as:target <http://indexing.for.us/profile/card#me>
]
] .
}.
# Some metadata about the actors involved in this communication
<https://repository.edu/profile/card#me>
a as:Service ;
as:name "Institutional Repository Data Node" ;
ldp:inbox <http://repository.org/inbox/> .
<https://repository.edu/orchestrator/card#me>
a as:Service ;
as:name "Institutional Orchestrator" .
<http://indexing.for.us/profile/card#me>
a as:Service ;
as:name "Indexation Service node" ;
ldp:inbox <http://indexing.for.us/inbox/> .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment