diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-23 19:59:06 +0200 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-23 19:59:06 +0200 |
| commit | 099cad0129edb9822cc6ccb044b2109834715bb9 (patch) | |
| tree | 66a8b2fb048467e6c65ecb2f43531f4051a6dcd3 /src/main/scala/rsacomb/Main.scala | |
| parent | 5e1a39b0a4863268764de949d0f25d87fec00cce (diff) | |
| download | RSAComb-099cad0129edb9822cc6ccb044b2109834715bb9.tar.gz RSAComb-099cad0129edb9822cc6ccb044b2109834715bb9.zip | |
Add method to parse a string into a Query
This is using `SPARQLParser`, an undocumented class provided by JRDFox
Diffstat (limited to 'src/main/scala/rsacomb/Main.scala')
| -rw-r--r-- | src/main/scala/rsacomb/Main.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/Main.scala b/src/main/scala/rsacomb/Main.scala index 35c682e..c6bd6a1 100644 --- a/src/main/scala/rsacomb/Main.scala +++ b/src/main/scala/rsacomb/Main.scala | |||
| @@ -53,7 +53,9 @@ object RSAComb extends App { | |||
| 53 | //val tboxCanon = rsa.canonicalModel() | 53 | //val tboxCanon = rsa.canonicalModel() |
| 54 | 54 | ||
| 55 | /* Load query */ | 55 | /* Load query */ |
| 56 | val query = RSA.test_query | 56 | val query = RDFoxUtil.parseQuery( |
| 57 | "SELECT ?X WHERE {?X ?Y ?Z}" | ||
| 58 | ) | ||
| 57 | 59 | ||
| 58 | /* Compute the filtering program from the given query */ | 60 | /* Compute the filtering program from the given query */ |
| 59 | val filter = ontology.filteringProgram(query) | 61 | val filter = ontology.filteringProgram(query) |
