diff options
| author | Federico Igne <git@federicoigne.com> | 2021-10-05 13:59:49 +0100 |
|---|---|---|
| committer | Federico Igne <git@federicoigne.com> | 2021-10-05 13:59:49 +0100 |
| commit | bf2d3b0c0a1e3e1c4e2dd54775582775c1650e75 (patch) | |
| tree | dd685c97cc149324c5b49f8e516f10be012a6eb4 /simulate.rdfox | |
| parent | 2a3b5153955208dd4a9393fbaff57b3858efe271 (diff) | |
| download | RSAComb-bf2d3b0c0a1e3e1c4e2dd54775582775c1650e75.tar.gz RSAComb-bf2d3b0c0a1e3e1c4e2dd54775582775c1650e75.zip | |
Add script to load debug data to RDFox
Diffstat (limited to 'simulate.rdfox')
| -rw-r--r-- | simulate.rdfox | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/simulate.rdfox b/simulate.rdfox new file mode 100644 index 0000000..80dbf7c --- /dev/null +++ b/simulate.rdfox | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | |||
| 2 | echo "\n[Start endpoint]" | ||
| 3 | endpoint start | ||
| 4 | |||
| 5 | echo "\n[Create new datastore]" | ||
| 6 | dstore create rsacomb | ||
| 7 | active rsacomb | ||
| 8 | prefix rsacomb: <http://www.cs.ox.ac.uk/isg/RSAComb#> | ||
| 9 | tupletable create rsacomb:CanonicalModel type "named-graph" | ||
| 10 | tupletable create rsacomb:Filter$(3) type "named-graph" | ||
| 11 | |||
| 12 | echo "\n[Import data]" | ||
| 13 | import > rsacomb:CanonicalModel "$(2)" | ||
| 14 | import "$(1)/axiomatisation.dlog" | ||
| 15 | insert { graph rsacomb:CanonicalModel { ?x a rsacomb:Named } } where { graph rsacomb:CanonicalModel { ?x a owl:Thing } } | ||
| 16 | |||
| 17 | echo "\n[Load canonical model program]" | ||
| 18 | import "$(1)/canonical_model.dlog" | ||
| 19 | |||
| 20 | echo "\n[Load filtering program for query $(3)]" | ||
| 21 | import "$(1)/filter_query$(3).dlog" | ||
