From 7ffa86d1b90bc7a1366b849d65d5a9ee4af0f71f Mon Sep 17 00:00:00 2001 From: Sabbir Rashid Date: Mon, 22 Jul 2024 15:34:09 -0400 Subject: [PATCH] Update gettingstarted.md 3rd attempt to resolve build issue --- docs/gettingstarted.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/gettingstarted.md b/docs/gettingstarted.md index 575d055d..c7a0b790 100644 --- a/docs/gettingstarted.md +++ b/docs/gettingstarted.md @@ -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