diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-12-07 16:41:01 +0000 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-12-07 16:41:01 +0000 |
| commit | f8ec324cba9e47936360a3ca9db925e47063de13 (patch) | |
| tree | dd477d25b4d60388c9f03f596ea1c3af924973a8 /src/main | |
| parent | 2506ce08cb6660305922fc649c221226332d5783 (diff) | |
| parent | 1266862146b679fb04cbd48b740032893b6a34a9 (diff) | |
| download | RSAComb-f8ec324cba9e47936360a3ca9db925e47063de13.tar.gz RSAComb-f8ec324cba9e47936360a3ca9db925e47063de13.zip | |
Merge branch 'master' into logger
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/Main.scala | 2 | ||||
| -rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQuery.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/Main.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/Main.scala index 5246d2f..60511af 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/Main.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/Main.scala | |||
| @@ -60,7 +60,7 @@ object RSAComb extends App { | |||
| 60 | val query = RDFoxUtil.loadQueryFromFile(queryPath.getAbsoluteFile) | 60 | val query = RDFoxUtil.loadQueryFromFile(queryPath.getAbsoluteFile) |
| 61 | 61 | ||
| 62 | /* Compute answers to query */ | 62 | /* Compute answers to query */ |
| 63 | ConjunctiveQuery(query).map(ontology ask _) match { | 63 | ConjunctiveQuery.parse(query).map(ontology ask _) match { |
| 64 | case Some(answers) => Logger print answers | 64 | case Some(answers) => Logger print answers |
| 65 | case None => | 65 | case None => |
| 66 | throw new RuntimeException("Submitted query is not conjunctive") | 66 | throw new RuntimeException("Submitted query is not conjunctive") |
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQuery.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQuery.scala index 451d1f4..1fb75d7 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQuery.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/sparql/ConjunctiveQuery.scala | |||
| @@ -31,7 +31,7 @@ object ConjunctiveQuery { | |||
| 31 | * @return an [[scala.Option]] containing a ConjunctiveQuery if the | 31 | * @return an [[scala.Option]] containing a ConjunctiveQuery if the |
| 32 | * input query represents one, None is returned otherwise. | 32 | * input query represents one, None is returned otherwise. |
| 33 | */ | 33 | */ |
| 34 | def apply( | 34 | def parse( |
| 35 | query: String, | 35 | query: String, |
| 36 | prefixes: Prefixes = new Prefixes() | 36 | prefixes: Prefixes = new Prefixes() |
| 37 | ): Option[ConjunctiveQuery] = | 37 | ): Option[ConjunctiveQuery] = |
