Skip to content

Commit

Permalink
Update gettingstarted.md
Browse files Browse the repository at this point in the history
3rd attempt to resolve build issue
  • Loading branch information
rashidsabbir authored Jul 22, 2024
1 parent cf93366 commit 7ffa86d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,31 +201,35 @@ template file for the `incoming` view. We will need to make those files in the

templates/outgoing_person.json
```
{% raw %}
{{'''graph ?assertion {
{
?article sio:hasParticipant ?source.
?article sio:hasParticipant ?target.
?article a ?link_type.
} }
}
}
bind(?article as ?link)
bind(0.8 as ?probability)
filter (!sameTerm(?source, ?target) && isIRI(?target))
''' | probit(source=this.identifier) | tojson }}
```
{% endraw %}```
templates/incoming_person.json
```
{% raw %}
{{'''graph ?assertion {
{
?article sio:hasParticipant ?target.
?article sio:hasParticipant ?source.
?article a ?link_type.
} }
}
}
bind(?article as ?link)
bind(0.8 as ?probability)
filter (!sameTerm(?source, ?target) && isIRI(?source))
''' | probit(target=this.identifier) | tojson }}
```
{% endraw %}```

These templates pass a SPARQL query fragment to the probit filter, which queries
for links in the expected format. The important thing to note is that the target
Expand Down

0 comments on commit 7ffa86d

Please sign in to comment.