diff options
Diffstat (limited to 'src/main/scala')
| -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] = |
