aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/rsacomb/RSAOntology.scala22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala
index 06752ef..8303dd4 100644
--- a/src/main/scala/rsacomb/RSAOntology.scala
+++ b/src/main/scala/rsacomb/RSAOntology.scala
@@ -112,21 +112,19 @@ trait RSAOntology {
112 112
113 // Retrieve all instances of PE 113 // Retrieve all instances of PE
114 println("\nQuery results:") 114 println("\nQuery results:")
115 data.evaluateQuery( 115 val cursor = data.createCursor(
116 prefixes, 116 prefixes,
117 "SELECT ?X ?Y WHERE { ?X <internal:PE> ?Y }", 117 "SELECT ?X ?Y WHERE { ?X <internal:PE> ?Y }",
118 new HashMap[String, String](), 118 new HashMap[String, String]()
119 System.out,
120 "text/csv"
121 );
122
123 data.evaluateQuery(
124 prefixes,
125 "SELECT ?X ?Y WHERE { ?X <internal:E> ?Y }",
126 new HashMap[String, String](),
127 System.out,
128 "text/csv"
129 ); 119 );
120 var mul = cursor.open()
121 while (mul > 0) {
122 val res0 = cursor.getResource(0)
123 val res1 = cursor.getResource(1)
124 println(s"Answer: $res0 $res1")
125 mul = cursor.advance()
126 }
127 cursor.close();
130 128
131 // Close connection to RDFox 129 // Close connection to RDFox
132 RDFoxUtil.closeConnection(server, data) 130 RDFoxUtil.closeConnection(server, data)