Type : EXTERNE
The script interacts with an external web service (SPARQL endpoint) to send data. The result table 'updateresult' is generated by the macro based on the service's response.
| 1 | options mprint nocenter; |
| 2 | %include "sparqlquery.sas"; |
| 3 |
| 1 | %sparqlupdate( |
| 2 | endpoint=http://localhost:3030/test/update, |
| 3 | update=%str( |
| 4 | prefix ct: |
| 5 | prefix css: |
| 6 | prefix owl: |
| 7 | prefix rdf: |
| 8 | prefix xsd: |
| 9 | prefix rdfs: |
| 10 | |
| 11 | INSERT DATA |
| 12 | { |
| 13 | ct:NCT00799760 css:enrollment "541"^^xsd:int ; |
| 14 | css:phase "Phase 3" ; |
| 15 | css:title "Evaluation of Efficacity and Safety of Oseltamivir and Zanamivir" . |
| 16 | } |
| 17 | ), |
| 18 | resultdsn=updateresult, |
| 19 | debug=Y |
| 20 | ); |
| 1 | PROC PRINT DATA=updateresult width=min; |
| 2 | RUN; |